fix(generatedAnswer): map state with answer api client #24669
Annotations
2 errors, 1 warning, and 1 notice
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-multi-value-text/e2e/page-object.ts#L39
1) [chromium] › components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts:28:3 › with a delimiter › when field value does not include the specified delimiter, should render as a single value
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-multi-value-text/e2e/page-object.ts:39
37 | const response = await route.fetch();
38 | const body = await response.json();
> 39 | body.products[0][field] = values.join(delimiter);
| ^
40 | await route.fulfill({
41 | response,
42 | json: body,
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-multi-value-text/e2e/page-object.ts:39:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts#L37
1) [chromium] › components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts:28:3 › with a delimiter › when field value does not include the specified delimiter, should render as a single value
Error: expect(locator).toHaveCount(expected)
Locator: locator('atomic-product-multi-value-text[class*="hydrated"]').first().locator('li[part="product-multi-value-text-value"]')
Expected: 1
Received: 0
Call log:
- expect.toHaveCount with timeout 7000ms
- waiting for locator('atomic-product-multi-value-text[class*="hydrated"]').first().locator('li[part="product-multi-value-text-value"]')
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
35 | });
36 |
> 37 | await expect(productMultiValueText.values).toHaveCount(1);
| ^
38 | await expect(productMultiValueText.separators).toHaveCount(0);
39 | await expect(productMultiValueText.values.first()).toHaveText('a/b/c/d/e');
40 | await expect(productMultiValueText.moreValuesIndicator()).not.toBeVisible();
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts:37:48
|
Run /./.github/actions/playwright-atomic:
packages/atomic/[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts#L1
packages/atomic/[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts took 18.6s
|
Run /./.github/actions/playwright-atomic
1 flaky
[chromium] › components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts:28:3 › with a delimiter › when field value does not include the specified delimiter, should render as a single value
21 passed (37.0s)
|
Loading