Skip to content

Commit 585a109

Browse files
authored
Merge pull request #3180 from SalesforceCommerceCloud/bugfix/a11y-snapshot
[A11y E2E] Update a11y snapshots to include unique landmark for toasts
2 parents deb3091 + 337867e commit 585a109

20 files changed

+320
-0
lines changed

e2e/tests/a11y/desktop/__snapshots__/guest/cart-a11y-violations.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,21 @@
1414
]
1515
}
1616
]
17+
},
18+
{
19+
"id": "landmark-unique",
20+
"impact": "moderate",
21+
"description": "Ensure landmarks are unique",
22+
"help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination",
23+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/landmark-unique?application=playwright",
24+
"nodes": [
25+
{
26+
"html": "<div role=\"region\" aria-live=\"polite\" id=\"...\" >",
27+
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable",
28+
"target": [
29+
"#chakra-toast-manager-top"
30+
]
31+
}
32+
]
1733
}
1834
]

e2e/tests/a11y/desktop/__snapshots__/guest/checkout-a11y-violations-step-0.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
[
2+
{
3+
"id": "landmark-unique",
4+
"impact": "moderate",
5+
"description": "Ensure landmarks are unique",
6+
"help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination",
7+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/landmark-unique?application=playwright",
8+
"nodes": [
9+
{
10+
"html": "<div role=\"region\" aria-live=\"polite\" id=\"...\" >",
11+
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable",
12+
"target": [
13+
"#chakra-toast-manager-top"
14+
]
15+
}
16+
]
17+
},
218
{
319
"id": "page-has-heading-one",
420
"impact": "moderate",

e2e/tests/a11y/desktop/__snapshots__/guest/checkout-a11y-violations-step-1.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
[
2+
{
3+
"id": "landmark-unique",
4+
"impact": "moderate",
5+
"description": "Ensure landmarks are unique",
6+
"help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination",
7+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/landmark-unique?application=playwright",
8+
"nodes": [
9+
{
10+
"html": "<div role=\"region\" aria-live=\"polite\" id=\"...\" >",
11+
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable",
12+
"target": [
13+
"#chakra-toast-manager-top"
14+
]
15+
}
16+
]
17+
},
218
{
319
"id": "page-has-heading-one",
420
"impact": "moderate",

e2e/tests/a11y/desktop/__snapshots__/guest/checkout-a11y-violations-step-2.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
[
2+
{
3+
"id": "landmark-unique",
4+
"impact": "moderate",
5+
"description": "Ensure landmarks are unique",
6+
"help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination",
7+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/landmark-unique?application=playwright",
8+
"nodes": [
9+
{
10+
"html": "<div role=\"region\" aria-live=\"polite\" id=\"...\" >",
11+
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable",
12+
"target": [
13+
"#chakra-toast-manager-top"
14+
]
15+
}
16+
]
17+
},
218
{
319
"id": "page-has-heading-one",
420
"impact": "moderate",

e2e/tests/a11y/desktop/__snapshots__/guest/checkout-a11y-violations-step-3.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
[
2+
{
3+
"id": "landmark-unique",
4+
"impact": "moderate",
5+
"description": "Ensure landmarks are unique",
6+
"help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination",
7+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/landmark-unique?application=playwright",
8+
"nodes": [
9+
{
10+
"html": "<div role=\"region\" aria-live=\"polite\" id=\"...\" >",
11+
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable",
12+
"target": [
13+
"#chakra-toast-manager-top"
14+
]
15+
}
16+
]
17+
},
218
{
319
"id": "page-has-heading-one",
420
"impact": "moderate",

e2e/tests/a11y/desktop/__snapshots__/guest/checkout-a11y-violations-step-4-order-confirmation.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
[
2+
{
3+
"id": "landmark-unique",
4+
"impact": "moderate",
5+
"description": "Ensure landmarks are unique",
6+
"help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination",
7+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/landmark-unique?application=playwright",
8+
"nodes": [
9+
{
10+
"html": "<div role=\"region\" aria-live=\"polite\" id=\"...\" >",
11+
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable",
12+
"target": [
13+
"#chakra-toast-manager-top"
14+
]
15+
}
16+
]
17+
},
218
{
319
"id": "page-has-heading-one",
420
"impact": "moderate",

e2e/tests/a11y/desktop/__snapshots__/guest/homepage-a11y-violations.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,21 @@
1414
]
1515
}
1616
]
17+
},
18+
{
19+
"id": "landmark-unique",
20+
"impact": "moderate",
21+
"description": "Ensure landmarks are unique",
22+
"help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination",
23+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/landmark-unique?application=playwright",
24+
"nodes": [
25+
{
26+
"html": "<div role=\"region\" aria-live=\"polite\" id=\"...\" >",
27+
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable",
28+
"target": [
29+
"#chakra-toast-manager-top"
30+
]
31+
}
32+
]
1733
}
1834
]

e2e/tests/a11y/desktop/__snapshots__/guest/pdp-a11y-violations.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,21 @@
1414
]
1515
}
1616
]
17+
},
18+
{
19+
"id": "landmark-unique",
20+
"impact": "moderate",
21+
"description": "Ensure landmarks are unique",
22+
"help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination",
23+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/landmark-unique?application=playwright",
24+
"nodes": [
25+
{
26+
"html": "<div role=\"region\" aria-live=\"polite\" id=\"...\" >",
27+
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable",
28+
"target": [
29+
"#chakra-toast-manager-top"
30+
]
31+
}
32+
]
1733
}
1834
]

e2e/tests/a11y/desktop/__snapshots__/guest/plp-a11y-violations.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,21 @@
1414
]
1515
}
1616
]
17+
},
18+
{
19+
"id": "landmark-unique",
20+
"impact": "moderate",
21+
"description": "Ensure landmarks are unique",
22+
"help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination",
23+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/landmark-unique?application=playwright",
24+
"nodes": [
25+
{
26+
"html": "<div role=\"region\" aria-live=\"polite\" id=\"...\" >",
27+
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable",
28+
"target": [
29+
"#chakra-toast-manager-top"
30+
]
31+
}
32+
]
1733
}
1834
]

e2e/tests/a11y/desktop/__snapshots__/registered/account-addresses-a11y-violations.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,21 @@
1414
]
1515
}
1616
]
17+
},
18+
{
19+
"id": "landmark-unique",
20+
"impact": "moderate",
21+
"description": "Ensure landmarks are unique",
22+
"help": "Landmarks should have a unique role or role/label/title (i.e. accessible name) combination",
23+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/landmark-unique?application=playwright",
24+
"nodes": [
25+
{
26+
"html": "<div role=\"region\" aria-live=\"polite\" id=\"...\" >",
27+
"failureSummary": "Fix any of the following:\n The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable",
28+
"target": [
29+
"#chakra-toast-manager-top"
30+
]
31+
}
32+
]
1733
}
1834
]

0 commit comments

Comments
 (0)