fix: Replace tests with playwright (30-search/30-search--search.cy.ts) #13168
Annotations
8 errors, 3 warnings, and 1 notice
Playwright Run:
apps/app/playwright/23-editor/with-navigation.spec.ts#L47
1) [firefox] › 23-editor/with-navigation.spec.ts:11:5 › should not be cleared and should prevent GrantSelector from modified
Error: Timed out 7000ms waiting for expect(locator).toBeVisible()
Locator: getByTestId('page-editor-preview-body').getByTestId('rich-attachment')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByTestId('page-editor-preview-body').getByTestId('rich-attachment')
45 | );
46 | await page.locator('.dropzone').first().dispatchEvent('drop', { dataTransfer });
> 47 | await expect(page.getByTestId('page-editor-preview-body').getByTestId('rich-attachment')).toBeVisible();
| ^
48 |
49 | // Save page
50 | await page.getByTestId('save-page-btn').click();
at /__w/growi/growi/apps/app/playwright/23-editor/with-navigation.spec.ts:47:93
|
Playwright Run:
apps/app/playwright/23-editor/with-navigation.spec.ts#L47
1) [firefox] › 23-editor/with-navigation.spec.ts:11:5 › should not be cleared and should prevent GrantSelector from modified
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 7000ms waiting for expect(locator).toBeVisible()
Locator: getByTestId('page-editor-preview-body').getByTestId('rich-attachment')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByTestId('page-editor-preview-body').getByTestId('rich-attachment')
45 | );
46 | await page.locator('.dropzone').first().dispatchEvent('drop', { dataTransfer });
> 47 | await expect(page.getByTestId('page-editor-preview-body').getByTestId('rich-attachment')).toBeVisible();
| ^
48 |
49 | // Save page
50 | await page.getByTestId('save-page-btn').click();
at /__w/growi/growi/apps/app/playwright/23-editor/with-navigation.spec.ts:47:93
|
Playwright Run:
apps/app/playwright/23-editor/with-navigation.spec.ts#L47
1) [firefox] › 23-editor/with-navigation.spec.ts:11:5 › should not be cleared and should prevent GrantSelector from modified
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 7000ms waiting for expect(locator).toBeVisible()
Locator: getByTestId('page-editor-preview-body').getByTestId('rich-attachment')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 7000ms
- waiting for getByTestId('page-editor-preview-body').getByTestId('rich-attachment')
45 | );
46 | await page.locator('.dropzone').first().dispatchEvent('drop', { dataTransfer });
> 47 | await expect(page.getByTestId('page-editor-preview-body').getByTestId('rich-attachment')).toBeVisible();
| ^
48 |
49 | // Save page
50 | await page.getByTestId('save-page-btn').click();
at /__w/growi/growi/apps/app/playwright/23-editor/with-navigation.spec.ts:47:93
|
Playwright Run:
apps/app/playwright/30-search/search.spec.ts#L10
2) [firefox] › 30-search/search.spec.ts:3:5 › Successfully rebuild index ─────────────────────────
Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('connection-status-label')
Expected string: "CONNECTED"
Received string: "UNCONFIGURED"
Call log:
- expect.toHaveText with timeout 7000ms
- waiting for getByTestId('connection-status-label')
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
8 | await page.screenshot({ path: 'apps/app/playwright/screenshots/admin-search.png', fullPage: true });
9 |
> 10 | await expect(page.getByTestId('connection-status-label')).toHaveText('CONNECTED');
| ^
11 |
12 |
13 | // await page.getByTestId('rebuild-index-button').click();
at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:10:61
|
Playwright Run:
apps/app/playwright/30-search/search.spec.ts#L10
2) [firefox] › 30-search/search.spec.ts:3:5 › Successfully rebuild index ─────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('connection-status-label')
Expected string: "CONNECTED"
Received string: "UNCONFIGURED"
Call log:
- expect.toHaveText with timeout 7000ms
- waiting for getByTestId('connection-status-label')
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
8 | await page.screenshot({ path: 'apps/app/playwright/screenshots/admin-search.png', fullPage: true });
9 |
> 10 | await expect(page.getByTestId('connection-status-label')).toHaveText('CONNECTED');
| ^
11 |
12 |
13 | // await page.getByTestId('rebuild-index-button').click();
at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:10:61
|
Playwright Run:
apps/app/playwright/30-search/search.spec.ts#L10
2) [firefox] › 30-search/search.spec.ts:3:5 › Successfully rebuild index ─────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 7000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('connection-status-label')
Expected string: "CONNECTED"
Received string: "UNCONFIGURED"
Call log:
- expect.toHaveText with timeout 7000ms
- waiting for getByTestId('connection-status-label')
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
- locator resolved to <td class="w-75" data-testid="connection-status-label">…</td>
- unexpected value "UNCONFIGURED"
8 | await page.screenshot({ path: 'apps/app/playwright/screenshots/admin-search.png', fullPage: true });
9 |
> 10 | await expect(page.getByTestId('connection-status-label')).toHaveText('CONNECTED');
| ^
11 |
12 |
13 | // await page.getByTestId('rebuild-index-button').click();
at /__w/growi/growi/apps/app/playwright/30-search/search.spec.ts:10:61
|
Playwright Run:
apps/app/playwright/23-editor/saving.spec.ts#L24
3) [firefox] › 23-editor/saving.spec.ts:11:5 › Successfully create page under specific path ──────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 24
Received: 29
22 |
23 | const createdPageId = path.basename(page.url());
> 24 | expect(createdPageId.length).toBe(24);
| ^
25 | });
26 |
27 |
at /__w/growi/growi/apps/app/playwright/23-editor/saving.spec.ts:24:32
|
Playwright Run
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3, weseek/ghaction-slack-notification@master. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Playwright Run:
apps/app/[firefox] › 60-home/home.spec.ts#L1
apps/app/[firefox] › 60-home/home.spec.ts took 17.7s
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "playwright-report".
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/
|
Playwright Run
2 failed
[firefox] › 23-editor/with-navigation.spec.ts:11:5 › should not be cleared and should prevent GrantSelector from modified
[firefox] › 30-search/search.spec.ts:3:5 › Successfully rebuild index ──────────────────────────
1 flaky
[firefox] › 23-editor/saving.spec.ts:11:5 › Successfully create page under specific path ───────
33 passed (2.4m)
|
Loading