diff --git a/cli/test/fixtures/a11y/a11y_tester.html b/cli/test/fixtures/a11y/a11y_tester.html index f5c14a5265dd..7acfb67d0d88 100644 --- a/cli/test/fixtures/a11y/a11y_tester.html +++ b/cli/test/fixtures/a11y/a11y_tester.html @@ -24,6 +24,14 @@ aria-checked="true"> +

aria-command-name

+
+
+
+

aria-dialog-name

+
+
+

aria-hidden-focus

-

aria-command-name

-
-
-

aria-tooltip-name

@@ -84,6 +88,12 @@
+

aria-text

+
+ + Not announced + +

aria-valid-attr

sub-sub-header
+

link-in-text-block

+
+

+ paragraph text + + link text + + paragraph text +

+

link-name

@@ -198,6 +221,10 @@

sub-sub-header

+

select-name

+
+ +

tabindex

0', + 'height': 0, + }, + 'selector': 'body > section > div#aria-command-name', + 'snippet': '
', + 'explanation': 'Fix any of the following:\n Element does not have text that is visible to screen readers\n aria-label attribute does not exist or is empty\n aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty\n Element has no title attribute', + 'nodeLabel': 'body > section > div#aria-command-name', + }, + }, + ], + }, + }, + 'aria-dialog-name': { + score: 0, + details: { + items: [ + { + node: { + 'type': 'node', + 'boundingRect': { + 'width': '>0', + 'height': 0, + }, + 'selector': 'body > section > div#aria-dialog-name', + 'snippet': '
', + 'explanation': 'Fix any of the following:\n aria-label attribute does not exist or is empty\n aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty\n Element has no title attribute', + 'nodeLabel': 'body > section > div#aria-dialog-name', + }, + }, + ], + }, + }, 'aria-hidden-body': { score: 1, details: { @@ -150,26 +190,6 @@ const expectations = { ], }, }, - 'aria-command-name': { - score: 0, - details: { - items: [ - { - node: { - 'type': 'node', - 'boundingRect': { - 'width': '>0', - 'height': 0, - }, - 'selector': 'body > section > div#aria-command-name', - 'snippet': '
', - 'explanation': 'Fix any of the following:\n Element does not have text that is visible to screen readers\n aria-label attribute does not exist or is empty\n aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty\n Element has no title attribute', - 'nodeLabel': 'body > section > div#aria-command-name', - }, - }, - ], - }, - }, 'aria-tooltip-name': { score: 0, details: { @@ -238,6 +258,22 @@ const expectations = { ], }, }, + 'aria-text': { + score: 0, + details: { + items: [ + { + node: { + 'type': 'node', + 'selector': 'body > section > span#aria-text', + 'snippet': '', + 'explanation': 'Fix any of the following:\n Element has focusable descendants', + 'nodeLabel': 'Not announced', + }, + }, + ], + }, + }, 'aria-toggle-field-name': { score: 0, details: { @@ -246,7 +282,7 @@ const expectations = { node: { 'type': 'node', 'selector': 'body > section > div#aria-required-attr', - 'path': '2,HTML,1,BODY,19,SECTION,0,DIV', + 'path': '2,HTML,1,BODY,21,SECTION,0,DIV', 'snippet': '