Skip to content

Commit 82e2550

Browse files
Merge pull request #3406 from SalesforceCommerceCloud/develop
update feature branch `bonus-products-rule-based-v3` with develop branch
2 parents a8635aa + 1adfe9f commit 82e2550

File tree

45 files changed

+770
-205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+770
-205
lines changed

.github/workflows/e2e.yml

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,14 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
# Run all matrix env at once because we will not deploy demo app to MRT.
14-
node: [18, 20, 22]
15-
npm: [8, 9, 10, 11]
16-
exclude: # node 18 with npm 11 is not compatible
17-
- node: 18
18-
npm: 11
14+
node: [20, 22]
15+
npm: [10, 11]
1916
runs-on: ubuntu-latest
2017
env:
2118
# The "default" npm is the one that ships with a given version of node.
2219
# For more: https://nodejs.org/en/download/releases/
2320
# (We also use this env var for making sure a step runs once for the current node version)
24-
# Note: For node 18, the default was npm 9 until v18.19.0, when it became npm 10
25-
IS_DEFAULT_NPM: ${{ (matrix.node == 18 && matrix.npm == 10) || (matrix.node == 20 && matrix.npm == 10) || (matrix.node == 22 && matrix.npm == 10) }}
21+
IS_DEFAULT_NPM: ${{ (matrix.node == 20 && matrix.npm == 10) || (matrix.node == 22 && matrix.npm == 10) }}
2622
steps:
2723
- name: Checkout
2824
uses: actions/checkout@v4
@@ -67,18 +63,14 @@ jobs:
6763
max-parallel: 1
6864
matrix:
6965
# Run all matrix env at once because we will not deploy demo app to MRT.
70-
node: [18, 20, 22]
71-
npm: [8, 9, 10, 11]
72-
exclude: # node 18 with npm 11 is not compatible
73-
- node: 18
74-
npm: 11
66+
node: [20, 22]
67+
npm: [10, 11]
7568
runs-on: ubuntu-latest
7669
env:
7770
# The "default" npm is the one that ships with a given version of node.
7871
# For more: https://nodejs.org/en/download/releases/
7972
# (We also use this env var for making sure a step runs once for the current node version)
80-
# Note: For node 18, the default was npm 9 until v18.19.0, when it became npm 10
81-
IS_DEFAULT_NPM: ${{ (matrix.node == 18 && matrix.npm == 10) || (matrix.node == 20 && matrix.npm == 10) || (matrix.node == 22 && matrix.npm == 10) }}
73+
IS_DEFAULT_NPM: ${{ (matrix.node == 20 && matrix.npm == 10) || (matrix.node == 22 && matrix.npm == 10) }}
8274

