Skip to content

test: cover media continuity across section entries - #361

Open
han4wluc wants to merge 1 commit into
mainfrom
fix/carry-audio-across-sections
Open

han4wluc wants to merge 1 commit into
mainfrom
fix/carry-audio-across-sections

Conversation

@han4wluc

Copy link
Copy Markdown
Contributor

Section entry derives presentation from the destination section's own state. When the destination has the same background music, persistent sound effect channel or video background as before the change, that media keeps its render identity and plays on without restarting; when the destination omits or replaces it, it stops or switches. This behaviour was not covered by tests, and the docs still described context.bgm as the current background music.

Tests: spec/RouteEngine.sectionPresentationContinuity.test.js covers identical, omitted and different media through normal transitions, resetStoryAtSection, choice transitions and save/load; a visual test case (vt/specs/robustness/section-media-continuity.yaml, added to CI) exercises a choice-driven transition with a video background.

Docs: context.bgm is described as a legacy compatibility field; active music is derived from the current section's presentation state.

The full suite (2,172 tests), lint, the test-marker check and the visual capture pass.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant