feat: block slides insert before image load finished #13779
build-test.yml
on: pull_request
Matrix: build-native
Build Server native
1m 40s
Matrix: Analyze
Matrix: E2E Test
Build @affine/web
3m 45s
Lint
5m 22s
Check yarn binary
5s
E2E Migration Test
3m 43s
Matrix: server-e2e-test
Matrix: desktop-test
3, 2, 1 Launch
0s
Annotations
14 errors, 12 warnings, and 10 notices
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#L22
1) quick-search.spec.ts:168:5 › Create a new page and search this page ───────────────────────────
Error: locator.fill: Test timeout of 50000ms exceeded.
Call log:
- waiting for locator('[cmdk-input]')
- locator resolved to <input value="" id=":r2r:" type="text" cmdk-input="" role="combobox" autocorrect="off" autocomplete="off" spellcheck="false" aria-expanded="true" aria-controls=":r2p:" aria-labelledby=":r2q:" aria-autocomplete="list" class="cmdk_searchInput__1jt335u8" placeholder="Search docs or paste link..."/>
- fill("test123456")
- attempting fill action
- waiting for element to be visible, enabled and editable
20 |
21 | const insertInputText = async (page: Page, text: string) => {
> 22 | await page.locator('[cmdk-input]').fill(text);
| ^
23 | const actual = await page.locator('[cmdk-input]').inputValue();
24 | expect(actual).toBe(text);
25 | };
at insertInputText (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:22:38)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:192:9
|
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
|
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/BeCd0II7NxKY31LHsM77w/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
|
peek-view.spec.ts:20:5 › can open peek view via link popover:
tests/kit/utils/page-logic.ts#L50
2) peek-view.spec.ts:20:5 › can open peek view via link popover ──────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.linked-doc-popover')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.linked-doc-popover')
at ../../kit/utils/page-logic.ts:50
48 | await page.keyboard.type('@', { delay: 50 });
49 | const linkedPagePopover = page.locator('.linked-doc-popover');
> 50 | await expect(linkedPagePopover).toBeVisible();
| ^
51 | await type(page, pageName || 'Untitled');
52 |
53 | await page.keyboard.press('ArrowUp');
at createLinkedPage (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/page-logic.ts:50:35)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/peek-view.spec.ts:22:3
|
peek-view.spec.ts:112:5 › can open peek view for embedded frames:
tests/affine-local/e2e/peek-view.spec.ts#L123
3) peek-view.spec.ts:112:5 › can open peek view for embedded frames ──────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('affine-edgeless-note:has-text("Test Frame")')
121 | await page
122 | .locator('affine-edgeless-note:has-text("Test Frame")')
> 123 | .click({ force: true });
| ^
124 | // enter F to create a frame
125 | await page.keyboard.press('f');
126 |
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/peek-view.spec.ts:123:6
|
basic.spec.ts:28:5 › new page:
tests/affine-desktop-cloud/e2e/basic.spec.ts#L22
1) basic.spec.ts:28:5 › new page ─────────────────────────────────────────────────────────────────
Test timeout of 50000ms exceeded while running "beforeEach" hook.
20 | });
21 |
> 22 | test.beforeEach(async ({ page }) => {
| ^
23 | await loginUser(page, user.email, {
24 | isElectron: true,
25 | });
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-desktop-cloud/e2e/basic.spec.ts:22:6
|
basic.spec.ts:28:5 › new page:
tests/kit/utils/cloud.ts#L179
1) basic.spec.ts:28:5 › new page ─────────────────────────────────────────────────────────────────
Error: locator.click: Target page, context or browser has been closed
Call log:
- waiting for getByTestId('continue-login-button')
- locator resolved to <button data-block="true" data-size="extraLarge" data-variant="secondary" class="button_button__19zb0q2e" data-testid="continue-login-button">…</button>
- attempting click action
- waiting for element to be visible, enabled and stable
at ../../kit/utils/cloud.ts:179
177 | });
178 | await page.getByPlaceholder('Enter your email address').fill(userEmail);
> 179 | await page.getByTestId('continue-login-button').click({
| ^
180 | delay: 200,
181 | });
182 | await page.getByTestId('password-input').fill('123456');
at loginUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/cloud.ts:179:51)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-desktop-cloud/e2e/basic.spec.ts:23:3
|
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#L31
1) local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it
Error: locator.click: Test timeout of 50000ms exceeded.
Call log:
- waiting for getByTestId('workspace-name')
- locator resolved to <div data-testid="workspace-name" class="styles_workspaceName__1jh8pss4">Test Workspace 1</div>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <html lang="en-US" data-theme="light">…</html> intercepts pointer events
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
29 | .setInputFiles(resolve(rootDir, 'tests', 'fixtures', 'blue.png'));
30 | await page.mouse.click(0, 0);
> 31 | await page.getByTestId('workspace-name').click();
| ^
32 | await page.getByTestId('workspace-card').nth(0).click();
33 | await page.waitForTimeout(1000);
34 | await page.getByTestId('workspace-name').click();
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-avatar.spec.ts:31:44
|
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#L84
2) local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar ────────────────
Error: locator.click: Test timeout of 50000ms exceeded.
Call log:
- waiting for getByText('Move to trash')
- locator resolved to <span class="styles_menuSpan__njwon25">Move to trash</span>
82 | .click();
83 | const deletePage = page.getByText('Move to trash');
> 84 | await deletePage.click();
| ^
85 | await page.getByTestId('confirm-modal-confirm').click();
86 | expect(await first.locator('[data-testid^="explorer-doc-"]').count()).toBe(0);
87 | // position is a workaround for the hover issue when empty collection status's height > 26px (will cause scroll)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-collections-items.spec.ts:84:20
|
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'.
|
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 1.4m
|
Slow Test:
tests/affine-local/ai-land.spec.ts#L1
tests/affine-local/ai-land.spec.ts took 43.0s
|
Slow Test:
tests/affine-local/router.spec.ts#L1
tests/affine-local/router.spec.ts took 23.8s
|
Slow Test:
tests/affine-local/quick-search.spec.ts#L1
tests/affine-local/quick-search.spec.ts took 38.8s
|
Slow Test:
tests/affine-local/open-affine.spec.ts#L1
tests/affine-local/open-affine.spec.ts took 31.8s
|
Slow Test:
tests/affine-cloud/page-history.spec.ts#L1
tests/affine-cloud/page-history.spec.ts took 1.5m
|
Slow Test:
tests/affine-cloud/share-page.spec.ts#L1
tests/affine-cloud/share-page.spec.ts took 2.5m
|
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.5m)
|
🎭 Playwright Run Summary
31 passed (3.5m)
|
🎭 Playwright Run Summary
31 passed (3.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
3 flaky
local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list ───────────
peek-view.spec.ts:20:5 › can open peek view via link popover ───────────────────────────────────
peek-view.spec.ts:112:5 › can open peek view for embedded frames ───────────────────────────────
2 skipped
25 passed (3.9m)
|
🎭 Playwright Run Summary
1 skipped
2 passed (1.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 |
|