Skip to content

ci: test screen reader announcements with VoiceOver - #1332

Merged
sadmann7 merged 5 commits into
mainfrom
sadman/voiceover-ci
Nov 28, 2026
Merged

sadmann7 merged 5 commits into
mainfrom
sadman/voiceover-ci

Conversation

@sadmann7

Copy link
Copy Markdown
Owner

The a11y suite checks speech with the virtual screen reader, which reads aria-hidden text in live regions, so nothing confirmed what VoiceOver says for the table's and grid's announcements (#1331).

  • Add .github/workflows/voiceover.yml on macos-latest: nightly, on workflow_dispatch, and on PRs that touch the announcer, the radix data table and data grid, the /bases demos, e2e/ or the Guidepup setup. It isn't a required check.
  • Set up the runner with the @guidepup/setup CLI, pinned to 0.29.3 and run through npx, because guidepup/setup-action is no longer supported. Hot corners are turned off, because a Quick Note window opened mid-run.
  • Add @guidepup/playwright and @guidepup/guidepup, a separate playwright.voiceover.config.ts and pnpm test:voiceover. The main config ignores e2e/voiceover.spec.ts, so pnpm test:a11y and the E2E job don't pick it up.
  • The specs cover the table's search count, page change and selection count, plus the grid's sort, row selection, edit, undo, redo, paste and arrow moves. Each asserts that the announcement is spoken once in VoiceOver's phrase log, and that "Action undone" and "Action redone" are not spoken.
  • The spec polls VoiceOver's last phrase with osascript while each action runs. Guidepup's own capture sleeps while a long phrase is spoken and missed the sort announcement. Each test writes spoken-phrase-log.jsonl, and the job uploads test-results/ on failure.

Findings from the runs:

  • VoiceOver doesn't speak the hidden undo, redo or paste toast text. Undo logged ["Undo: Name updated"], redo ["Redo: Name updated"], paste ["4 cells pasted"].
  • The sort announcement can be lost. On the first attempt in both runs, focus returned to the header button and VoiceOver said "Name menu pop up collapsed button People table 13 columns, 202 rows" instead of "Sorted by Name, ascending". The retry heard it. Announcing after the menu has restored focus would likely fix it.
  • With default settings, VoiceOver doesn't speak a row or column number when moving between cells, only the cell text ("Cleve Herman", "38"). So that flow asserts the text. The virtual reader test for position is in a separate PR.
  • VoiceOver only exposes its last phrase, so two identical phrases in a row look like one. The paste toast's text matches the announcement, so this job can't catch it being spoken twice. The Chromium accessibility tree check in a11y.spec.ts still covers that.

@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tablecn Ready Ready Preview Nov 28, 2026 3:43pm UTC

Request Review

@sadmann7
sadmann7 merged commit ea91c51 into main Nov 28, 2026
9 checks passed
@sadmann7
sadmann7 deleted the sadman/voiceover-ci branch November 28, 2026 16:13

This branch was successfully deployed

1 active deployment
Preview — cfadd22b Deployed Nov 28, 2026 by vercel[bot]
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