Skip to content

Commit 1181932

Browse files
chutchins25straker
andauthored
test(aria-allowed-role): cover button element widget roles (#5250)
Just adds the `aria-allowed-role` integration cases for the `<button>` element (`separator`, `slider`, `treeitem`; `gridcell` was already covered), which is all #4142 needs on top of #4398. Closes #4142 --------- Co-authored-by: Steven Lambert <2433219+straker@users.noreply.github.com>
1 parent 518f3cc commit 1181932

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

test/integration/rules/aria-allowed-role/aria-allowed-role.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ <h1 id="pass-h1-valid-role" role="none"></h1>
213213
title="IconCheckmark"
214214
aria-label="IconCheckmark icon"
215215
></button>
216+
<button id="pass-button-role-separator" role="separator"></button>
217+
<button id="pass-button-role-slider" role="slider"></button>
218+
<button id="pass-button-role-treeitem" role="treeitem"></button>
216219

217220
<dd id="fail-dd-no-role" role="link"></dd>
218221
<dt id="fail-dt-no-role" role="banner"></dt>

test/integration/rules/aria-allowed-role/aria-allowed-role.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090
["#pass-navnone-1"],
9191
["#pass-navnone-2"],
9292
["#pass-search-elm"],
93-
["#pass-button-role-gridcell"]
93+
["#pass-button-role-gridcell"],
94+
["#pass-button-role-separator"],
95+
["#pass-button-role-slider"],
96+
["#pass-button-role-treeitem"]
9497
],
9598
"violations": [
9699
["#fail-dd-no-role"],

0 commit comments

Comments
 (0)