ci: fix ts-node scripts (#5225) #182
build-test.yml
on: push
Matrix: build-native
Build Storage
28s
Build @affine/core
2m 15s
Lint
2m 59s
Check yarn binary
5s
E2E Plugin Test
2m 4s
E2E Migration Test
2m 14s
Matrix: Analyze
Matrix: E2E Test
Unit Test
1m 12s
Matrix: server-e2e-test
Server Test
2m 47s
Matrix: desktop-test
Annotations
7 errors, 8 warnings, and 11 notices
local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it:
tests/affine-local/e2e/local-first-avatar.spec.ts#L27
1) local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it
Error: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('workspace-card').nth(1)
25 | delay: 50,
26 | });
> 27 | await page.getByTestId('workspace-card').nth(1).click();
| ^
28 | await page.getByTestId('settings-modal-trigger').click();
29 | await page.getByTestId('current-workspace-label').click();
30 | await page
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-avatar.spec.ts:27:51
|
quick-search.spec.ts:149:5 › Enter a keyword to search for:
tests/affine-local/e2e/quick-search.spec.ts#L156
1) quick-search.spec.ts:149:5 › Enter a keyword to search for ────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "test123456"
Received: ""
154 | await page.keyboard.insertText('test123456');
155 | const actual = await page.locator('[cmdk-input]').inputValue();
> 156 | expect(actual).toBe('test123456');
| ^
157 | });
158 |
159 | test('Create a new page and search this page', async ({ page }) => {
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:156:18
|
quick-search.spec.ts:159:5 › Create a new page and search this page:
tests/affine-local/e2e/quick-search.spec.ts#L168
2) quick-search.spec.ts:159:5 › Create a new page and search this page ───────────────────────────
Error: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('[cmdk-item]').locator('text=New "test123456" Page')
166 | await page.waitForTimeout(300);
167 | const addNewPage = page.locator('[cmdk-item] >> text=New "test123456" Page');
> 168 | await addNewPage.click();
| ^
169 |
170 | await page.waitForTimeout(300);
171 | await assertTitle(page, 'test123456');
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:168:20
|
quick-search.spec.ts:211:5 › Autofocus input after opening quick search:
tests/affine-local/e2e/quick-search.spec.ts#L218
3) quick-search.spec.ts:211:5 › Autofocus input after opening quick search ───────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('[cmdk-input]')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('[cmdk-input]')
- locator resolved to <input value="" id=":r8d:" type="text" cmdk-input="" ro…/>
- unexpected value "not focused"
- locator resolved to <input value="" id=":r8d:" type="text" cmdk-input="" ro…/>
- unexpected value "not focused"
- locator resolved to <input value="" id=":r8d:" type="text" cmdk-input="" ro…/>
- unexpected value "not focused"
- locator resolved to <input value="" id=":r8d:" type="text" cmdk-input="" ro…/>
- unexpected value "not focused"
- locator resolved to <input value="" id=":r8d:" type="text" cmdk-input="" ro…/>
- unexpected value "not focused"
- locator resolved to <input value="" id=":r8d:" type="text" cmdk-input="" ro…/>
- unexpected value "not focused"
- locator resolved to <input value="" id=":r8d:" type="text" cmdk-input="" ro…/>
- unexpected value "not focused"
- locator resolved to <input value="" id=":r8d:" type="text" cmdk-input="" ro…/>
- unexpected value "not focused"
- locator resolved to <input value="" id=":r8d:" type="text" cmdk-input="" ro…/>
- unexpected value "not focused"
216 | const locator = page.locator('[cmdk-input]');
217 | await expect(locator).toBeVisible();
> 218 | await expect(locator).toBeFocused();
| ^
219 | });
220 | test('Autofocus input after select', async ({ page }) => {
221 | await openHomePage(page);
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:218:25
|
migration.spec.ts:52:5 › migration:
tests/affine-cloud/e2e/migration.spec.ts#L95
1) migration.spec.ts:52:5 › migration ────────────────────────────────────────────────────────────
Error: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByTestId('upgrade-workspace-button')
93 | await page.waitForTimeout(1000);
94 | await page.goto(`${coreUrl}/workspace/${workspaceId}/all`);
> 95 | await page.getByTestId('upgrade-workspace-button').click();
| ^
96 | await expect(page.getByText('Refresh Current Page')).toBeVisible({
97 | timeout: 60000,
98 | });
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/migration.spec.ts:95:54
|
migration.spec.ts:52:5 › migration:
tests/affine-cloud/e2e/migration.spec.ts#L95
1) migration.spec.ts:52:5 › migration ────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByTestId('upgrade-workspace-button')
93 | await page.waitForTimeout(1000);
94 | await page.goto(`${coreUrl}/workspace/${workspaceId}/all`);
> 95 | await page.getByTestId('upgrade-workspace-button').click();
| ^
96 | await expect(page.getByText('Refresh Current Page')).toBeVisible({
97 | timeout: 60000,
98 | });
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/migration.spec.ts:95:54
|
migration.spec.ts:52:5 › migration:
tests/affine-cloud/e2e/migration.spec.ts#L95
1) migration.spec.ts:52:5 › migration ────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByTestId('upgrade-workspace-button')
93 | await page.waitForTimeout(1000);
94 | await page.goto(`${coreUrl}/workspace/${workspaceId}/all`);
> 95 | await page.getByTestId('upgrade-workspace-button').click();
| ^
96 | await expect(page.getByText('Refresh Current Page')).toBeVisible({
97 | timeout: 60000,
98 | });
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/migration.spec.ts:95:54
|
🎭 Playwright Run Summary
2 passed (34.7s)
|
🎭 Playwright Run Summary
4 passed (1.1m)
|
🎭 Playwright Run Summary
22 passed (2.2m)
|
🎭 Playwright Run Summary
22 passed (2.1m)
|
🎭 Playwright Run Summary
3 skipped
19 passed (2.2m)
|
🎭 Playwright Run Summary
1 flaky
local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it ─
21 passed (2.5m)
|
🎭 Playwright Run Summary
3 flaky
quick-search.spec.ts:149:5 › Enter a keyword to search for ─────────────────────────────────────
quick-search.spec.ts:159:5 › Create a new page and search this page ────────────────────────────
quick-search.spec.ts:211:5 › Autofocus input after opening quick search ────────────────────────
19 passed (2.7m)
|
🎭 Playwright Run Summary
1 passed (48.3s)
|
🎭 Playwright Run Summary
4 passed (2.1m)
|
🎭 Playwright Run Summary
5 passed (4.2m)
|
🎭 Playwright Run Summary
1 flaky
migration.spec.ts:52:5 › migration ─────────────────────────────────────────────────────────────
3 passed (6.1m)
|
Analyze (javascript)
1 issue was detected with this workflow: CodeQL language 'javascript' is referenced by more than one entry in the 'language' matrix parameter for job 'analyze'. This may result in duplicate alerts. Please edit the 'language' matrix parameter to keep only one of the following: 'javascript', 'typescript'.
|
Slow Test:
tests/affine-migration/basic.spec.ts#L1
tests/affine-migration/basic.spec.ts took 59.7s
|
Analyze (typescript)
1 issue was detected with this workflow: CodeQL language 'javascript' is referenced by more than one entry in the 'language' matrix parameter for job 'analyze'. This may result in duplicate alerts. Please edit the 'language' matrix parameter to keep only one of the following: 'javascript', 'typescript'.
|
Slow Test:
tests/affine-cloud/login.spec.ts#L1
tests/affine-cloud/login.spec.ts took 1.8m
|
Slow Test:
tests/affine-cloud/collaboration.spec.ts#L1
tests/affine-cloud/collaboration.spec.ts took 3.8m
|
Slow Test:
tests/affine-cloud/migration.spec.ts#L1
tests/affine-cloud/migration.spec.ts took 4.1m
|
Slow Test:
tests/affine-cloud/page-history.spec.ts#L1
tests/affine-cloud/page-history.spec.ts took 59.7s
|
Slow Test:
tests/affine-cloud/workspace.spec.ts#L1
tests/affine-cloud/workspace.spec.ts took 32.4s
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
affine.darwin-arm64.node
Expired
|
3.04 MB |
|
affine.darwin-x64.node
Expired
|
3.15 MB |
|
affine.linux-x64-gnu.node
Expired
|
3.12 MB |
|
affine.win32-x64-msvc.node
Expired
|
3.48 MB |
|
core
Expired
|
55.4 MB |
|
storage.node
Expired
|
6.68 MB |
|