feat(atomic, headless): add support for sort criteria alphanumericNatural #24655
Annotations
10 errors and 1 notice
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-excerpt/e2e/page-object.ts#L29
1) [chromium] › components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:117:13 › atomic-product-excerpt › when excerpt is truncated › when truncateAfter is set to 3 › when clicking the "Show More" button › when isCollapsible is false › should expand excerpt
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-excerpt/e2e/page-object.ts:29
27 | const response = await route.fetch();
28 | const body = await response.json();
> 29 | body.products[0].excerpt =
| ^
30 | 'This is a long excerpt that should be truncated'.repeat(10);
31 | await route.fulfill({
32 | response,
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-excerpt/e2e/page-object.ts:29:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts#L113
1) [chromium] › components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:117:13 › atomic-product-excerpt › when excerpt is truncated › when truncateAfter is set to 3 › when clicking the "Show More" button › when isCollapsible is false › should expand excerpt
Error: locator.waitFor: Test ended.
Call log:
- waiting for locator('atomic-product-excerpt[class*="hydrated"]').first() to be visible
111 | args: {truncateAfter: value, isCollapsible: false},
112 | });
> 113 | await productExcerpt.hydrated.first().waitFor();
| ^
114 | await productExcerpt.showMoreButton.first().click();
115 | });
116 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:113:53
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-excerpt/e2e/page-object.ts#L29
1) [chromium] › components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:117:13 › atomic-product-excerpt › when excerpt is truncated › when truncateAfter is set to 3 › when clicking the "Show More" button › when isCollapsible is false › should expand excerpt
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-excerpt/e2e/page-object.ts:29
27 | const response = await route.fetch();
28 | const body = await response.json();
> 29 | body.products[0].excerpt =
| ^
30 | 'This is a long excerpt that should be truncated'.repeat(10);
31 | await route.fulfill({
32 | response,
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-excerpt/e2e/page-object.ts:29:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts#L113
1) [chromium] › components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:117:13 › atomic-product-excerpt › when excerpt is truncated › when truncateAfter is set to 3 › when clicking the "Show More" button › when isCollapsible is false › should expand excerpt
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.waitFor: Test ended.
Call log:
- waiting for locator('atomic-product-excerpt[class*="hydrated"]').first() to be visible
111 | args: {truncateAfter: value, isCollapsible: false},
112 | });
> 113 | await productExcerpt.hydrated.first().waitFor();
| ^
114 | await productExcerpt.showMoreButton.first().click();
115 | });
116 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:113:53
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/page-object.ts#L34
2) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:41:5 › with a custom fallback image › when the product image is missing › should render the fallback image
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-image/e2e/page-object.ts:34
32 | const response = await route.fetch();
33 | const body = await response.json();
> 34 | body.products[0].ec_thumbnails = thumbnails;
| ^
35 |
36 | await route.fulfill({
37 | response,
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/page-object.ts:34:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts#L38
2) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:41:5 › with a custom fallback image › when the product image is missing › should render the fallback image
Error: locator.waitFor: Test ended.
Call log:
- waiting for getByRole('img').first() to be visible
36 | await productImage.withCustomThumbnails([]);
37 | await productImage.load({story: 'with-a-fallback-image'});
> 38 | await productImage.noCarouselImage.waitFor();
| ^
39 | });
40 |
41 | test('should render the fallback image', async ({productImage}) => {
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:38:42
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/page-object.ts#L34
3) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:59:5 › with a custom fallback image › when the product image is invalid › should render the fallback image
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-image/e2e/page-object.ts:34
32 | const response = await route.fetch();
33 | const body = await response.json();
> 34 | body.products[0].ec_thumbnails = thumbnails;
| ^
35 |
36 | await route.fulfill({
37 | response,
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/page-object.ts:34:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts#L60
3) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:59:5 › with a custom fallback image › when the product image is invalid › should render the fallback image
Error: locator.getAttribute: Test ended.
Call log:
- waiting for getByRole('img').first()
58 |
59 | test('should render the fallback image', async ({productImage}) => {
> 60 | const src = await productImage.noCarouselImage.getAttribute('src');
| ^
61 | expect(src).toContain(FALLBACK);
62 | });
63 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:60:54
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/page-object.ts#L34
4) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:77:5 › with a custom fallback image › when the product image is not a string › should render the fallback image
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-image/e2e/page-object.ts:34
32 | const response = await route.fetch();
33 | const body = await response.json();
> 34 | body.products[0].ec_thumbnails = thumbnails;
| ^
35 |
36 | await route.fulfill({
37 | response,
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/page-object.ts:34:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts#L78
4) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:77:5 › with a custom fallback image › when the product image is not a string › should render the fallback image
Error: locator.getAttribute: Test ended.
Call log:
- waiting for getByRole('img').first()
76 |
77 | test('should render the fallback image', async ({productImage}) => {
> 78 | const src = await productImage.noCarouselImage.getAttribute('src');
| ^
79 | expect(src).toContain(FALLBACK);
80 | });
81 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:78:54
|
Run /./.github/actions/playwright-atomic
7 flaky
[chromium] › components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:117:13 › atomic-product-excerpt › when excerpt is truncated › when truncateAfter is set to 3 › when clicking the "Show More" button › when isCollapsible is false › should expand excerpt
[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:41:5 › with a custom fallback image › when the product image is missing › should render the fallback image
[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:59:5 › with a custom fallback image › when the product image is invalid › should render the fallback image
[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:77:5 › with a custom fallback image › when the product image is not a string › should render the fallback image
[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:82:5 › with a custom fallback image › when the product image is not a string › should have a 1:1 aspect ratio
[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:111:5 › with an alt text field › when imageAltField is a valid string › should be accessible
[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:116:5 › with an alt text field › when imageAltField is a valid string › should use the same alt text for all images
15 passed (1.0m)
|
Loading