chore(atomic): migrate unit tests to vitest/browser #26057
Annotations
2 errors and 1 notice
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/search-box-suggestions/atomic-commerce-search-box-instant-products/e2e/atomic-commerce-search-box-instant-products.e2e.ts#L21
1) [chromium] › components/commerce/search-box-suggestions/atomic-commerce-search-box-instant-products/e2e/atomic-commerce-search-box-instant-products.e2e.ts:17:3 › default › should be clickable anywhere on the instant result component
Error: Timed out 7000ms waiting for expect(locator).toBeEnabled()
Locator: getByLabel('instant result').first()
Expected: enabled
Received: <element(s) not found>
Call log:
- expect.toBeEnabled with timeout 7000ms
- waiting for getByLabel('instant result').first()
19 | page,
20 | }) => {
> 21 | await expect(instantProduct.instantProducts.first()).toBeEnabled();
| ^
22 | await instantProduct.instantProducts.first().click();
23 | await page.waitForURL(/https:\/\/sports\.barca\.group\/*/);
24 | });
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/search-box-suggestions/atomic-commerce-search-box-instant-products/e2e/atomic-commerce-search-box-instant-products.e2e.ts:21:58
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/search-box-suggestions/atomic-commerce-search-box-instant-products/e2e/atomic-commerce-search-box-instant-products.e2e.ts#L48
2) [chromium] › components/commerce/search-box-suggestions/atomic-commerce-search-box-instant-products/e2e/atomic-commerce-search-box-instant-products.e2e.ts:47:5 › default › with imageSize set to none › should apply no image class
Error: Timed out 7000ms waiting for expect(locator).toHaveClass(expected)
Locator: locator('.result-root').first()
Expected pattern: /.*image-none.*/
Received: <element(s) not found>
Call log:
- expect.toHaveClass with timeout 7000ms
- waiting for locator('.result-root').first()
46 |
47 | test('should apply no image class', async ({instantProduct}) => {
> 48 | await expect(instantProduct.productRoots.first()).toHaveClass(
| ^
49 | /.*image-none.*/
50 | );
51 | });
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/search-box-suggestions/atomic-commerce-search-box-instant-products/e2e/atomic-commerce-search-box-instant-products.e2e.ts:48:57
|
Run /./.github/actions/playwright-atomic
2 flaky
[chromium] › components/commerce/search-box-suggestions/atomic-commerce-search-box-instant-products/e2e/atomic-commerce-search-box-instant-products.e2e.ts:17:3 › default › should be clickable anywhere on the instant result component
[chromium] › components/commerce/search-box-suggestions/atomic-commerce-search-box-instant-products/e2e/atomic-commerce-search-box-instant-products.e2e.ts:47:5 › default › with imageSize set to none › should apply no image class
21 passed (56.7s)
|
Loading