Files
beat-delivery-methodology/scripts
Locust agent 14b442109a test(a11y): add axe-core scan and manual WCAG checks over every route, width and theme
Adds two dev-only harnesses and reports what they find. No application code
is touched.

scripts/check-a11y.mjs runs axe-core 4.14 against the built site over every
router route and alias, at 360px and 1440px, in the light and dark themes.
The theme is set through localStorage['beat-theme'] and asserted on every
page before scanning, so a theme that fails to apply aborts the run.

scripts/check-a11y-manual.mjs records the manual criteria as assertions:
keyboard operability with a visible focus indicator, landmarks, heading
order, meaningful link text, alt text, and measured contrast computed from
the rendered DOM.

axe-core and playwright-core are added as devDependencies. playwright-core
is used rather than playwright so no postinstall browser download happens
and `npm ci` in the Pages workflow stays clean.
2026-11-03 03:39:33 +00:00
..