Skip to content

feat: block slides insert before image load finished (#7948) #13780

feat: block slides insert before image load finished (#7948)

feat: block slides insert before image load finished (#7948) #13780

Triggered via push August 22, 2024 17:57
Status Success
Total duration 10m 25s
Artifacts 6

build-test.yml

on: push
Matrix: build-native
Build Server native
1m 34s
Build Server native
Matrix: Analyze
Matrix: E2E Test
Build @affine/web
3m 25s
Build @affine/web
Matrix: server-e2e-test
Matrix: desktop-test
3, 2, 1 Launch
0s
3, 2, 1 Launch
Fit to window
Zoom out
Zoom in

Annotations

12 errors, 11 warnings, and 10 notices
local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list: tests/affine-local/e2e/local-first-workspace-list.spec.ts#L1
1) local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list ────────── Test timeout of 50000ms exceeded.
local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list: tests/affine-local/e2e/local-first-workspace-list.spec.ts#L54
1) local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list ────────── Error: page.reload: Test timeout of 50000ms exceeded. Call log: - waiting for navigation until "load" - navigated to "http://localhost:8080/workspace/6mTY5SOp-3Y0fVlsWm3eL/all" 52 | const result = await getPagesCount(page); 53 | expect(result).toBe(1); > 54 | await page.reload(); | ^ 55 | await page.waitForTimeout(4000); 56 | const result1 = await getPagesCount(page); 57 | expect(result1).toBe(1); at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-workspace-list.spec.ts:54:14
quick-search.spec.ts:168:5 › Create a new page and search this page: tests/affine-local/e2e/quick-search.spec.ts#L1
1) quick-search.spec.ts:168:5 › Create a new page and search this page ─────────────────────────── Test timeout of 50000ms exceeded.
quick-search.spec.ts:168:5 › Create a new page and search this page: tests/affine-local/e2e/quick-search.spec.ts#L189
1) quick-search.spec.ts:168:5 › Create a new page and search this page ─────────────────────────── Error: page.reload: Test timeout of 50000ms exceeded. Call log: - waiting for navigation until "load" - navigated to "http://localhost:8080/workspace/zWHVPcEdP7kfjk7HHsNEE/JLci87Dz_QiJPUQGpcZP_" 187 | await assertTitle(page, 'test123456'); 188 | > 189 | await page.reload(); | ^ 190 | await waitForEditorLoad(page); 191 | await openQuickSearchByShortcut(page); 192 | await insertInputText(page, 'test123456'); at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:189:14
quick-search.spec.ts:542:5 › can use slash menu to insert a newly created doc card: tests/affine-local/e2e/quick-search.spec.ts#L558
2) quick-search.spec.ts:542:5 › can use slash menu to insert a newly created doc card ──────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByTestId('cmdk-quick-search') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByTestId('cmdk-quick-search') 556 | }); 557 | await page.keyboard.press('Enter'); > 558 | await expect(page.getByTestId('cmdk-quick-search')).toBeVisible(); | ^ 559 | 560 | const testTitle = 'test title'; 561 | await page.locator('[cmdk-input]').fill(testTitle); at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:558:55
basic.spec.ts:28:5 › new page: tests/affine-desktop-cloud/e2e/basic.spec.ts#L1
1) basic.spec.ts:28:5 › new page ───────────────────────────────────────────────────────────────── Test timeout of 50000ms exceeded.
basic.spec.ts:28:5 › new page: tests/kit/utils/workspace.ts#L11
1) basic.spec.ts:28:5 › new page ───────────────────────────────────────────────────────────────── Error: locator.click: Target page, context or browser has been closed Call log: - waiting for getByTestId('app-sidebar').getByTestId('workspace-name') - locator resolved to <div data-testid="workspace-name" class="styles_workspaceName__xqvkes4">Demo Workspace</div> - attempting click action - waiting for element to be visible, enabled and stable at ../../kit/utils/workspace.ts:11 9 | 10 | export async function openWorkspaceListModal(page: Page) { > 11 | await page.getByTestId('app-sidebar').getByTestId('workspace-name').click({ | ^ 12 | delay: 50, 13 | }); 14 | } at openWorkspaceListModal (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/workspace.ts:11:71) at createLocalWorkspace (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/workspace.ts:20:9) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-desktop-cloud/e2e/basic.spec.ts:31:29
basic.spec.ts:28:5 › new page: tests/kit/electron.ts#L83
1) basic.spec.ts:28:5 › new page ───────────────────────────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: No active page found at ../../kit/electron.ts:83 81 | 82 | if (!page) { > 83 | throw new Error('No active page found'); | ^ 84 | } 85 | 86 | // wait for blocksuite to be loaded at Object.page (/home/runner/work/AFFiNE/AFFiNE/tests/kit/electron.ts:83:13)
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#L1
1) local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it Test timeout of 50000ms exceeded.
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#L41
1) local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it Error: page.evaluate: Test timeout of 50000ms exceeded. 39 | .first() 40 | .elementHandle(); > 41 | const avatarPixelData = await page.evaluate( | ^ 42 | ({ avatarCanvas }) => { 43 | return Array.from( 44 | (avatarCanvas as HTMLCanvasElement) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-avatar.spec.ts:41:38
local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar: tests/affine-local/e2e/local-first-collections-items.spec.ts#L1
2) local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar ──────────────── Test timeout of 50000ms exceeded.
local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar: tests/affine-local/e2e/local-first-collections-items.spec.ts#L42
2) local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar ──────────────── Error: page.waitForTimeout: Test timeout of 50000ms exceeded. 40 | 41 | // fixme: remove this timeout. looks like an issue with useBindWorkbenchToBrowserRouter? > 42 | await page.waitForTimeout(500); | ^ 43 | 44 | await page.getByTestId('all-pages').click(); 45 | at createAndPinCollection (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-collections-items.spec.ts:42:14) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-collections-items.spec.ts:94:3
Slow Test: tests/affine-migration/basic.spec.ts#L1
tests/affine-migration/basic.spec.ts took 1.3m
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'.
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-local/ai-land.spec.ts#L1
tests/affine-local/ai-land.spec.ts took 44.2s
Slow Test: tests/affine-local/open-affine.spec.ts#L1
tests/affine-local/open-affine.spec.ts took 30.0s
Slow Test: tests/affine-cloud/page-history.spec.ts#L1
tests/affine-cloud/page-history.spec.ts took 1.5m
Slow Test: tests/affine-local/router.spec.ts#L1
tests/affine-local/router.spec.ts took 23.9s
Slow Test: tests/affine-cloud/share-page.spec.ts#L1
tests/affine-cloud/share-page.spec.ts took 2.4m
Slow Test: tests/affine-cloud/workspace.spec.ts#L1
tests/affine-cloud/workspace.spec.ts took 1.1m
Slow Test: tests/affine-cloud/collaboration.spec.ts#L1
tests/affine-cloud/collaboration.spec.ts took 3.2m
Slow Test: tests/affine-cloud/login.spec.ts#L1
tests/affine-cloud/login.spec.ts took 1.9m
🎭 Playwright Run Summary
4 passed (1.4m)
🎭 Playwright Run Summary
31 passed (3.5m)
🎭 Playwright Run Summary
1 flaky local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list ─────────── 2 skipped 27 passed (3.5m)
🎭 Playwright Run Summary
31 passed (3.9m)
🎭 Playwright Run Summary
1 skipped 2 passed (1.9m)
🎭 Playwright Run Summary
2 flaky quick-search.spec.ts:168:5 › Create a new page and search this page ──────────────────────────── quick-search.spec.ts:542:5 › can use slash menu to insert a newly created doc card ───────────── 28 passed (3.9m)
🎭 Playwright Run Summary
1 flaky basic.spec.ts:28:5 › new page ──────────────────────────────────────────────────────────────────
🎭 Playwright Run Summary
2 flaky local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it ─ local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar ───────────────── 3 skipped 25 passed (4.4m)
🎭 Playwright Run Summary
5 passed (4.0m)
🎭 Playwright Run Summary
1 skipped 7 passed (5.6m)

Artifacts

Produced during runtime
Name Size
affine.darwin-arm64.node Expired
1.45 MB
affine.darwin-x64.node Expired
1.54 MB
affine.linux-x64-gnu.node Expired
1.57 MB
affine.win32-x64-msvc.node Expired
1.64 MB
server-native.node Expired
4.21 MB
web Expired
58.5 MB