[test][radio] Add axe tests and WCAG conformance reports - #48920
[test][radio] Add axe tests and WCAG conformance reports#48920michelengelen wants to merge 7 commits into
Conversation
Deploy previewBundle size
Check out the code infra dashboard for more information about this PR. |
fd73e27 to
586dbce
Compare
53cd134 to
8dde96f
Compare
11705fa to
ed67a1e
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.
ed67a1e to
d2b70c8
Compare
PR reviewNothing merge-blocking. The Tests (1)1. 🟡 Radio 2.5.2 skips the cancellation branch the sibling suites assertLocation: it('2.5.2 Pointer Cancellation: activates on the pointer up-event, not the down-event', ...Button, Checkbox, Switch, and ToggleButton all press on the control, move off the target, release, and assert that nothing activates. The Radio test only asserts that the down-event alone does not select. The abort path — the substance of 2.5.2 — is untested for Radio. Failure scenario: a regression that commits the selection on Fix: add the press → move to an outside target → release sequence and assert VerdictApprove after nits - one missing cancellation branch keeps Radio below the parity of its sibling suites. 🤖 Review generated with Claude Code |
Adds axe coverage and WCAG 2.2 Level A/AA conformance reports for
RadioandRadioGroup.Radio
RadioGroup
Known gaps: focus-indicator contrast and custom icons below 3:1 (1.4.11), and
disableRippleremoving the focus indicator (2.4.7). No group-level gaps.Reports:
Radio/accessibility.md·RadioGroup/accessibility.mdImportant
How to review this PR
Layer 7 of 14 in a stacked series (#48915 → #48926). Its branch is built on
a11y/stack/switch(#48919). GitHub cannot chain PR bases across a fork, so every PR in the series targetsmasterinstead.Review only the last commit —
d2b70c8. Everything above it belongs to the layers below, and disappears as those merge.Original work by @mj12albert. Supersedes #48751, rebased onto current master.
Part of the WCAG conformance effort (#14187).