test(atomic): fix commerce tests #20483
Annotations
9 errors, 8 warnings, and 1 notice
packages/atomic/src/components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts#L1
1) [firefox] › components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts:8:7 › default › should be A11y compliant
Test timeout of 30000ms exceeded.
|
packages/atomic/src/components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts#L9
1) [firefox] › components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts:8:7 › default › should be A11y compliant
Error: locator.waitFor: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('atomic-commerce-category-facet[class*="hydrated"]') to be visible
7 |
8 | test('should be A11y compliant', async ({categoryFacet, makeAxeBuilder}) => {
> 9 | await categoryFacet.hydrated.waitFor();
| ^
10 | const accessibilityResults = await makeAxeBuilder().analyze();
11 | expect(accessibilityResults.violations).toEqual([]);
12 | });
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts:9:34
|
packages/atomic/src/components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts#L1
1) [firefox] › components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts:8:7 › default › should be A11y compliant
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
packages/atomic/src/components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts#L9
1) [firefox] › components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts:8:7 › default › should be A11y compliant
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.waitFor: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('atomic-commerce-category-facet[class*="hydrated"]') to be visible
7 |
8 | test('should be A11y compliant', async ({categoryFacet, makeAxeBuilder}) => {
> 9 | await categoryFacet.hydrated.waitFor();
| ^
10 | const accessibilityResults = await makeAxeBuilder().analyze();
11 | expect(accessibilityResults.violations).toEqual([]);
12 | });
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts:9:34
|
packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts#L23
2) [webkit] › components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts:21:7 › after searching for kayak › should not display duration by default
Error: expect.toBeVisible: Error: strict mode violation: getByText(/^Products 1-[\d,]+ of [\d,]+ for kayak$/) resolved to 2 elements:
1) <div role="status" aria-live="polite" id="aria-live-d…>Products 1-48 of 79 for kayak</div> aka locator('#aria-live-do9k6-query-summary')
2) <div part="container" class="text-on-background">…</div> aka locator('#code-root').getByText('Products 1-48 of 79 for kayak')
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for getByText(/^Products 1-[\d,]+ of [\d,]+ for kayak$/)
21 | test('should not display duration by default', async ({querySummary}) => {
22 | const textRegex = /^Products 1-[\d,]+ of [\d,]+ for kayak$/;
> 23 | await expect(querySummary.text(textRegex)).toBeVisible();
| ^
24 | });
25 | });
26 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts:23:48
|
packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts#L58
3) [webkit] › components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts:56:7 › when a query yield a single product › should display message
Error: expect.toBeVisible: Error: strict mode violation: getByText(/^Product 1 of 1 for @ec_product_id=SP03730_00007$/) resolved to 2 elements:
1) <div role="status" aria-live="polite" id="aria-live-z…>Product 1 of 1 for @ec_product_id=SP03730_00007</div> aka locator('#aria-live-zze0p-query-summary')
2) <div part="container" class="text-on-background">…</div> aka locator('#code-root').getByText('Product 1 of 1 for @')
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for getByText(/^Product 1 of 1 for @ec_product_id=SP03730_00007$/)
56 | test('should display message', async ({querySummary}) => {
57 | const textRegex = /^Product 1 of 1 for @ec_product_id=SP03730_00007$/;
> 58 | await expect(querySummary.text(textRegex)).toBeVisible();
| ^
59 | });
60 |
61 | test('screen readers should read out', async ({querySummary}) => {
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts:58:48
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L274
4) [webkit] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:268:11 › with instant results & query suggestions › after clicking the searchbox input › after focusing on suggestion with the mouse › should submit what is in the search box regardless of the mouse position
Error: Timed out 20000ms waiting for expect(locator).toHaveValue(expected)
Locator: getByRole('combobox', { name: 'Search' })
Expected string: "Rec"
Received string: "repair"
Call log:
- expect.toHaveValue with timeout 20000ms
- waiting for getByRole('combobox', { name: 'Search' })
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
272 | await searchBox.searchSuggestions({listSide: 'Left'}).first().hover();
273 | await searchBox.searchInput.press('Enter');
> 274 | await expect(searchBox.searchInput).toHaveValue('Rec');
| ^
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L274
4) [webkit] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:268:11 › with instant results & query suggestions › after clicking the searchbox input › after focusing on suggestion with the mouse › should submit what is in the search box regardless of the mouse position
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(locator).toHaveValue(expected)
Locator: getByRole('combobox', { name: 'Search' })
Expected string: "Rec"
Received string: "repair"
Call log:
- expect.toHaveValue with timeout 20000ms
- waiting for getByRole('combobox', { name: 'Search' })
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
272 | await searchBox.searchSuggestions({listSide: 'Left'}).first().hover();
273 | await searchBox.searchInput.press('Enter');
> 274 | await expect(sear
|
packages/atomic/src/components/search/atomic-search-box/e2e/atomic-search-box.e2e.ts#L116
5) [webkit] › components/search/atomic-search-box/e2e/atomic-search-box.e2e.ts:111:9 › with instant results & query suggestions › after clicking the searchbox input › should display in the search box what has been submitted
Error: Timed out 20000ms waiting for expect(locator).toHaveValue(expected)
Locator: getByRole('combobox', { name: 'Search' })
Expected string: "Rec"
Received string: "repair"
Call log:
- expect.toHaveValue with timeout 20000ms
- waiting for getByRole('combobox', { name: 'Search' })
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
- locator resolved to <textarea rows="1" part="textarea" role="combobox" autocor…></textarea>
- unexpected value "repair"
114 | await searchBox.searchInput.fill('Rec');
115 | await searchBox.searchInput.press('Enter');
> 116 | await expect(searchBox.searchInput).toHaveValue('Rec');
| ^
117 | });
118 |
119 | test.describe('after focusing on suggestion with the mouse', () => {
|
packages/atomic/[firefox] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L1
packages/atomic/[firefox] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts took 1.6m
|
packages/atomic/[webkit] › components/commerce/atomic-commerce-pager/e2e/atomic-commerce-pager.e2e.ts#L1
packages/atomic/[webkit] › components/commerce/atomic-commerce-pager/e2e/atomic-commerce-pager.e2e.ts took 1.1m
|
packages/atomic/[chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L1
packages/atomic/[chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts took 58.6s
|
packages/atomic/[firefox] › components/search/atomic-search-box/e2e/atomic-search-box.e2e.ts#L1
packages/atomic/[firefox] › components/search/atomic-search-box/e2e/atomic-search-box.e2e.ts took 47.6s
|
packages/atomic/[firefox] › components/commerce/atomic-commerce-pager/e2e/atomic-commerce-pager.e2e.ts#L1
packages/atomic/[firefox] › components/commerce/atomic-commerce-pager/e2e/atomic-commerce-pager.e2e.ts took 41.6s
|
|
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "result-lists-screenshots".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
5 flaky
[firefox] › components/commerce/facets/atomic-commerce-category-facet/e2e/atomic-commerce-category-facet.e2e.ts:8:7 › default › should be A11y compliant
[webkit] › components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts:21:7 › after searching for kayak › should not display duration by default
[webkit] › components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts:56:7 › when a query yield a single product › should display message
[webkit] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:268:11 › with instant results & query suggestions › after clicking the searchbox input › after focusing on suggestion with the mouse › should submit what is in the search box regardless of the mouse position
[webkit] › components/search/atomic-search-box/e2e/atomic-search-box.e2e.ts:111:9 › with instant results & query suggestions › after clicking the searchbox input › should display in the search box what has been submitted
502 passed (17.9m)
|
This job succeeded
Loading