USWDS Futures LabIndependent research and comparison pilot

Documentation

Automated real screen-reader evidence

The lab has two screen-reader layers:

  1. Guidepup Virtual Screen Reader over a DOM snapshot — fast, runs in the main evidence collector, and is clearly a simulation.
  2. Guidepup automation of a real screen reader — currently macOS VoiceOver — runs in a separate, OS-specific workflow. This is still automated AT evidence, not a human screen-reader session, and not WCAG conformance.

A third layer remains essential: a person using assistive technology. Automated AT cannot judge comprehension, frustration, or task success.

Current workflow

.github/workflows/at-voiceover.yml runs on workflow_dispatch and weekly on a macOS runner:

  1. Install dependencies and build the lab.
  2. Install WebKit.
  3. Configure the macOS runner with @guidepup/setup.
  4. Install the pinned VoiceOver assets.
  5. Run npm run test:at:voiceover.
  6. Upload test-results/guidepup and playwright-report/guidepup as artifacts.

The workflow is not part of the normal pull-request gate. Real screen readers need an OS desktop, take longer, and are more brittle than the virtual/DOM suite. It is also not published into the static site: the phrase logs are review artifacts, not a claim that every build has a fresh VoiceOver run.

Tests

tests/guidepup/voiceover.spec.mjs covers:

Each test attaches a JSON spoken-phrase log containing the method and the caveat. The test name and annotation state that this is automated VoiceOver, not human testing.

Running locally (macOS)

npx guidepup setup
node scripts/guidepup-setup.mjs install voiceover
npm run test:at:voiceover

@guidepup/setup may request administrator access and macOS Accessibility/Screen Recording permissions. This is expected: it configures the real screen reader. The local sandbox for this project cannot grant those permissions, so the workflow is verified on a macOS runner rather than claimed from a sandbox run. Run 45289287525 passed all five tests on macos-latest (4.8 minutes of screen-reader tests); the generated phrase attachments must still be read as automated observations.

Node 22 does not provide Error.isError, which the setup CLI uses. scripts/guidepup-setup.mjs polyfills it only for that CLI; project code remains on the declared Node engine.

Interpretation rules

Next layers

Licensing

@guidepup/guidepup, @guidepup/playwright, and @guidepup/setup are MIT-licensed dev dependencies. No Guidepup source is vendored into the lab. See THIRD-PARTY.md.

Back to methodology · Source lock