8375
steps:
8476
- name: Checkout
@@ -183,18 +175,14 @@ jobs:
183175
max-parallel: 1
184176
matrix:
185177
# Run all matrix env at once because we will not deploy demo app to MRT.
186-
node: [18, 20, 22]
187-
npm: [8, 9, 10, 11]
188-
exclude: # node 18 with npm 11 is not compatible
189-
- node: 18
190-
npm: 11
178+
node: [20, 22]
179+
npm: [10, 11]
191180
runs-on: ubuntu-latest
192181
env:
193182
# The "default" npm is the one that ships with a given version of node.
194183
# For more: https://nodejs.org/en/download/releases/
195184
# (We also use this env var for making sure a step runs once for the current node version)
196-
# Note: For node 18, the default was npm 9 until v18.19.0, when it became npm 10
197-
IS_DEFAULT_NPM: ${{ (matrix.node == 18 && matrix.npm == 10) || (matrix.node == 20 && matrix.npm == 10) || (matrix.node == 22 && matrix.npm == 10) }}
185+
IS_DEFAULT_NPM: ${{ (matrix.node == 20 && matrix.npm == 10) || (matrix.node == 22 && matrix.npm == 10) }}
198186
# The current recommended version for Managed Runtime:
199187
# https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/upgrade-node-version.html
200188
IS_MRT_NODE: ${{ matrix.node == 22 && matrix.npm == 11 }}
@@ -303,18 +291,14 @@ jobs:
303291
max-parallel: 1
304292
matrix:
305293
# Run all matrix env at once because we will not deploy demo app to MRT.
306-
node: [18, 20, 22]
307-
npm: [8, 9, 10, 11]
308-
exclude: # node 18 with npm 11 is not compatible
309-
- node: 18
310-
npm: 11
294+
node: [20, 22]
295+
npm: [10, 11]
311296
runs-on: ubuntu-latest
312297
env:
313298
# The "default" npm is the one that ships with a given version of node.
314299
# For more: https://nodejs.org/en/download/releases/
315300
# (We also use this env var for making sure a step runs once for the current node version)
316-
# Note: For node 18, the default was npm 9 until v18.19.0, when it became npm 10
317-
IS_DEFAULT_NPM: ${{ (matrix.node == 18 && matrix.npm == 10) || (matrix.node == 20 && matrix.npm == 10) || (matrix.node == 22 && matrix.npm == 10) }}
301+
IS_DEFAULT_NPM: ${{ (matrix.node == 20 && matrix.npm == 10) || (matrix.node == 22 && matrix.npm == 10) }}
318302
steps:
319303
- name: Checkout
320304
uses: actions/checkout@v4

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@
1515
}
1616
]
1717
},
18-
{
19-
"id": "page-has-heading-one",
20-
"impact": "moderate",
21-
"description": "Ensure that the page, or at least one of its frames contains a level-one heading",
22-
"help": "Page should contain a level-one heading",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/page-has-heading-one?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<html lang=\"en-US\" class=\"...\" >",
27-
"failureSummary": "Fix all of the following:\n Page must have a level-one heading",
28-
"target": [
29-
"html"
30-
]
31-
}
32-
]
33-
},
3418
{
3519
"id": "region",
3620
"impact": "moderate",

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@
1515
}
1616
]
1717
},
18-
{
19-
"id": "page-has-heading-one",
20-
"impact": "moderate",
21-
"description": "Ensure that the page, or at least one of its frames contains a level-one heading",
22-
"help": "Page should contain a level-one heading",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/page-has-heading-one?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<html lang=\"en-US\" class=\"...\" >",
27-
"failureSummary": "Fix all of the following:\n Page must have a level-one heading",
28-
"target": [
29-
"html"
30-
]
31-
}
32-
]
33-
},
3418
{
3519
"id": "region",
3620
"impact": "moderate",

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@
1515
}
1616
]
1717
},
18-
{
19-
"id": "page-has-heading-one",
20-
"impact": "moderate",
21-
"description": "Ensure that the page, or at least one of its frames contains a level-one heading",
22-
"help": "Page should contain a level-one heading",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/page-has-heading-one?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<html lang=\"en-US\" class=\"...\" >",
27-
"failureSummary": "Fix all of the following:\n Page must have a level-one heading",
28-
"target": [
29-
"html"
30-
]
31-
}
32-
]
33-
},
3418
{
3519
"id": "region",
3620
"impact": "moderate",

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@
1515
}
1616
]
1717
},
18-
{
19-
"id": "page-has-heading-one",
20-
"impact": "moderate",
21-
"description": "Ensure that the page, or at least one of its frames contains a level-one heading",
22-
"help": "Page should contain a level-one heading",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/page-has-heading-one?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<html lang=\"en-US\" class=\"...\" >",
27-
"failureSummary": "Fix all of the following:\n Page must have a level-one heading",
28-
"target": [
29-
"html"
30-
]
31-
}
32-
]
33-
},
3418
{
3519
"id": "region",
3620
"impact": "moderate",

e2e/tests/a11y/desktop/slas-private-client/__snapshots__/registered/checkout-a11y-violations-step-0.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@
1515
}
1616
]
1717
},
18-
{
19-
"id": "page-has-heading-one",
20-
"impact": "moderate",
21-
"description": "Ensure that the page, or at least one of its frames contains a level-one heading",
22-
"help": "Page should contain a level-one heading",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/page-has-heading-one?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<html lang=\"en-US\" class=\"...\" >",
27-
"failureSummary": "Fix all of the following:\n Page must have a level-one heading",
28-
"target": [
29-
"html"
30-
]
31-
}
32-
]
33-
},
3418
{
3519
"id": "region",
3620
"impact": "moderate",

e2e/tests/a11y/desktop/slas-private-client/__snapshots__/registered/checkout-a11y-violations-step-1.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@
1515
}
1616
]
1717
},
18-
{
19-
"id": "page-has-heading-one",
20-
"impact": "moderate",
21-
"description": "Ensure that the page, or at least one of its frames contains a level-one heading",
22-
"help": "Page should contain a level-one heading",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/page-has-heading-one?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<html lang=\"en-US\" class=\"...\" >",
27-
"failureSummary": "Fix all of the following:\n Page must have a level-one heading",
28-
"target": [
29-
"html"
30-
]
31-
}
32-
]
33-
},
3418
{
3519
"id": "region",
3620
"impact": "moderate",

e2e/tests/a11y/desktop/slas-private-client/__snapshots__/registered/checkout-a11y-violations-step-2.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@
1515
}
1616
]
1717
},
18-
{
19-
"id": "page-has-heading-one",
20-
"impact": "moderate",
21-
"description": "Ensure that the page, or at least one of its frames contains a level-one heading",
22-
"help": "Page should contain a level-one heading",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/page-has-heading-one?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<html lang=\"en-US\" class=\"...\" >",
27-
"failureSummary": "Fix all of the following:\n Page must have a level-one heading",
28-
"target": [
29-
"html"
30-
]
31-
}
32-
]
33-
},
3418
{
3519
"id": "region",
3620
"impact": "moderate",

e2e/tests/a11y/desktop/slas-private-client/__snapshots__/registered/checkout-a11y-violations-step-3.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@
1515
}
1616
]
1717
},
18-
{
19-
"id": "page-has-heading-one",
20-
"impact": "moderate",
21-
"description": "Ensure that the page, or at least one of its frames contains a level-one heading",
22-
"help": "Page should contain a level-one heading",
23-
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/page-has-heading-one?application=playwright",
24-
"nodes": [
25-
{
26-
"html": "<html lang=\"en-US\" class=\"...\" >",
27-
"failureSummary": "Fix all of the following:\n Page must have a level-one heading",
28-
"target": [
29-
"html"
30-
]
31-
}
32-
]
33-
},
3418
{
3519
"id": "region",
3620
"impact": "moderate",

e2e/tests/mobile/dnt.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ test('Shopper can use the consent tracking form', async ({page}) => {
7373
await checkDntCookie(page, '1')
7474

7575
// Logging out clears the preference
76-
await page.getByRole('heading', {name: /My Account/i}).click()
76+
await page.getByRole('button', {name: /My Account chevron-down/i}).click()
7777
const buttons = await page.getByText(/Log Out/i).elementHandles()
7878
for (const button of buttons) {
7979
if (await button.isVisible()) {

0 commit comments

Comments
 (0)