[test][checkbox] Add axe tests and WCAG conformance report - #48918
[test][checkbox] Add axe tests and WCAG conformance report#48918michelengelen wants to merge 5 commits into
Conversation
Deploy previewBundle size
Check out the code infra dashboard for more information about this PR. |
ab010c4 to
c3fc8c7
Compare
cab0815 to
8ba1e37
Compare
178bc94 to
cb67f12
Compare
Lets a fixture assert every axe rule it exercises rather than only the CSS-dependent visual ones, which is what the per-component WCAG reports need.
Adds a table-driven Playwright suite covering 1.4.10 Reflow, 1.4.4 Resize Text and 1.4.12 Text Spacing across the assessed components. axe has no rule for any of them, so they were rated Manual on evidence from source review.
cb67f12 to
2ee61e1
Compare
PR reviewClean PR. The Tests (1)1. 🟡 Test title claims more than it assertsLocation: it('reflects the checked state and notifies on change', async () => {The test asserts only the checked flip after Failure scenario: an Fix: assert a spy's call count, or rename the test to "reflects the checked state". VerdictApprove after nits - solid coverage; one test name to align with its assertions. 🤖 Review generated with Claude Code |
Adds axe coverage and the WCAG 2.2 Level A/AA conformance report for
Checkbox.Known gaps: focus-indicator contrast and custom icons below 3:1 (1.4.11),
disableRippleremoving the focus indicator (2.4.7), andindeterminatesettingaria-checked="mixed"on a native checkbox whosecheckedisfalse(4.1.2) — the one genuine defect in the series.Report:
Checkbox/accessibility.mdImportant
How to review this PR
Layer 5 of 14 in a stacked series (#48915 → #48926). Its branch is built on
a11y/stack/avatar(#48917). GitHub cannot chain PR bases across a fork, so every PR in the series targetsmasterinstead.Review only the last commit —
2ee61e1. Everything above it belongs to the layers below, and disappears as those merge.Original work by @mj12albert. Supersedes #48734, rebased onto current master.
Part of the WCAG conformance effort (#14187).