PR Robot #28382
Annotations
2 errors and 1 notice
packages/atomic/src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts#L26
1) [chromium] › src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:22:3 › with an automatic query correction › should display the auto corrected
Error: expect.toBeVisible: Error: strict mode violation: getByText('coveo', { exact: true }) resolved to 2 elements:
1) <span part="recent-query-text" class="line-clamp-2 break-all">…</span> aka getByRole('button', { name: '“coveo”, recent query. 2 of' })
2) <b part="highlight">coveo</b> aka locator('#code-root').getByText('coveo', { exact: true })
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByText('coveo', { exact: true })
24 | page.getByText('Query was automatically corrected to')
25 | ).toBeVisible();
> 26 | await expect(page.getByText(CORRECTED_QUERY, {exact: true})).toBeVisible();
| ^
27 | });
28 | });
29 |
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:26:66
|
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:39:3 › with a manual query correction › search box should contain the original query
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
|
2 flaky
[chromium] › src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:22:3 › with an automatic query correction › should display the auto corrected
[chromium] › src/components/search/atomic-did-you-mean/e2e/atomic-did-you-mean.e2e.ts:39:3 › with a manual query correction › search box should contain the original query
23 passed (36.5s)
|
The logs for this run have expired and are no longer available.
Loading