Skip to content

Commit 9626b15

Browse files
authored
Merge pull request #2761 from SalesforceCommerceCloud/testfix/revert-test-product
@W-18992617@ - Revert test product changes for e2e tests
2 parents 9af28d9 + 811d4c8 commit 9626b15

30 files changed

+170
-338
lines changed

e2e/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
RETAIL_APP_HOME:
1010
process.env.RETAIL_APP_HOME ||
1111
"https://scaffold-pwa-e2e-tests-pwa-kit.mobify-storefront.com",
12-
RETAIL_APP_HOME_SITE: "RefArchGlobal",
12+
RETAIL_APP_HOME_SITE: "RefArch",
1313
GENERATED_PROJECTS_DIR: "../generated-projects",
1414
GENERATE_PROJECTS: ["retail-app-demo", "retail-app-ext", "retail-app-no-ext"],
1515
GENERATOR_CMD:

e2e/scripts/pageHelpers.js

Lines changed: 84 additions & 63 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,10 @@
77
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/aria-allowed-attr?application=playwright",
88
"nodes": [
99
{
10-
"html": "<form id=\"...\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"popover-content-:R1l4lb9rlbpH1:\">",
10+
"html": "<form id=\"...\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"popover-content-:rh:\">",
1111
"failureSummary": "Fix all of the following:\n ARIA attribute is not allowed: aria-expanded=\"false\"",
1212
"target": [
13-
"#popover-trigger-\\:R1l4lb9rlbpH1\\:"
14-
]
15-
}
16-
]
17-
},
18-
{
19-
"id": "region",
20-
"impact": "moderate",
21-
"description": "Ensure all page content is contained by landmarks",
22-
"help": "All page content should be contained by landmarks",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/region?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<input autocomplete=\"off\" type=\"search\" aria-label=\"Search for products...\" placeholder=\"Search for products...\" id=\"...\" class=\"...\">",
27-
"failureSummary": "Fix any of the following:\n Some page content is not contained by landmarks",
28-
"target": [
29-
"#popover-trigger-\\:R1l4lb9rlbpH1\\: > .css-1igwmid.chakra-stack > .chakra-input__group.css-1y0e7gb > .css-va76oz"
13+
"#popover-trigger-\\:rh\\:"
3014
]
3115
}
3216
]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/region?application=playwright",
2424
"nodes": [
2525
{
26-
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/global/en-GB/cart\">",
26+
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/cart\">",
2727
"failureSummary": "Fix any of the following:\n Some page content is not contained by landmarks",
2828
"target": [
2929
".css-1k2aozt"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/region?application=playwright",
2424
"nodes": [
2525
{
26-
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/global/en-GB/cart\">",
26+
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/cart\">",
2727
"failureSummary": "Fix any of the following:\n Some page content is not contained by landmarks",
2828
"target": [
2929
".css-1k2aozt"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/region?application=playwright",
2424
"nodes": [
2525
{
26-
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/global/en-GB/cart\">",
26+
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/cart\">",
2727
"failureSummary": "Fix any of the following:\n Some page content is not contained by landmarks",
2828
"target": [
2929
".css-1k2aozt"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/region?application=playwright",
2424
"nodes": [
2525
{
26-
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/global/en-GB/cart\">",
26+
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/cart\">",
2727
"failureSummary": "Fix any of the following:\n Some page content is not contained by landmarks",
2828
"target": [
2929
".css-1k2aozt"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/region?application=playwright",
2424
"nodes": [
2525
{
26-
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/global/en-GB/cart\">",
26+
"html": "<a class=\"...\" aria-label=\"Back to cart, number of items: 2\" href=\"/cart\">",
2727
"failureSummary": "Fix any of the following:\n Some page content is not contained by landmarks",
2828
"target": [
2929
".css-1k2aozt"

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

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,10 @@
77
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/aria-allowed-attr?application=playwright",
88
"nodes": [
99
{
10-
"html": "<form id=\"...\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"popover-content-:R1l4lb9rlbpH1:\">",
10+
"html": "<form id=\"...\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"popover-content-:rh:\">",
1111
"failureSummary": "Fix all of the following:\n ARIA attribute is not allowed: aria-expanded=\"false\"",
1212
"target": [
13-
"#popover-trigger-\\:R1l4lb9rlbpH1\\:"
14-
]
15-
}
16-
]
17-
},
18-
{
19-
"id": "region",
20-
"impact": "moderate",
21-
"description": "Ensure all page content is contained by landmarks",
22-
"help": "All page content should be contained by landmarks",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/region?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<input autocomplete=\"off\" type=\"search\" aria-label=\"Search for products...\" placeholder=\"Search for products...\" id=\"...\" class=\"...\">",
27-
"failureSummary": "Fix any of the following:\n Some page content is not contained by landmarks",
28-
"target": [
29-
"#popover-trigger-\\:R1l4lb9rlbpH1\\: > .css-1igwmid.chakra-stack > .chakra-input__group.css-1y0e7gb > .css-va76oz"
13+
"#popover-trigger-\\:rh\\:"
3014
]
3115
}
3216
]

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

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,10 @@
77
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/aria-allowed-attr?application=playwright",
88
"nodes": [
99
{
10-
"html": "<form id=\"...\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"popover-content-:R1l4lb9rlbpH1:\">",
10+
"html": "<form id=\"...\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"popover-content-:rh:\">",
1111
"failureSummary": "Fix all of the following:\n ARIA attribute is not allowed: aria-expanded=\"false\"",
1212
"target": [
13-
"#popover-trigger-\\:R1l4lb9rlbpH1\\:"
14-
]
15-
}
16-
]
17-
},
18-
{
19-
"id": "region",
20-
"impact": "moderate",
21-
"description": "Ensure all page content is contained by landmarks",
22-
"help": "All page content should be contained by landmarks",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/region?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<input autocomplete=\"off\" type=\"search\" aria-label=\"Search for products...\" placeholder=\"Search for products...\" id=\"...\" class=\"...\">",
27-
"failureSummary": "Fix any of the following:\n Some page content is not contained by landmarks",
28-
"target": [
29-
"#popover-trigger-\\:R1l4lb9rlbpH1\\: > .css-1igwmid.chakra-stack > .chakra-input__group.css-1y0e7gb > .css-va76oz"
13+
"#popover-trigger-\\:rh\\:"
3014
]
3115
}
3216
]

0 commit comments

Comments
 (0)