Skip to content

test(e2e): retire a11y baseline entries from the per-route scans - #1908

Merged
mrbobbytables merged 1 commit into
mainfrom
ci/fold-a11y-baseline
Oct 25, 2026
Merged

mrbobbytables merged 1 commit into
mainfrom
ci/fold-a11y-baseline

Conversation

@mrbobbytables

Copy link
Copy Markdown
Member

Remit: required CI check latency. accessibility.spec.js rescanned every baselined route, state and content page serially in three retirement tests (~25s wall; the 20s route rescan was the slowest single test in the suite).

What changes

  • New expectBaselined() helper asserts both halves of the baseline contract against each per-route scan's results: nothing unrecorded is reported, and every recorded rule is still reported (in light mode, matching the mode the serial rescans used).
  • The three serial "records no violation that has been fixed" tests are deleted; the "every baselined route/state is a route this spec scans" guards stay.
  • Prose updated to describe where retirement now happens.

Verification

  • Normal lane: 102 passed in 29.5s locally. Coverage lane (E2E_COVERAGE=1 --workers=2): 102 passed.
  • Negative check: adding a bogus id to NAVBAR_VIOLATIONS fails the light-mode home scan with /: these rules no longer fail — delete them from KNOWN_VIOLATIONS and leaves dark mode passing, as intended.
  • npm run test:unit, prettier, eslint, spelling, duplication pass locally.

accessibility.spec.js proved its baseline still failed by rescanning
every baselined route, state and content page serially in three extra
tests, about 25s of the suite's wall time and its slowest single test.

Every one of those routes is already scanned by its own per-route test,
so check both halves of the contract there: nothing unrecorded may be
reported, and every recorded rule must still be reported in light mode,
the mode the serial rescans ran in. A stale entry still fails the file
with the same delete-it message; it now costs no extra navigation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: mrbobbytables <mrbobbytables@users.noreply.github.com>
@netlify

netlify Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for endusers ready!

Name Link
🔨 Latest commit f9df3ee
🔍 Latest deploy log https://app.netlify.com/projects/endusers/deploys/6ade56777d3a9c4a224b633d
😎 Deploy Preview https://deploy-preview-1908--endusers.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mrbobbytables
mrbobbytables added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit 570c20e Oct 25, 2026
14 checks passed
@mrbobbytables
mrbobbytables deleted the ci/fold-a11y-baseline branch October 26, 2026 01:50
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