feat(atomic, headless): add support for sort criteria alphanumericNatural #24655
Annotations
7 errors and 1 notice
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-description/e2e/page-object.ts#L29
1) [chromium] › components/commerce/product-template-components/atomic-product-description/e2e/atomic-product-description.e2e.ts:128:13 › atomic-product-description › when description is truncated › when truncateAfter is set to 4 › when clicking the "Show More" button › when isCollapsible is true › should collapse description when clicking the "Show Less" button
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-description/e2e/page-object.ts:29
27 | const response = await route.fetch();
28 | const body = await response.json();
> 29 | body.products[0].ec_description =
| ^
30 | 'This is a long description 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-description/e2e/page-object.ts:29:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-description/e2e/atomic-product-description.e2e.ts#L112
1) [chromium] › components/commerce/product-template-components/atomic-product-description/e2e/atomic-product-description.e2e.ts:128:13 › atomic-product-description › when description is truncated › when truncateAfter is set to 4 › when clicking the "Show More" button › when isCollapsible is true › should collapse description when clicking the "Show Less" button
Error: locator.waitFor: Test ended.
Call log:
- waiting for locator('atomic-product-description[class*="hydrated"]').first() to be visible
110 | args: {truncateAfter: value, isCollapsible: true},
111 | });
> 112 | await productDescription.hydrated.first().waitFor();
| ^
113 | await productDescription.showMoreButton.first().click();
114 | });
115 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-description/e2e/atomic-product-description.e2e.ts:112:57
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-description/e2e/page-object.ts#L29
1) [chromium] › components/commerce/product-template-components/atomic-product-description/e2e/atomic-product-description.e2e.ts:128:13 › atomic-product-description › when description is truncated › when truncateAfter is set to 4 › when clicking the "Show More" button › when isCollapsible is true › should collapse description when clicking the "Show Less" button
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-description/e2e/page-object.ts:29
27 | const response = await route.fetch();
28 | const body = await response.json();
> 29 | body.products[0].ec_description =
| ^
30 | 'This is a long description 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-description/e2e/page-object.ts:29:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-description/e2e/atomic-product-description.e2e.ts#L112
1) [chromium] › components/commerce/product-template-components/atomic-product-description/e2e/atomic-product-description.e2e.ts:128:13 › atomic-product-description › when description is truncated › when truncateAfter is set to 4 › when clicking the "Show More" button › when isCollapsible is true › should collapse description when clicking the "Show Less" button
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.waitFor: Test ended.
Call log:
- waiting for locator('atomic-product-description[class*="hydrated"]').first() to be visible
110 | args: {truncateAfter: value, isCollapsible: true},
111 | });
> 112 | await productDescription.hydrated.first().waitFor();
| ^
113 | await productDescription.showMoreButton.first().click();
114 | });
115 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-description/e2e/atomic-product-description.e2e.ts:112:57
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts#L34
2) [chromium] › components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:19:7 › atomic-product-excerpt › when providing an invalid truncate-after value › should return error for value: 0
Error: expect(received).toContain(expected) // indexOf
Expected substring: "truncateAfter: value should be one of: none, 1, 2, 3, 4"
Received string: "Failed to load resource: the server responded with a status of 429 ()"
32 | });
33 |
> 34 | expect(errorMessage.text()).toContain(
| ^
35 | 'truncateAfter: value should be one of: none, 1, 2, 3, 4'
36 | );
37 | });
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:34:37
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-excerpt/e2e/page-object.ts#L29
3) [chromium] › components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:61:9 › atomic-product-excerpt › when excerpt is truncated › when truncateAfter is set to 3 › should truncate excerpt after 3 lines
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#L67
3) [chromium] › components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:61:9 › atomic-product-excerpt › when excerpt is truncated › when truncateAfter is set to 3 › should truncate excerpt after 3 lines
Error: locator.waitFor: Test ended.
Call log:
- waiting for locator('atomic-product-excerpt[class*="hydrated"]').first() to be visible
65 | args: {truncateAfter: value},
66 | });
> 67 | await productExcerpt.hydrated.first().waitFor();
| ^
68 |
69 | const excerptText = productExcerpt.textContent.first();
70 | expect(excerptText).toHaveClass(expectedClass);
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:67:49
|
Run /./.github/actions/playwright-atomic
3 flaky
[chromium] › components/commerce/product-template-components/atomic-product-description/e2e/atomic-product-description.e2e.ts:128:13 › atomic-product-description › when description is truncated › when truncateAfter is set to 4 › when clicking the "Show More" button › when isCollapsible is true › should collapse description when clicking the "Show Less" button
[chromium] › components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:19:7 › atomic-product-excerpt › when providing an invalid truncate-after value › should return error for value: 0
[chromium] › components/commerce/product-template-components/atomic-product-excerpt/e2e/atomic-product-excerpt.e2e.ts:61:9 › atomic-product-excerpt › when excerpt is truncated › when truncateAfter is set to 3 › should truncate excerpt after 3 lines
19 passed (1.2m)
|
Loading