chore(atomic): migrate atomic-commerce-interface to Lit #27951
Annotations
4 errors and 1 notice
packages/atomic/src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts#L14
1) [chromium] › src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:13:3 › with an automatic query correction › search box should contain the corrected query
Error: Timed out 7000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('atomic-search-box').getByPlaceholder('Search')
Expected string: "coveo"
Received string: "coveoo"
Call log:
- expect.toHaveValue with timeout 7000ms
- waiting for locator('atomic-search-box').getByPlaceholder('Search')
11 × locator resolved to <textarea rows="1" part="textarea" autocorrect="off" autocomplete="off" placeholder="Search" autocapitalize="off" aria-haspopup="true" aria-autocomplete="both" class="placeholder-neutral-dark" aria-controls="atomic-search-box-lkx8y-popup" title="Search field with suggestions. To begin navigating suggestions, while focused, press Down Arrow. To send, press Enter." aria-label="Search field with suggestions. To begin navigating suggestions, while focused, press Down Arrow. To send, press Enter."></textarea>
- unexpected value "coveoo"
12 |
13 | test('search box should contain the corrected query', async ({searchBox}) => {
> 14 | await expect(searchBox.searchInput).toHaveValue(CORRECTED_QUERY);
| ^
15 | });
16 |
17 | test('should display the original query', async ({page}) => {
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:14:41
|
packages/atomic/src/components/search/atomic-did-you-mean/e2e/page-object.ts#L35
2) [chromium] › src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:49:3 › with a manual query correction › should show manual correction button
Error: "route.fetch: Target page, context or browser has been closed
Call log:
- → POST https://searchuisamples.org.coveo.com/rest/search/v2?organizationId=searchuisamples
- user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.6943.16 Safari/537.36
- accept: */*
- accept-encoding: gzip,deflate,br
- accept-language: en-US
- authorization: ***
- content-type: application/json
- origin: http://localhost:4400
- referer: http://localhost:4400/
- sec-ch-ua: "Not(A:Brand";v="99", "HeadlessChrome";v="133", "Chromium";v="133"
- sec-ch-ua-mobile: ?0
- sec-ch-ua-platform: "Windows"
- content-length: 916
" while running route callback.
Consider awaiting `await page.unrouteAll({ behavior: 'ignoreErrors' })`
before the end of the test to ignore remaining routes in flight.
at components/search/atomic-did-you-mean/e2e/page-object.ts:35
33 | '**/search/v2?organizationId=searchuisamples',
34 | async (route) => {
> 35 | const response = await route.fetch();
| ^
36 | const body = await response.json();
37 | body.queryCorrection = {
38 | corrections: [
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/search/atomic-did-you-mean/e2e/page-object.ts:35:38
|
packages/atomic/src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts#L1
3) [chromium] › src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:55:3 › with a manual query correction › when clicking on the manual correction button, the search box should contain the corrected query
Test timeout of 30000ms exceeded.
|
packages/atomic/src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts#L59
3) [chromium] › src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:55:3 › with a manual query correction › when clicking on the manual correction button, the search box should contain the corrected query
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for getByRole('button', { name: 'coveo' })
- locator resolved to <button part="correction-btn" class="text-primary hover:text-primary-light focus-visible:text-primary-light py-1 hover:underline focus-visible:underline">coveo</button>
- attempting click action
2 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <atomic-search-box class="hydrated" clear-filters="" number-of-queries="8" minimum-query-length="0" data-atomic-loaded="true" data-atomic-rendered="true"></atomic-search-box> from <div>…</div> subtree intercepts pointer events
- retrying click action
- waiting 20ms
2 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <atomic-search-box class="hydrated" clear-filters="" number-of-queries="8" minimum-query-length="0" data-atomic-loaded="true" data-atomic-rendered="true"></atomic-search-box> from <div>…</div> subtree intercepts pointer events
- retrying click action
- waiting 100ms
56 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <atomic-search-box class="hydrated" clear-filters="" number-of-queries="8" minimum-query-length="0" data-atomic-loaded="true" data-atomic-rendered="true"></atomic-search-box> from <div>…</div> subtree intercepts pointer events
- retrying click action
- waiting 500ms
- waiting for element to be visible, enabled and stable
57 | page,
58 | }) => {
> 59 | await page.getByRole('button', {name: CORRECTED_QUERY}).click();
| ^
60 | await expect(searchBox.searchInput).toHaveValue(CORRECTED_QUERY);
61 | });
62 | });
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:59:61
|
3 flaky
[chromium] › src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:13:3 › with an automatic query correction › search box should contain the corrected query
[chromium] › src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:49:3 › with a manual query correction › should show manual correction button
[chromium] › src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:55:3 › with a manual query correction › when clicking on the manual correction button, the search box should contain the corrected query
22 passed (1.3m)
|
The logs for this run have expired and are no longer available.
Loading