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 56e3b20 commit 9b411bd
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions apps/app/playwright/30-search/search.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { test, expect } from '@playwright/test';
import { test, expect, Logger } from '@playwright/test';

// test('Successfully rebuild index', async({ page }) => {
// await page.goto('/admin/search');
test('Successfully rebuild index', async({ page }) => {
await page.goto('/admin/search');

// await expect(page.getByTestId('admin-full-text-search')).toBeVisible();
await expect(page.getByTestId('admin-full-text-search')).toBeVisible();

// await page.getByTestId('rebuild-index-button').click();

// await expect(page.getByTestId('rebuild-status')).toContainText('Completed');
// });
// await page.getByTestId('rebuild-index-button').click();

// await expect(page.getByTestId('rebuild-status')).toContainText('Completed');
});

test('Search page with "q" param is successfully loaded', async({ page }) => {
// Navigate to the search page with query parameters
Expand All @@ -17,8 +18,8 @@ test('Search page with "q" param is successfully loaded', async({ page }) => {
// Confirm search result elements are visible
await expect(page.getByTestId('search-result-base')).toBeVisible();

await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED');

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 (firefox, 2/2)

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

1) [firefox] › 30-search/search.spec.ts:14:5 › Search page with "q" param is successfully loaded ─ Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('connection-status-badge-connected') Expected string: "CONNECTED" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 7000ms - waiting for getByTestId('connection-status-badge-connected') 19 | await expect(page.getByTestId('search-result-base')).toBeVisible(); 20 | > 21 | await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED'); | ^ 22 | 23 | 24 | // await expect(page.getByTestId('search-result-list')).toBeVisible(); at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:21:71

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 (firefox, 2/2)

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

1) [firefox] › 30-search/search.spec.ts:14:5 › Search page with "q" param is successfully loaded ─ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('connection-status-badge-connected') Expected string: "CONNECTED" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 7000ms - waiting for getByTestId('connection-status-badge-connected') 19 | await expect(page.getByTestId('search-result-base')).toBeVisible(); 20 | > 21 | await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED'); | ^ 22 | 23 | 24 | // await expect(page.getByTestId('search-result-list')).toBeVisible(); at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:21:71

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 (firefox, 2/2)

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

1) [firefox] › 30-search/search.spec.ts:14:5 › Search page with "q" param is successfully loaded ─ Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('connection-status-badge-connected') Expected string: "CONNECTED" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 7000ms - waiting for getByTestId('connection-status-badge-connected') 19 | await expect(page.getByTestId('search-result-base')).toBeVisible(); 20 | > 21 | await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED'); | ^ 22 | 23 | 24 | // await expect(page.getByTestId('search-result-list')).toBeVisible(); at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:21:71

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:14:5 › Search page with "q" param is successfully loaded

1) [chromium] › 30-search/search.spec.ts:14:5 › Search page with "q" param is successfully loaded Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('connection-status-badge-connected') Expected string: "CONNECTED" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 7000ms - waiting for getByTestId('connection-status-badge-connected') 19 | await expect(page.getByTestId('search-result-base')).toBeVisible(); 20 | > 21 | await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED'); | ^ 22 | 23 | 24 | // await expect(page.getByTestId('search-result-list')).toBeVisible(); at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:21:71

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:14:5 › Search page with "q" param is successfully loaded

1) [chromium] › 30-search/search.spec.ts:14:5 › Search page with "q" param is successfully loaded Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('connection-status-badge-connected') Expected string: "CONNECTED" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 7000ms - waiting for getByTestId('connection-status-badge-connected') 19 | await expect(page.getByTestId('search-result-base')).toBeVisible(); 20 | > 21 | await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED'); | ^ 22 | 23 | 24 | // await expect(page.getByTestId('search-result-list')).toBeVisible(); at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:21:71

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:14:5 › Search page with "q" param is successfully loaded

1) [chromium] › 30-search/search.spec.ts:14:5 › Search page with "q" param is successfully loaded Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('connection-status-badge-connected') Expected string: "CONNECTED" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 7000ms - waiting for getByTestId('connection-status-badge-connected') 19 | await expect(page.getByTestId('search-result-base')).toBeVisible(); 20 | > 21 | await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED'); | ^ 22 | 23 | 24 | // await expect(page.getByTestId('search-result-list')).toBeVisible(); at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:21:71

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 (webkit, 2/2)

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

1) [webkit] › 30-search/search.spec.ts:14:5 › Search page with "q" param is successfully loaded ── Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('connection-status-badge-connected') Expected string: "CONNECTED" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 7000ms - waiting for getByTestId('connection-status-badge-connected') 19 | await expect(page.getByTestId('search-result-base')).toBeVisible(); 20 | > 21 | await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED'); | ^ 22 | 23 | 24 | // await expect(page.getByTestId('search-result-list')).toBeVisible(); at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:21:71

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 (webkit, 2/2)

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

1) [webkit] › 30-search/search.spec.ts:14:5 › Search page with "q" param is successfully loaded ── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('connection-status-badge-connected') Expected string: "CONNECTED" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 7000ms - waiting for getByTestId('connection-status-badge-connected') 19 | await expect(page.getByTestId('search-result-base')).toBeVisible(); 20 | > 21 | await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED'); | ^ 22 | 23 | 24 | // await expect(page.getByTestId('search-result-list')).toBeVisible(); at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:21:71

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 (webkit, 2/2)

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

1) [webkit] › 30-search/search.spec.ts:14:5 › Search page with "q" param is successfully loaded ── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('connection-status-badge-connected') Expected string: "CONNECTED" Received: <element(s) not found> Call log: - expect.toHaveText with timeout 7000ms - waiting for getByTestId('connection-status-badge-connected') 19 | await expect(page.getByTestId('search-result-base')).toBeVisible(); 20 | > 21 | await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED'); | ^ 22 | 23 | 24 | // await expect(page.getByTestId('search-result-list')).toBeVisible(); at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:21:71

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

// await expect(page.getByTestId('search-result-list')).toBeVisible();
// await expect(page.getByTestId('search-result-content')).toBeVisible();
Expand Down

0 comments on commit 9b411bd

Please sign in to comment.