Commit 3ebbb4a
committed
test: add Phase 3 audit fixture for no-interactive-element-to-noninteractive-role
Translates jsx-a11y's no-interactive-element-to-noninteractive-role test
suite (the only peer source — vuejs-accessibility and lit-a11y do not ship
this rule) into GTS + HBS RuleTester cases under tests/audit/. Pins cases
where we agree with jsx-a11y plus each deliberate divergence:
- Canvas is NOT treated as interactive (PR #20 carve-out) — matches
jsx-a11y :recommended, diverges from :strict.
- <audio>/<video> without `controls` are non-interactive (PR #20 carve-out).
- <video controls role="presentation"> is FLAGGED by us, VALID in jsx-a11y.
- <tr role="presentation"> FLAGGED by us — matches jsx-a11y :strict,
diverges from :recommended.
- <input type="hidden" role="img"> VALID for us (hidden guard), INVALID in
jsx-a11y — captured in a dedicated sub-run.
- <embed>, <summary>, <td>, <th>, <datalist> with a non-interactive role
FLAGGED by us via aria-query/axobject-query mappings; jsx-a11y treats
these as static. Potential false positives worth revisiting.
184 tests, all passing. Not part of main CI — lives under tests/audit/.1 parent d250fa0 commit 3ebbb4a
1 file changed
Lines changed: 518 additions & 0 deletions
0 commit comments