Commands
npm ci
npm run check # unit tests, strict build, validation
npm run test:browser # configured browsers
npm run test:browser:chromium # CI/browser subset
npm run evidence # Playwright + Guidepup + axe
npm run build:strict # rebuild with generated evidence
npm run validate # schema, sources, routes, evidence
Layers
- Unit tests (
tests/unit) validate the registry schema (including declared states), fixture generation, source lock, manual-test definitions, evaluation URL normalization, pixel-difference math, finding classification, performance budgets, and Markdown safety without a browser. - Route smoke tests load every route from
dist/data/routes.json, check the status, one visibleh1, the primary navigation, and no uncaught page errors. - Behavior tests cover the accordion, banner, form, radio validation, preferences panel, evaluation workspace, dark mode, RTL, no-JavaScript, reduced motion, and forced colors. The evaluation suite adds URL validation, the four comparison modes, pane sizing and the split slider, Accordion and Banner state maps, keyboard sliders, captured conditions, focus inspection, manual-result recording and export, presets, 320 CSS-pixel layout, and forced-colours visibility.
- Axe scans record computable WCAG 2.0/2.1/2.2 A/AA issues per route. A zero count is not conformance.
- Evidence collection captures Guidepup virtual transcripts, state transcripts, screenshots, initial-state and state-level axe observations, matched baseline/experiment captures, and a small cold-context performance sample into
reports/latest. - Automated real screen reader (
tests/guidepup, separate macOS workflow) drives VoiceOver through Guidepup and uploads spoken-phrase logs. It is automated AT evidence, not a human session, and is not part of the PR gate. - Validation checks the registry, source lock, docs, routes, MCP scenarios, and evidence manifest.
- Link checking walks the built HTML and fails on a missing local page, stylesheet, script, or screenshot.
Browser policy
Playwright's configuration names Chromium, Firefox, and WebKit. CI runs Chromium. In the authoring environment, Chromium (Chrome channel) passed 99 tests and WebKit previously passed 69 with the axe scan skipped; Firefox could not create a profile folder and did not run. Do not claim a browser was tested when it was not.
Accessibility testing boundaries
- Automated scans catch only a subset of WCAG issues.
- Guidepup Virtual Screen Reader is a DOM simulation, not NVDA, JAWS, or VoiceOver.
- Guidepup automation of real VoiceOver is stronger evidence than the virtual reader but is still scripted AT, not a human session.
- Forced-colors emulation is not Windows High Contrast Mode on a real device.
- Real screen-reader, speech-input, and user testing remain human responsibilities.
What must not happen
- A test must not be deleted or weakened to hide a regression.
- A missing transcript, failed state, missing capture pair, or unrecorded manual test must not be counted as a pass.
- A manual test must not be marked complete without a person performing it and recording the conditions.
- A CSS approximation must not be described as browser or operating-system emulation.
- A page must not be added to
distwithout a route, MCP scenario, and evidence coverage. - A green build must not be described as accessibility approval.