test(atomic): add tests for atomic-commerce-recommendation-list #23397
Annotations
4 errors, 1 warning, and 1 notice
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/atomic-commerce-recommendation-list/e2e/atomic-commerce-recommendation-list.e2e.ts#L77
1) [chromium] › components/commerce/atomic-commerce-recommendation-list/e2e/atomic-commerce-recommendation-list.e2e.ts:66:3 › with a carousel › should support going forward and backward
Error: Timed out 7000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: getByRole('listitem').nth(2)
Expected string: "indicator active-indicator"
Received string: "indicator "
Call log:
- expect.toHaveAttribute with timeout 7000ms
- waiting for getByRole('listitem').nth(2)
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
75 | await recommendationList.prevButton.click();
76 | await recommendationList.prevButton.click();
> 77 | await expect(recommendationList.indicators.nth(2)).toHaveAttribute(
| ^
78 | 'part',
79 | 'indicator active-indicator'
80 | );
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-recommendation-list/e2e/atomic-commerce-recommendation-list.e2e.ts:77:56
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/atomic-commerce-recommendation-list/e2e/atomic-commerce-recommendation-list.e2e.ts#L77
1) [chromium] › components/commerce/atomic-commerce-recommendation-list/e2e/atomic-commerce-recommendation-list.e2e.ts:66:3 › with a carousel › should support going forward and backward
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 7000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: getByRole('listitem').nth(2)
Expected string: "indicator active-indicator"
Received string: "indicator "
Call log:
- expect.toHaveAttribute with timeout 7000ms
- waiting for getByRole('listitem').nth(2)
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
75 | await recommendationList.prevButton.click();
76 | await recommendationList.prevButton.click();
> 77 | await expect(recommendationList.indicators.nth(2)).toHaveAttribute(
| ^
78 | 'part',
79 | 'indicator active-indicator'
80 | );
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-recommendation-list/e2e/atomic-commerce-recommendation-list.e2e.ts:77:56
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/atomic-commerce-recommendation-list/e2e/atomic-commerce-recommendation-list.e2e.ts#L77
1) [chromium] › components/commerce/atomic-commerce-recommendation-list/e2e/atomic-commerce-recommendation-list.e2e.ts:66:3 › with a carousel › should support going forward and backward
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 7000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: getByRole('listitem').nth(2)
Expected string: "indicator active-indicator"
Received string: "indicator "
Call log:
- expect.toHaveAttribute with timeout 7000ms
- waiting for getByRole('listitem').nth(2)
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
- locator resolved to <li part="indicator " class="h-1 w-12 rounded-md bg-neutral"></li>
- unexpected value "indicator "
75 | await recommendationList.prevButton.click();
76 | await recommendationList.prevButton.click();
> 77 | await expect(recommendationList.indicators.nth(2)).toHaveAttribute(
| ^
78 | 'part',
79 | 'indicator active-indicator'
80 | );
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-recommendation-list/e2e/atomic-commerce-recommendation-list.e2e.ts:77:56
|
Run /./.github/actions/playwright-atomic
Process completed with exit code 1.
|
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/
|
Run /./.github/actions/playwright-atomic
1 failed
[chromium] › components/commerce/atomic-commerce-recommendation-list/e2e/atomic-commerce-recommendation-list.e2e.ts:66:3 › with a carousel › should support going forward and backward
14 passed (45.9s)
|
Loading