fix(atomic): use getter instead of fn #22790
Annotations
10 errors, 2 warnings, and 1 notice
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L26
1) [chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:25:9 › default › when suggestions are available › should display suggested queries
Error: Timed out 7000ms waiting for expect(locator).toBeVisible()
Locator: getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first()
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first()
24 |
25 | test('should display suggested queries', async ({searchBox}) => {
> 26 | await expect(searchBox.searchSuggestions().first()).toBeVisible();
| ^
27 | });
28 |
29 | test('should update aria-live message', async ({searchBox}) => {
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:26:59
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L26
1) [chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:25:9 › default › when suggestions are available › should display suggested queries
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 7000ms waiting for expect(locator).toBeVisible()
Locator: getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first()
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first()
24 |
25 | test('should display suggested queries', async ({searchBox}) => {
> 26 | await expect(searchBox.searchSuggestions().first()).toBeVisible();
| ^
27 | });
28 |
29 | test('should update aria-live message', async ({searchBox}) => {
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:26:59
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L26
1) [chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:25:9 › default › when suggestions are available › should display suggested queries
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 7000ms waiting for expect(locator).toBeVisible()
Locator: getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first()
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first()
24 |
25 | test('should display suggested queries', async ({searchBox}) => {
> 26 | await expect(searchBox.searchSuggestions().first()).toBeVisible();
| ^
27 | });
28 |
29 | test('should update aria-live message', async ({searchBox}) => {
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:26:59
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L1
2) [chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:29:9 › default › when suggestions are available › should update aria-live message
Test timeout of 30000ms exceeded.
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L30
2) [chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:29:9 › default › when suggestions are available › should update aria-live message
Error: locator.waitFor: Test timeout of 30000ms exceeded.
Call log:
- waiting for getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first() to be visible
28 |
29 | test('should update aria-live message', async ({searchBox}) => {
> 30 | await searchBox.searchSuggestions().first().waitFor({state: 'visible'});
| ^
31 | const count = await searchBox.searchSuggestions().count();
32 | const regexMessage = new RegExp(
33 | `${count} search suggestion(s are)? available.`
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:30:51
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L1
2) [chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:29:9 › default › when suggestions are available › should update aria-live message
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L30
2) [chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:29:9 › default › when suggestions are available › should update aria-live message
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.waitFor: Test timeout of 30000ms exceeded.
Call log:
- waiting for getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first() to be visible
28 |
29 | test('should update aria-live message', async ({searchBox}) => {
> 30 | await searchBox.searchSuggestions().first().waitFor({state: 'visible'});
| ^
31 | const count = await searchBox.searchSuggestions().count();
32 | const regexMessage = new RegExp(
33 | `${count} search suggestion(s are)? available.`
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:30:51
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L1
2) [chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:29:9 › default › when suggestions are available › should update aria-live message
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L30
2) [chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:29:9 › default › when suggestions are available › should update aria-live message
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.waitFor: Test timeout of 30000ms exceeded.
Call log:
- waiting for getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first() to be visible
28 |
29 | test('should update aria-live message', async ({searchBox}) => {
> 30 | await searchBox.searchSuggestions().first().waitFor({state: 'visible'});
| ^
31 | const count = await searchBox.searchSuggestions().count();
32 | const regexMessage = new RegExp(
33 | `${count} search suggestion(s are)? available.`
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:30:51
|
packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts#L45
3) [chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:52:11 › default › when suggestions are available › after clicking a suggestion › should update the searchbox input
Error: Timed out 7000ms waiting for expect(locator).toBeVisible()
Locator: getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first()
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByLabel(/suggested query\.(?: Button\.)? \d of \d\./).first()
43 |
44 | test.beforeEach(async ({searchBox}) => {
> 45 | await expect(searchBox.searchSuggestions().first()).toBeVisible();
| ^
46 |
47 | suggestionText =
48 | (await searchBox.searchSuggestions().last().textContent()) ?? '';
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:45:61
|
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "atomic-e2e-screenshots-", "result-lists-screenshots", "stencil-sample-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/
|
8 failed
[chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:25:9 › default › when suggestions are available › should display suggested queries
[chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:29:9 › default › when suggestions are available › should update aria-live message
[chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:52:11 › default › when suggestions are available › after clicking a suggestion › should update the searchbox input
[chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:56:11 › default › when suggestions are available › after clicking a suggestion › should collapse the suggested queries
[chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:72:11 › default › when suggestions are available › after focusing a suggestion › should update the searchbox input
[chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:81:13 › default › when suggestions are available › after focusing a suggestion › after pressing Enter › should collapse the suggested queries
[chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:98:9 › default › when no suggestions are available › should update aria-live message
[chromium] › components/commerce/atomic-commerce-search-box/e2e/atomic-commerce-search-box.e2e.ts:113:9 › default › when recent queries are available › should display recent queries
4 passed (4.7m)
|
The logs for this run have expired and are no longer available.
Loading