Add mobile video modal visual coverage and sticky guardrail test

This commit is contained in:
thePR0M3TH3AN committed 2025-10-11 19:51:45 -04:00
1 parent 5fefa07f4b
commit 7e6c2c7937
5 files changed
+174 -26

No files matched your search

+3 -1
View File
@@ -6,10 +6,12 @@ Before starting, open `docs/kitchen-sink.html` in a browser to review the modal
Automated regression coverage now exercises these flows across both the legacy and design-system variants:
* `tests/video-modal-accessibility.test.mjs` validates sticky header transitions, scroll locking, and zap popover accessibility for the video modal.
* `tests/video-modal-accessibility.test.mjs` validates sticky header transitions, scroll locking, zap popover accessibility, and now verifies the video shell drops sticky positioning on mobile breakpoints.
* `tests/modal-accessibility.test.mjs` mirrors upload/edit modal accessibility along with their form validation and mode toggles.
* `tests/profile-modal-controller.test.mjs` verifies profile modal focus restoration and navigation button state changes.
`tests/visual/kitchen-sink.spec.ts` captures design-system snapshots for the kitchen sink and the video modal. When modal styles change, run `npm run test:visual:update` to refresh both the desktop and mobile baselines with `FEATURE_DESIGN_SYSTEM` toggled on and off.
* Launch the site, trigger any video card or thumbnail to open the playback modal, and keep track of the element you used to open it.
* Scroll the modal content down and back up; confirm the sticky navigation bar hides on downward scroll and reappears when you reverse direction.
* Activate the zap button to display the popover and tab through its fields to confirm focus stays within the dialog; press `Escape` to close it and ensure focus returns to the zap trigger.