Skip to content

test(edgeless): frame title should be render on the top and clickable #7691

test(edgeless): frame title should be render on the top and clickable

test(edgeless): frame title should be render on the top and clickable #7691

Triggered via pull request November 18, 2024 10:55
Status Failure
Total duration 4m 23s
Artifacts 1

test.yml

on: pull_request
Install Dependencies
1m 2s
Install Dependencies
Matrix: E2E Test
Matrix: Unit Test
Build & Test
0s
Build & Test
Fit to window
Zoom out
Zoom in

Annotations

16 errors, 19 warnings, and 20 notices
latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space: tests/latex/block.spec.ts#L41
1) latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ───────────────── Error: Snapshot comparison failed: { "type": "block", "id": "0", "flavour": "affine:page", "version": 2, "props": { "title": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [ { "type": "block", "id": "1", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,92]", "background": "--affine-note-background-white", "index": "a0", "hidden": false, "displayMode": "both", "edgeless": { "style": { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box" } } }, "children": [ { "type": "block", "id": "2", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] }, { "type": "block", "id": "3", "flavour": "affine:latex", "version": 1, "props": { "xywh": "[0,0,16,16]", "index": "a0", "scale": 1, "rotate": 0, "latex": "aaa" }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-space-finial.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-b7605-arkdown-shortcut-with-space/add-latex-block-using-mark-33f77-tcut-with-space-finial-actual.json 39 | await type(page, '$$$$ aaa'); 40 | > 41 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 42 | `${testInfo.title}_finial.json` 43 | ); 44 | }); at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:41:45
code/copy-paste.spec.ts:66:1 › drag copy paste: tests/code/copy-paste.spec.ts#L79
1) code/copy-paste.spec.ts:66:1 › drag copy paste ──────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "useuse" Received: "123use" 77 | 78 | const content = await getInlineSelectionText(page); > 79 | expect(content).toBe('useuse'); | ^ 80 | 81 | await assertRichTextInlineRange(page, 0, 3, 0); 82 | }); at /home/runner/work/blocksuite/blocksuite/tests/code/copy-paste.spec.ts:79:19
edgeless/paste-block.spec.ts:67:3 › pasting blocks › pasting a edgeless block: tests/edgeless/paste-block.spec.ts#L92
1) edgeless/paste-block.spec.ts:67:3 › pasting blocks › pasting a edgeless block ───────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('affine-edgeless-text[data-block-id="12"]').locator('[data-block-id]').first() - Expected string - 1 + Received string + 17 - hello + + + + + ello + + + + + + + + + + + + Call log: - expect.toContainText with timeout 5000ms - waiting for locator('affine-edgeless-text[data-block-id="12"]').locator('[data-block-id]').first() - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " 90 | await expect(newText).toBeVisible(); 91 | const blocks = newText.locator('[data-block-id]'); > 92 | await expect(blocks.nth(0)).toContainText('hello'); | ^ 93 | await expect(blocks.nth(1).locator('.resizable-img')).toBeVisible(); 94 | await expect(blocks.nth(2)).toContainText('world'); 95 | await expect(blocks.nth(3)).toContainText('code'); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/paste-block.spec.ts:92:33
hotkey/hotkey.spec.ts:274:1 › should cut work single line: tests/hotkey/hotkey.spec.ts#L283
1) hotkey/hotkey.spec.ts:274:1 › should cut work single line ───────────────────────────────────── Error: Snapshot comparison failed: { "type": "block", "id": "0", "flavour": "affine:page", "version": 2, "props": { "title": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [ { "type": "block", "id": "1", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,92]", "background": "--affine-note-background-white", "index": "a0", "hidden": false, "displayMode": "both", "edgeless": { "style": { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box" } } }, "children": [ { "type": "block", "id": "2", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "hello" } ] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/should-cut-work-single-line-init.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-should-cut-work-single-line/should-cut-work-single-line-init-actual.json 281 | // cut 282 | await page.keyboard.press(`${SHORT_KEY}+x`); > 283 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 284 | `${testInfo.title}_init.json` 285 | ); 286 | await undoByKeyboard(page); at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:283:45
hotkey/multiline.spec.ts:100:1 › should cut work multiple line: tests/hotkey/multiline.spec.ts#L110
2) hotkey/multiline.spec.ts:100:1 › should cut work multiple line ──────────────────────────────── Error: Snapshot comparison failed: { "type": "block", "id": "0", "flavour": "affine:page", "version": 2, "props": { "title": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [ { "type": "block", "id": "1", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,92]", "background": "--affine-note-background-white", "index": "a0", "hidden": false, "displayMode": "both", "edgeless": { "style": { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box" } } }, "children": [ { "type": "block", "id": "2", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "123" } ] } }, "children": [] }, { "type": "block", "id": "3", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "456" } ] } }, "children": [] }, { "type": "block", "id": "4", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "789" } ] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/multiline.spec.ts/should-cut-work-multiple-line-init.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-multiline-should-cut-work-multiple-line/should-cut-work-multiple-line-init-actual.json 108 | // cut 109 | await page.keyboard.press(`${SHORT_KEY}+x`); > 110 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 111 | `${testInfo.title}_init.json` 112 | ); 113 | await undoByKeyboard(page); at /home/runner/work/blocksuite/blocksuite/tests/hotkey/multiline.spec.ts:110:45
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing: tests/utils/actions/edgeless.ts#L357
1) edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ───────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-slide-menu edgeless-tool-icon-button').filter({ hasText: 'Square' }) - locator resolved to <edgeless-tool-icon-button role="button">…</edgeless-tool-icon-button> - attempting click action - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying at utils/actions/edgeless.ts:357 355 | .locator('edgeless-slide-menu edgeless-tool-icon-button') 356 | .filter({ hasText: shape }); > 357 | await squareShapeButton.click(); | ^ 358 | break; 359 | } 360 | } at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:357:31) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137:3
edgeless/frame/frame-title.spec.ts:49:3 › frame title rendering › frame title should be rendered on the top: tests/edgeless/frame/frame-title.spec.ts#L71
1) edgeless/frame/frame-title.spec.ts:49:3 › frame title rendering › frame title should be rendered on the top Error: frame title should be rendered on the top expect(received).toBeFalsy() Received: true 69 | await frameTitle.click({ timeout: 50 }); 70 | } catch { > 71 | expect(true, 'frame title should be rendered on the top').toBeFalsy(); | ^ 72 | } 73 | }); 74 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:71:65
edgeless/frame/frame-title.spec.ts:49:3 › frame title rendering › frame title should be rendered on the top: tests/edgeless/frame/frame-title.spec.ts#L71
1) edgeless/frame/frame-title.spec.ts:49:3 › frame title rendering › frame title should be rendered on the top Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: frame title should be rendered on the top expect(received).toBeFalsy() Received: true 69 | await frameTitle.click({ timeout: 50 }); 70 | } catch { > 71 | expect(true, 'frame title should be rendered on the top').toBeFalsy(); | ^ 72 | } 73 | }); 74 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:71:65
edgeless/frame/frame-title.spec.ts:49:3 › frame title rendering › frame title should be rendered on the top: tests/edgeless/frame/frame-title.spec.ts#L71
1) edgeless/frame/frame-title.spec.ts:49:3 › frame title rendering › frame title should be rendered on the top Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: frame title should be rendered on the top expect(received).toBeFalsy() Received: true 69 | await frameTitle.click({ timeout: 50 }); 70 | } catch { > 71 | expect(true, 'frame title should be rendered on the top').toBeFalsy(); | ^ 72 | } 73 | }); 74 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:71:65
edgeless/frame/frame-title.spec.ts:49:3 › frame title rendering › frame title should be rendered on the top: tests/edgeless/frame/frame-title.spec.ts#L71
1) edgeless/frame/frame-title.spec.ts:49:3 › frame title rendering › frame title should be rendered on the top Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: frame title should be rendered on the top expect(received).toBeFalsy() Received: true 69 | await frameTitle.click({ timeout: 50 }); 70 | } catch { > 71 | expect(true, 'frame title should be rendered on the top').toBeFalsy(); | ^ 72 | } 73 | }); 74 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:71:65
edgeless/frame/frame-title.spec.ts:97:3 › frame title editing › edit frame after zoom: tests/edgeless/frame/frame-title.spec.ts#L35
2) edgeless/frame/frame-title.spec.ts:97:3 › frame title editing › edit frame after zoom ───────── TimeoutError: locator.waitFor: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-frame-title-editor') 33 | 34 | const frameTitleEditor = page.locator('edgeless-frame-title-editor'); > 35 | await frameTitleEditor.waitFor({ | ^ 36 | state: 'attached', 37 | }); 38 | return frameTitleEditor; at enterFrameTitleEditor (/home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:35:26) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:101:5
edgeless/frame/frame-title.spec.ts:97:3 › frame title editing › edit frame after zoom: tests/edgeless/frame/frame-title.spec.ts#L35
2) edgeless/frame/frame-title.spec.ts:97:3 › frame title editing › edit frame after zoom ───────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.waitFor: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-frame-title-editor') 33 | 34 | const frameTitleEditor = page.locator('edgeless-frame-title-editor'); > 35 | await frameTitleEditor.waitFor({ | ^ 36 | state: 'attached', 37 | }); 38 | return frameTitleEditor; at enterFrameTitleEditor (/home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:35:26) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:101:5
edgeless/frame/frame-title.spec.ts:97:3 › frame title editing › edit frame after zoom: tests/edgeless/frame/frame-title.spec.ts#L35
2) edgeless/frame/frame-title.spec.ts:97:3 › frame title editing › edit frame after zoom ───────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.waitFor: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-frame-title-editor') 33 | 34 | const frameTitleEditor = page.locator('edgeless-frame-title-editor'); > 35 | await frameTitleEditor.waitFor({ | ^ 36 | state: 'attached', 37 | }); 38 | return frameTitleEditor; at enterFrameTitleEditor (/home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:35:26) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:101:5
edgeless/frame/frame-title.spec.ts:97:3 › frame title editing › edit frame after zoom: tests/edgeless/frame/frame-title.spec.ts#L35
2) edgeless/frame/frame-title.spec.ts:97:3 › frame title editing › edit frame after zoom ───────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.waitFor: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-frame-title-editor') 33 | 34 | const frameTitleEditor = page.locator('edgeless-frame-title-editor'); > 35 | await frameTitleEditor.waitFor({ | ^ 36 | state: 'attached', 37 | }); 38 | return frameTitleEditor; at enterFrameTitleEditor (/home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:35:26) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/frame/frame-title.spec.ts:101:5
E2E Test (8)
Process completed with exit code 1.
Build & Test
Process completed with exit code 1.
E2E Test (16)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (20)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (1)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (17)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (18)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (3)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (19)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (15)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (2)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (4)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (13)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (10)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (14)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (12)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (6)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (5)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (9)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (11)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (7)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
🎭 Playwright Run Summary
1 skipped 46 passed (45.9s)
🎭 Playwright Run Summary
3 skipped 44 passed (42.8s)
🎭 Playwright Run Summary
2 skipped 46 passed (54.0s)
🎭 Playwright Run Summary
47 passed (46.4s)
🎭 Playwright Run Summary
47 passed (54.2s)
🎭 Playwright Run Summary
4 skipped 44 passed (53.9s)
🎭 Playwright Run Summary
47 passed (52.7s)
🎭 Playwright Run Summary
1 flaky latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ────────────────── 1 skipped 45 passed (56.7s)
🎭 Playwright Run Summary
1 flaky code/copy-paste.spec.ts:66:1 › drag copy paste ───────────────────────────────────────────────── 1 skipped 46 passed (48.0s)
🎭 Playwright Run Summary
48 passed (1.0m)
🎭 Playwright Run Summary
47 passed (1.1m)
🎭 Playwright Run Summary
1 flaky edgeless/paste-block.spec.ts:67:3 › pasting blocks › pasting a edgeless block ────────────────── 1 skipped 45 passed (1.1m)
🎭 Playwright Run Summary
2 flaky hotkey/hotkey.spec.ts:274:1 › should cut work single line ────────────────────────────────────── hotkey/multiline.spec.ts:100:1 › should cut work multiple line ───────────────────────────────── 45 passed (1.1m)
🎭 Playwright Run Summary
1 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── 2 skipped 44 passed (1.2m)
🎭 Playwright Run Summary
47 passed (1.3m)
🎭 Playwright Run Summary
6 skipped 42 passed (1.4m)
🎭 Playwright Run Summary
10 skipped 37 passed (1.4m)
🎭 Playwright Run Summary
1 skipped 46 passed (1.6m)
🎭 Playwright Run Summary
1 skipped 46 passed (1.6m)
🎭 Playwright Run Summary
2 failed edgeless/frame/frame-title.spec.ts:49:3 › frame title rendering › frame title should be rendered on the top edgeless/frame/frame-title.spec.ts:97:3 › frame title editing › edit frame after zoom ────────── 45 passed (2.0m)

Artifacts

Produced during runtime
Name Size
test-results-e2e-8
11.7 MB