Skip to content

Extend the browser harness to the film's playback primitives - #42

Merged
mandiau-matthias merged 1 commit into
mainfrom
test/film-playback-harness
Nov 16, 2026
Merged

mandiau-matthias merged 1 commit into
mainfrom
test/film-playback-harness

Conversation

@mandiau-matthias

Copy link
Copy Markdown
Contributor

Problem

The experiment's DOM primitives were pinned in #37, #41 and #36, but the film's playback primitives were still only checked by hand: autoplay, pause/play labels, replay, the info disclosure, Escape, and the reduced-motion frozen start.

What changed

  • Extends npm run test:browser to check the built index.html after the experiment checks.
  • Asserts three scene figures with role and non-empty descriptions.
  • Asserts initial autoplay, pause/play label changes, the info hidden/aria-expanded pair, Escape pausing and closing, and replay resetting to phase 0.
  • Adds the film's six Tab stops with accessible labels and solid 2px outlines.
  • Asserts reduced motion starts paused at phase 3 and replay stays paused there.
  • Renames the script to scripts/check-playground-browser.mjs and the workflow job to browser-check; updates the harness descriptions.

Verification

  • npm run test:browser — exit 0 in Chrome 157; film and experiment checks pass
  • npm run check — exit 0, 145 unit tests, 5 integration tests, package and bundle checks
  • No page or console errors in either surface

Boundary

This is a DOM and keyboard regression check. It does not establish screen-reader behavior, visual-design quality or comprehension. Issue #16 remains open.

The film's pause, replay, disclosure and reduced-motion behavior were only covered by manual review. Add them to the headless Chrome check: three described scenes, initial autoplay, pause/play labels, info disclosure and Escape, replay reset, six Tab stops with visible outlines, and a frozen phase-3 start under reduced motion where replay stays paused.\n\nRename the script to check-playground-browser and the CI job to browser-check because it now covers both surfaces. Update the harness descriptions.
@mandiau-matthias
mandiau-matthias merged commit 1a50fcc into main Nov 16, 2026
4 checks passed
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