feat(atomic): add Lit equivalent for @MapProp
decorator
#26123
Annotations
10 errors and 1 notice
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/page-object.ts#L31
1) [chromium] › components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:71:3 › when the promotional price is the same as the original price › should render the price
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-price/e2e/page-object.ts:31
29 | const response = await route.fetch();
30 | const body = await response.json();
> 31 | body.products[0].ec_price = price;
| ^
32 | body.products[0].ec_promo_price = promoPrice;
33 | await route.fulfill({
34 | response,
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/page-object.ts:31:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts#L73
1) [chromium] › components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:71:3 › when the promotional price is the same as the original price › should render the price
Error: expect(locator).toBeVisible()
Locator: getByText('$100.00')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByText('$100.00')
71 | test('should render the price', async ({page}) => {
72 | const price = page.getByText('$100.00');
> 73 | await expect(price).toBeVisible();
| ^
74 | await expect(price).not.toHaveClass(/.*line-through.*/);
75 | });
76 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:73:25
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/page-object.ts#L31
1) [chromium] › components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:71:3 › when the promotional price is the same as the original price › should render the price
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-price/e2e/page-object.ts:31
29 | const response = await route.fetch();
30 | const body = await response.json();
> 31 | body.products[0].ec_price = price;
| ^
32 | body.products[0].ec_promo_price = promoPrice;
33 | await route.fulfill({
34 | response,
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/page-object.ts:31:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts#L73
1) [chromium] › components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:71:3 › when the promotional price is the same as the original price › should render the price
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible()
Locator: getByText('$100.00')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByText('$100.00')
71 | test('should render the price', async ({page}) => {
72 | const price = page.getByText('$100.00');
> 73 | await expect(price).toBeVisible();
| ^
74 | await expect(price).not.toHaveClass(/.*line-through.*/);
75 | });
76 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:73:25
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/page-object.ts#L31
1) [chromium] › components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:71:3 › when the promotional price is the same as the original price › should render the price
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading '0')
at components/commerce/product-template-components/atomic-product-price/e2e/page-object.ts:31
29 | const response = await route.fetch();
30 | const body = await response.json();
> 31 | body.products[0].ec_price = price;
| ^
32 | body.products[0].ec_promo_price = promoPrice;
33 | await route.fulfill({
34 | response,
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/page-object.ts:31:20
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts#L73
1) [chromium] › components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:71:3 › when the promotional price is the same as the original price › should render the price
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible()
Locator: getByText('$100.00')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByText('$100.00')
71 | test('should render the price', async ({page}) => {
72 | const price = page.getByText('$100.00');
> 73 | await expect(price).toBeVisible();
| ^
74 | await expect(price).not.toHaveClass(/.*line-through.*/);
75 | });
76 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:73:25
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-multi-value-text/e2e/page-object.ts#L39
2) [chromium] › components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts:43:3 › with a delimiter › when field value includes the specified delimiter, should render as distinct values
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#L52
2) [chromium] › components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts:43:3 › with a delimiter › when field value includes the specified delimiter, should render as distinct values
Error: expect(locator).toHaveCount(expected)
Locator: locator('atomic-product-multi-value-text[class*="hydrated"]').first().locator('li[part="product-multi-value-text-value"]')
Expected: 3
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"]')
4 × locator resolved to 0 elements
- unexpected value "0"
50 | });
51 |
> 52 | await expect(productMultiValueText.values).toHaveCount(3);
| ^
53 | await expect(productMultiValueText.separators).toHaveCount(3);
54 | await expect(productMultiValueText.values.first()).toHaveText('a');
55 | await expect(productMultiValueText.values.nth(1)).toHaveText('b');
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:52:48
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-multi-value-text/e2e/page-object.ts#L39
2) [chromium] › components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts:43:3 › with a delimiter › when field value includes the specified delimiter, should render as distinct values
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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#L52
2) [chromium] › components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts:43:3 › with a delimiter › when field value includes the specified delimiter, should render as distinct values
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveCount(expected)
Locator: locator('atomic-product-multi-value-text[class*="hydrated"]').first().locator('li[part="product-multi-value-text-value"]')
Expected: 3
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"]')
4 × locator resolved to 0 elements
- unexpected value "0"
50 | });
51 |
> 52 | await expect(productMultiValueText.values).toHaveCount(3);
| ^
53 | await expect(productMultiValueText.separators).toHaveCount(3);
54 | await expect(productMultiValueText.values.first()).toHaveText('a');
55 | await expect(productMultiValueText.values.nth(1)).toHaveText('b');
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:52:48
|
Run /./.github/actions/playwright-atomic
1 failed
[chromium] › components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:71:3 › when the promotional price is the same as the original price › should render the price
3 flaky
[chromium] › components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts:43:3 › with a delimiter › when field value includes the specified delimiter, should render as distinct values
[chromium] › components/commerce/product-template-components/atomic-product-multi-value-text/e2e/atomic-product-multi-value-text.e2e.ts:105:3 › with max-values-to-display set to total number of values (6) › should not render an indicator that more values are available
[chromium] › components/commerce/product-template-components/atomic-product-price/e2e/atomic-product-price.e2e.ts:53:3 › when the promotional price is higher than the original price › should render the price
20 passed (44.1s)
|
Loading