Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
miya committed Aug 9, 2024
1 parent bacc2cf commit f4462cd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/app/playwright/30-search/search.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ import { test, expect } from '@playwright/test';

test('Search page with "q" param is successfully loaded', async({ page }) => {
// Navigate to the search page with query parameters
await page.goto('/_search?q=alerts');
await page.goto('/_search?q=あああああああああああああああああああああああ');

// Confirm search result elements are visible
await expect(page.getByTestId('search-result-base')).toBeVisible();

await expect(page.getByTestId('search-result-list')).toBeVisible();
await expect(page.getByTestId('search-result-content')).toBeVisible();
await expect(page.locator('.wiki')).toBeVisible();

await expect(page.locator('.search-result-list')).toContainText('0 pages');

Check failure on line 21 in apps/app/playwright/30-search/search.spec.ts

View workflow job for this annotation

GitHub Actions / test-prod-node20 / run-playwright (chromium, 2/2)

[chromium] › 30-search/search.spec.ts:13:5 › Search page with "q" param is successfully loaded

1) [chromium] › 30-search/search.spec.ts:13:5 › Search page with "q" param is successfully loaded Error: Timed out 7000ms waiting for expect(locator).toContainText(expected) Locator: locator('.search-result-list') Expected string: "0 pages" Received string: "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" Call log: - expect.toContainText with timeout 7000ms - waiting for locator('.search-result-list') - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected p

Check failure on line 21 in apps/app/playwright/30-search/search.spec.ts

View workflow job for this annotation

GitHub Actions / test-prod-node20 / run-playwright (chromium, 2/2)

[chromium] › 30-search/search.spec.ts:13:5 › Search page with "q" param is successfully loaded

1) [chromium] › 30-search/search.spec.ts:13:5 › Search page with "q" param is successfully loaded Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 7000ms waiting for expect(locator).toContainText(expected) Locator: locator('.search-result-list') Expected string: "0 pages" Received string: "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" Call log: - expect.toContainText with timeout 7000ms - waiting for locator('.search-result-list') - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLas

Check failure on line 21 in apps/app/playwright/30-search/search.spec.ts

View workflow job for this annotation

GitHub Actions / test-prod-node20 / run-playwright (chromium, 2/2)

[chromium] › 30-search/search.spec.ts:13:5 › Search page with "q" param is successfully loaded

1) [chromium] › 30-search/search.spec.ts:13:5 › Search page with "q" param is successfully loaded Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 7000ms waiting for expect(locator).toContainText(expected) Locator: locator('.search-result-list') Expected string: "0 pages" Received string: "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" Call log: - expect.toContainText with timeout 7000ms - waiting for locator('.search-result-list') - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLast update datetuneinclude /userinclude /trashdeletekeyboard_arrow_downSelect alldeleteDelete selected pagesprogress_activity" - locator resolved to <div id="search-result-list" class="flex-expand-vert border boder-gray search-result-list">…</div> - unexpected value "searchsortSort by relevanceexpand_moreSort by relevanceCreation dateLas

// await expect(page.getByTestId('search-result-list')).toBeVisible();
// await expect(page.getByTestId('search-result-content')).toBeVisible();
// await expect(page.locator('.wiki')).toBeVisible();
});


Expand Down

0 comments on commit f4462cd

Please sign in to comment.