chore(samples): fix eslint setup in headless commerce react samples #21221
Annotations
2 errors, 2 warnings, and 1 notice
packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts#L56
1) [chromium] › components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts:70:7 › when a query yield a single product › should display message
TypeError: Cannot read properties of undefined (reading '0')
54 | const response = await route.fetch();
55 | const body = await response.json();
> 56 | body.products = [body.products[0]];
| ^
57 | body.pagination.totalEntries = 1;
58 | body.pagination.totalPages = 1;
59 | await route.fulfill({
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts:56:37
|
packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts#L72
1) [chromium] › components/commerce/atomic-commerce-query-summary/e2e/atomic-commerce-query-summary.e2e.ts:70:7 › when a query yield a single product › should display message
Error: expect(locator).toBeVisible()
Locator: locator(':not([role="status"])').filter({ hasText: /^Product 1 of 1 for kayak$/ })
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for locator(':not([role="status"])').filter({ hasText: /^Product 1 of 1 for kayak$/ })
70 | test('should display message', async ({querySummary}) => {
71 | const textRegex = /^Product 1 of 1 for kayak$/;
> 72 | await expect(querySummary.text(textRegex)).toBeVisible();
| ^
73 | });
74 |
75 | 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:72:48
|
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 18.4s
|
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/
|
|
This job succeeded
Loading