Skip to content

fix(blocks): click blank area will make editor scroll #6450

fix(blocks): click blank area will make editor scroll

fix(blocks): click blank area will make editor scroll #6450

Triggered via pull request October 6, 2024 10:42
Status Failure
Total duration 3m 55s
Artifacts 13

test.yml

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

Annotations

118 errors, 7 warnings, and 20 notices
Build: tests/list.spec.ts#L627
Expected 1-2 arguments, but got 3.
Build: tests/list.spec.ts#L633
Expected 1-2 arguments, but got 3.
Build: tests/paragraph.spec.ts#L1030
Expected 1-2 arguments, but got 3.
Build: tests/paragraph.spec.ts#L1043
Expected 1-2 arguments, but got 3.
Build
Process completed with exit code 2.
code/crud.spec.ts:203:1 › duplicate code block: tests/code/crud.spec.ts#L241
1) code/crud.spec.ts:203:1 › duplicate code block ──────────────────────────────────────────────── 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,800,95]", "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:code", "version": 1, "props": { "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "let a: u8 = 7" } ] }, "language": "rust", "wrap": true, "caption": "BlockSuite" }, "children": [] }, { "type": "block", "id": "45", "flavour": "affine:code", "version": 1, "props": { "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "let a: u8 = 7" } ] }, "language": "rust", "wrap": true, "caption": "BlockSuite" }, "children": [] }, { "type": "block", "id": "3", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/duplicate-code-block-final.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-duplicate-code-block/duplicate-code-block-final-actual.json 239 | await (await codeBlockController.openMore()).duplicateButton.click(); 240 | > 241 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 242 | `${testInfo.title}_final.json` 243 | ); 244 | }); at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:241:45
code/crud.spec.ts:203:1 › duplicate code block: tests/code/crud.spec.ts#L241
1) code/crud.spec.ts:203:1 › duplicate code block ──────────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── 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,800,95]", "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:code", "version": 1, "props": { "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "let a: u8 = 7" } ] }, "language": "rust", "wrap": true, "caption": "BlockSuite" }, "children": [] }, { "type": "block", "id": "45", "flavour": "affine:code", "version": 1, "props": { "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "let a: u8 = 7" } ] }, "language": "rust", "wrap": true, "caption": "BlockSuite" }, "children": [] }, { "type": "block", "id": "3", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/duplicate-code-block-final.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-duplicate-code-block-retry1/duplicate-code-block-final-actual.json 239 | await (await codeBlockController.openMore()).duplicateButton.click(); 240 | > 241 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 242 | `${testInfo.title}_final.json` 243 | ); 244 | }); at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:241:45
code/crud.spec.ts:203:1 › duplicate code block: tests/code/crud.spec.ts#L241
1) code/crud.spec.ts:203:1 › duplicate code block ──────────────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── 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,800,95]", "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:code", "version": 1, "props": { "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "let a: u8 = 7" } ] }, "language": "rust", "wrap": true, "caption": "BlockSuite" }, "children": [] }, { "type": "block", "id": "45", "flavour": "affine:code", "version": 1, "props": { "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "let a: u8 = 7" } ] }, "language": "rust", "wrap": true, "caption": "BlockSuite" }, "children": [] }, { "type": "block", "id": "3", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/duplicate-code-block-final.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-duplicate-code-block-retry2/duplicate-code-block-final-actual.json 239 | await (await codeBlockController.openMore()).duplicateButton.click(); 240 | > 241 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 242 | `${testInfo.title}_final.json` 243 | ); 244 | }); at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:241:45
code/crud.spec.ts:203:1 › duplicate code block: tests/code/crud.spec.ts#L241
1) code/crud.spec.ts:203:1 › duplicate code block ──────────────────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── 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,800,95]", "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:code", "version": 1, "props": { "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "let a: u8 = 7" } ] }, "language": "rust", "wrap": true, "caption": "BlockSuite" }, "children": [] }, { "type": "block", "id": "45", "flavour": "affine:code", "version": 1, "props": { "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "let a: u8 = 7" } ] }, "language": "rust", "wrap": true, "caption": "BlockSuite" }, "children": [] }, { "type": "block", "id": "3", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/duplicate-code-block-final.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-duplicate-code-block-retry3/duplicate-code-block-final-actual.json 239 | await (await codeBlockController.openMore()).duplicateButton.click(); 240 | > 241 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 242 | `${testInfo.title}_final.json` 243 | ); 244 | }); at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:241:45
code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode: tests/http:/localhost:4173/assets/blocks-DADUyWHZ.js#L7708
2) code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode ───────── Error: Uncaught exception: "BlockSuiteError: This doc is missing surface block in edgeless." BlockSuiteError: This doc is missing surface block in edgeless. at new Uh (http://localhost:4173/assets/blocks-DADUyWHZ.js:7708:1264) at http://localhost:4173/assets/framework-DDJzHmuY.js:55:4893 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:2350 at KR.getOrInsert (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at nl.getRaw (http://localhost:4173/assets/framework-DDJzHmuY.js:55:2298) at nl.get (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1080) at http://localhost:4173/assets/framework-DDJzHmuY.js:55:6530 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:4907 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:1940 at KR.getOrInsert (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at Uh (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/blocks-DADUyWHZ.js:7708:1264) at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:4893 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:2350 at KR.getOrInsert (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at nl.getRaw (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:2298) at nl.get (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1080) at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:6530 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:4907 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1940 at KR.getOrInsert (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:341:11)
code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode: tests/utils/actions/keyboard.ts#L92
2) code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode ───────── Error: keyboard.press: Test ended. at utils/actions/keyboard.ts:92 90 | // avoid flaky test by simulate real user input 91 | for (let i = 0; i < count; i++) { > 92 | await page.keyboard.press('Enter', { delay: 30 }); | ^ 93 | } 94 | } 95 | at pressEnter (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/keyboard.ts:92:25) at /home/runner/work/blocksuite/blocksuite/tests/code/readonly.spec.ts:57:9
code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode: tests/http:/localhost:4173/assets/blocks-DADUyWHZ.js#L7708
2) code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode ───────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Uncaught exception: "BlockSuiteError: This doc is missing surface block in edgeless." BlockSuiteError: This doc is missing surface block in edgeless. at new Uh (http://localhost:4173/assets/blocks-DADUyWHZ.js:7708:1264) at http://localhost:4173/assets/framework-DDJzHmuY.js:55:4893 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:2350 at KR.getOrInsert (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at nl.getRaw (http://localhost:4173/assets/framework-DDJzHmuY.js:55:2298) at nl.get (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1080) at http://localhost:4173/assets/framework-DDJzHmuY.js:55:6530 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:4907 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:1940 at KR.getOrInsert (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at Uh (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/blocks-DADUyWHZ.js:7708:1264) at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:4893 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:2350 at KR.getOrInsert (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at nl.getRaw (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:2298) at nl.get (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1080) at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:6530 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:4907 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1940 at KR.getOrInsert (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:341:11)
code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode: tests/http:/localhost:4173/assets/blocks-DADUyWHZ.js#L7708
2) code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode ───────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Uncaught exception: "BlockSuiteError: This doc is missing surface block in edgeless." BlockSuiteError: This doc is missing surface block in edgeless. at new Uh (http://localhost:4173/assets/blocks-DADUyWHZ.js:7708:1264) at http://localhost:4173/assets/framework-DDJzHmuY.js:55:4893 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:2350 at KR.getOrInsert (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at nl.getRaw (http://localhost:4173/assets/framework-DDJzHmuY.js:55:2298) at nl.get (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1080) at http://localhost:4173/assets/framework-DDJzHmuY.js:55:6530 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:4907 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:1940 at KR.getOrInsert (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at Uh (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/blocks-DADUyWHZ.js:7708:1264) at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:4893 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:2350 at KR.getOrInsert (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at nl.getRaw (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:2298) at nl.get (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1080) at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:6530 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:4907 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1940 at KR.getOrInsert (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:341:11)
code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode: tests/utils/actions/keyboard.ts#L92
2) code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode ───────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: keyboard.press: Test ended. at utils/actions/keyboard.ts:92 90 | // avoid flaky test by simulate real user input 91 | for (let i = 0; i < count; i++) { > 92 | await page.keyboard.press('Enter', { delay: 30 }); | ^ 93 | } 94 | } 95 | at pressEnter (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/keyboard.ts:92:25) at /home/runner/work/blocksuite/blocksuite/tests/code/readonly.spec.ts:57:9
code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode: tests/http:/localhost:4173/assets/blocks-DADUyWHZ.js#L7708
2) code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode ───────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: Uncaught exception: "BlockSuiteError: This doc is missing surface block in edgeless." BlockSuiteError: This doc is missing surface block in edgeless. at new Uh (http://localhost:4173/assets/blocks-DADUyWHZ.js:7708:1264) at http://localhost:4173/assets/framework-DDJzHmuY.js:55:4893 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:2350 at KR.getOrInsert (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at nl.getRaw (http://localhost:4173/assets/framework-DDJzHmuY.js:55:2298) at nl.get (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1080) at http://localhost:4173/assets/framework-DDJzHmuY.js:55:6530 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:4907 at http://localhost:4173/assets/framework-DDJzHmuY.js:55:1940 at KR.getOrInsert (http://localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at Uh (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/blocks-DADUyWHZ.js:7708:1264) at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:4893 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:2350 at KR.getOrInsert (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at nl.getRaw (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:2298) at nl.get (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1080) at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:6530 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:4907 at /home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1940 at KR.getOrInsert (/home/runner/work/blocksuite/blocksuite/tests/http:/localhost:4173/assets/framework-DDJzHmuY.js:55:1384) at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:341:11)
paragraph.spec.ts:1026:3 › press ArrowDown when cursor is at the last line of a block › move cursor to next block if this block is _not_ the last block in the page: tests/utils/asserts.ts#L205
1) paragraph.spec.ts:1026:3 › press ArrowDown when cursor is at the last line of a block › move cursor to next block if this block is _not_ the last block in the page Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ "This is the 2nd last block.", - "I'm here. This is the last block.", + "This is the last block.I'm here. ", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1034:5
paragraph.spec.ts:1026:3 › press ArrowDown when cursor is at the last line of a block › move cursor to next block if this block is _not_ the last block in the page: tests/utils/asserts.ts#L205
1) paragraph.spec.ts:1026:3 › press ArrowDown when cursor is at the last line of a block › move cursor to next block if this block is _not_ the last block in the page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ "This is the 2nd last block.", - "I'm here. This is the last block.", + "This is the last block.I'm here. ", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1034:5
paragraph.spec.ts:1026:3 › press ArrowDown when cursor is at the last line of a block › move cursor to next block if this block is _not_ the last block in the page: tests/utils/asserts.ts#L205
1) paragraph.spec.ts:1026:3 › press ArrowDown when cursor is at the last line of a block › move cursor to next block if this block is _not_ the last block in the page Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ "This is the 2nd last block.", - "I'm here. This is the last block.", + "This is the last block.I'm here. ", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1034:5
paragraph.spec.ts:1026:3 › press ArrowDown when cursor is at the last line of a block › move cursor to next block if this block is _not_ the last block in the page: tests/utils/asserts.ts#L205
1) paragraph.spec.ts:1026:3 › press ArrowDown when cursor is at the last line of a block › move cursor to next block if this block is _not_ the last block in the page Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ "This is the 2nd last block.", - "I'm here. This is the last block.", + "This is the last block.I'm here. ", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1034:5
paragraph.spec.ts:226:1 › insert new paragraph block by enter: tests/utils/asserts.ts#L205
2) paragraph.spec.ts:226:1 › insert new paragraph block by enter ───────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 Array [ "", - "", - "", + " + ", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:232:3
E2E Test (17)
Process completed with exit code 1.
bookmark.spec.ts:419:3 › embed figma card › change figma card style: tests/bookmark.spec.ts#L441
1) bookmark.spec.ts:419:3 › embed figma card › change figma card style ─────────────────────────── Error: Snapshot comparison failed: { "type": "block", "id": "*", "flavour": "affine:page", "version": 2, "props": { "title": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [ { "type": "block", "id": "*", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,800,95]", "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": "*", "flavour": "affine:bookmark", "version": 1, "props": { "style": "horizontal", "url": "https://www.figma.com/design/JuXs6uOAICwf4I4tps0xKZ123", "caption": null, "description": null, "icon": null, "image": null, "title": null, "index": "a0", "xywh": "[0,0,0,0]", "rotate": 0 }, "children": [] }, { "type": "block", "id": "*", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/bookmark.spec.ts/horizontal-figma.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/bookmark-embed-figma-card-change-figma-card-style/horizontal-figma-actual.json 439 | await cardView.click(); 440 | const snapshot = (await getPageSnapshot(page)) as BlockSnapshot; > 441 | expect(ignoreSnapshotId(snapshot)).toMatchSnapshot('horizontal-figma.json'); | ^ 442 | 443 | // change to embed view 444 | const bookmark = page.locator('affine-bookmark'); at /home/runner/work/blocksuite/blocksuite/tests/bookmark.spec.ts:441:40
bookmark.spec.ts:419:3 › embed figma card › change figma card style: tests/bookmark.spec.ts#L441
1) bookmark.spec.ts:419:3 › embed figma card › change figma card style ─────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Snapshot comparison failed: { "type": "block", "id": "*", "flavour": "affine:page", "version": 2, "props": { "title": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [ { "type": "block", "id": "*", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,800,95]", "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": "*", "flavour": "affine:bookmark", "version": 1, "props": { "style": "horizontal", "url": "https://www.figma.com/design/JuXs6uOAICwf4I4tps0xKZ123", "caption": null, "description": null, "icon": null, "image": null, "title": null, "index": "a0", "xywh": "[0,0,0,0]", "rotate": 0 }, "children": [] }, { "type": "block", "id": "*", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/bookmark.spec.ts/horizontal-figma.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/bookmark-embed-figma-card-change-figma-card-style-retry1/horizontal-figma-actual.json 439 | await cardView.click(); 440 | const snapshot = (await getPageSnapshot(page)) as BlockSnapshot; > 441 | expect(ignoreSnapshotId(snapshot)).toMatchSnapshot('horizontal-figma.json'); | ^ 442 | 443 | // change to embed view 444 | const bookmark = page.locator('affine-bookmark'); at /home/runner/work/blocksuite/blocksuite/tests/bookmark.spec.ts:441:40
bookmark.spec.ts:419:3 › embed figma card › change figma card style: tests/bookmark.spec.ts#L441
1) bookmark.spec.ts:419:3 › embed figma card › change figma card style ─────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Snapshot comparison failed: { "type": "block", "id": "*", "flavour": "affine:page", "version": 2, "props": { "title": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [ { "type": "block", "id": "*", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,800,95]", "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": "*", "flavour": "affine:bookmark", "version": 1, "props": { "style": "horizontal", "url": "https://www.figma.com/design/JuXs6uOAICwf4I4tps0xKZ123", "caption": null, "description": null, "icon": null, "image": null, "title": null, "index": "a0", "xywh": "[0,0,0,0]", "rotate": 0 }, "children": [] }, { "type": "block", "id": "*", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/bookmark.spec.ts/horizontal-figma.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/bookmark-embed-figma-card-change-figma-card-style-retry2/horizontal-figma-actual.json 439 | await cardView.click(); 440 | const snapshot = (await getPageSnapshot(page)) as BlockSnapshot; > 441 | expect(ignoreSnapshotId(snapshot)).toMatchSnapshot('horizontal-figma.json'); | ^ 442 | 443 | // change to embed view 444 | const bookmark = page.locator('affine-bookmark'); at /home/runner/work/blocksuite/blocksuite/tests/bookmark.spec.ts:441:40
bookmark.spec.ts:419:3 › embed figma card › change figma card style: tests/bookmark.spec.ts#L441
1) bookmark.spec.ts:419:3 › embed figma card › change figma card style ─────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: Snapshot comparison failed: { "type": "block", "id": "*", "flavour": "affine:page", "version": 2, "props": { "title": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [ { "type": "block", "id": "*", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,800,95]", "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": "*", "flavour": "affine:bookmark", "version": 1, "props": { "style": "horizontal", "url": "https://www.figma.com/design/JuXs6uOAICwf4I4tps0xKZ123", "caption": null, "description": null, "icon": null, "image": null, "title": null, "index": "a0", "xywh": "[0,0,0,0]", "rotate": 0 }, "children": [] }, { "type": "block", "id": "*", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/bookmark.spec.ts/horizontal-figma.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/bookmark-embed-figma-card-change-figma-card-style-retry3/horizontal-figma-actual.json 439 | await cardView.click(); 440 | const snapshot = (await getPageSnapshot(page)) as BlockSnapshot; > 441 | expect(ignoreSnapshotId(snapshot)).toMatchSnapshot('horizontal-figma.json'); | ^ 442 | 443 | // change to embed view 444 | const bookmark = page.locator('affine-bookmark'); at /home/runner/work/blocksuite/blocksuite/tests/bookmark.spec.ts:441:40
E2E Test (2)
Process completed with exit code 1.
list.spec.ts:137:1 › convert to numbered list block: tests/utils/asserts.ts#L548
1) list.spec.ts:137:1 › convert to numbered list block ─────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "numbered" Received: "text" at utils/asserts.ts:548 546 | { id } 547 | ); > 548 | expect(actual).toBe(type); | ^ 549 | } 550 | 551 | export async function assertBlockFlavour( at assertBlockType (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:548:18) at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:159:3
list.spec.ts:137:1 › convert to numbered list block: tests/utils/asserts.ts#L548
1) list.spec.ts:137:1 › convert to numbered list block ─────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "numbered" Received: "text" at utils/asserts.ts:548 546 | { id } 547 | ); > 548 | expect(actual).toBe(type); | ^ 549 | } 550 | 551 | export async function assertBlockFlavour( at assertBlockType (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:548:18) at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:159:3
list.spec.ts:137:1 › convert to numbered list block: tests/utils/asserts.ts#L548
1) list.spec.ts:137:1 › convert to numbered list block ─────────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "numbered" Received: "text" at utils/asserts.ts:548 546 | { id } 547 | ); > 548 | expect(actual).toBe(type); | ^ 549 | } 550 | 551 | export async function assertBlockFlavour( at assertBlockType (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:548:18) at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:159:3
list.spec.ts:137:1 › convert to numbered list block: tests/utils/asserts.ts#L548
1) list.spec.ts:137:1 › convert to numbered list block ─────────────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "numbered" Received: "text" at utils/asserts.ts:548 546 | { id } 547 | ); > 548 | expect(actual).toBe(type); | ^ 549 | } 550 | 551 | export async function assertBlockFlavour( at assertBlockType (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:548:18) at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:159:3
E2E Test (16)
Process completed with exit code 1.
selection/native.spec.ts:1195:1 › should clear native selection before block selection: tests/selection/native.spec.ts#L1241
1) selection/native.spec.ts:1195:1 › should clear native selection before block selection ──────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 1239 | 1240 | expect(text0).toBe('456'); > 1241 | expect(textCount).toBe(0); | ^ 1242 | const rects = page.locator('affine-block-selection').locator('visible=true'); 1243 | await expect(rects).toHaveCount(1); 1244 | }); at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1241:21
selection/native.spec.ts:1195:1 › should clear native selection before block selection: tests/selection/native.spec.ts#L1241
1) selection/native.spec.ts:1195:1 › should clear native selection before block selection ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 1239 | 1240 | expect(text0).toBe('456'); > 1241 | expect(textCount).toBe(0); | ^ 1242 | const rects = page.locator('affine-block-selection').locator('visible=true'); 1243 | await expect(rects).toHaveCount(1); 1244 | }); at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1241:21
selection/native.spec.ts:1195:1 › should clear native selection before block selection: tests/selection/native.spec.ts#L1241
1) selection/native.spec.ts:1195:1 › should clear native selection before block selection ──────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 1239 | 1240 | expect(text0).toBe('456'); > 1241 | expect(textCount).toBe(0); | ^ 1242 | const rects = page.locator('affine-block-selection').locator('visible=true'); 1243 | await expect(rects).toHaveCount(1); 1244 | }); at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1241:21
selection/native.spec.ts:1195:1 › should clear native selection before block selection: tests/selection/native.spec.ts#L1241
1) selection/native.spec.ts:1195:1 › should clear native selection before block selection ──────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 1239 | 1240 | expect(text0).toBe('456'); > 1241 | expect(textCount).toBe(0); | ^ 1242 | const rects = page.locator('affine-block-selection').locator('visible=true'); 1243 | await expect(rects).toHaveCount(1); 1244 | }); at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1241:21
selection/native.spec.ts:1518:1 › should not scroll page when mouse is click down: tests/utils/asserts.ts#L205
2) selection/native.spec.ts:1518:1 › should not scroll page when mouse is click down ───────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 @@ -1,8 +1,8 @@ Array [ - "", - "", + " + ", "", "", "", "", "", at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1534:3
E2E Test (19)
Process completed with exit code 1.
image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph: tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "aa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:66:3
image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph: tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "aa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:66:3
image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph: tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "aa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:66:3
image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph: tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "aa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:66:3
image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph: tests/utils/asserts.ts#L205
2) image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "", "bbaa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:78:3
image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph: tests/utils/asserts.ts#L205
2) image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "", "bbaa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:78:3
image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph: tests/utils/asserts.ts#L205
2) image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "", "bbaa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:78:3
image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph: tests/utils/asserts.ts#L205
2) image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "", "bbaa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:78:3
link.spec.ts:311:1 › link bar should not be appear when the range is collapsed: tests/eval at evaluate (:234:30)#L11
3) link.spec.ts:311:1 › link bar should not be appear when the range is collapsed ──────────────── Error: page.evaluate: TypeError: Cannot read properties of undefined (reading 'inlineEditor') at eval (eval at evaluate (:234:30), <anonymous>:11:31) at UtilityScript.evaluate (<anonymous>:236:17) at UtilityScript.<anonymous> (<anonymous>:1:44) at eval (/home/runner/work/blocksuite/blocksuite/tests/eval at evaluate (:234:30), <anonymous>:11:31) at UtilityScript.evaluate (/home/runner/work/blocksuite/blocksuite/tests/<anonymous>:236:17) at UtilityScript.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/<anonymous>:1:44) at getIndexCoordinate (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:1224:28) at dragBetweenIndices (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:44:28) at /home/runner/work/blocksuite/blocksuite/tests/link.spec.ts:342:9
link.spec.ts:311:1 › link bar should not be appear when the range is collapsed: tests/eval at evaluate (:234:30)#L11
3) link.spec.ts:311:1 › link bar should not be appear when the range is collapsed ──────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.evaluate: TypeError: Cannot read properties of undefined (reading 'inlineEditor') at eval (eval at evaluate (:234:30), <anonymous>:11:31) at UtilityScript.evaluate (<anonymous>:236:17) at UtilityScript.<anonymous> (<anonymous>:1:44) at eval (/home/runner/work/blocksuite/blocksuite/tests/eval at evaluate (:234:30), <anonymous>:11:31) at UtilityScript.evaluate (/home/runner/work/blocksuite/blocksuite/tests/<anonymous>:236:17) at UtilityScript.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/<anonymous>:1:44) at getIndexCoordinate (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:1224:28) at dragBetweenIndices (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:44:28) at /home/runner/work/blocksuite/blocksuite/tests/link.spec.ts:342:9
database/database.spec.ts:55:1 › edit database block title and create new rows: tests/utils/asserts.ts#L614
1) database/database.spec.ts:55:1 › edit database block title and create new rows ──────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Object { - "title": "hello", + "title": "Database 1", } at utils/asserts.ts:614 612 | [id, props] as const 613 | ); > 614 | expect(actual).toEqual(props); | ^ 615 | } 616 | 617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) { at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18) at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:71:3
database/database.spec.ts:55:1 › edit database block title and create new rows: tests/utils/asserts.ts#L614
1) database/database.spec.ts:55:1 › edit database block title and create new rows ──────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Object { - "title": "hello", + "title": "Database 1", } at utils/asserts.ts:614 612 | [id, props] as const 613 | ); > 614 | expect(actual).toEqual(props); | ^ 615 | } 616 | 617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) { at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18) at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:71:3
database/database.spec.ts:55:1 › edit database block title and create new rows: tests/utils/asserts.ts#L614
1) database/database.spec.ts:55:1 › edit database block title and create new rows ──────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Object { - "title": "hello", + "title": "Database 1", } at utils/asserts.ts:614 612 | [id, props] as const 613 | ); > 614 | expect(actual).toEqual(props); | ^ 615 | } 616 | 617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) { at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18) at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:71:3
database/database.spec.ts:55:1 › edit database block title and create new rows: tests/utils/asserts.ts#L614
1) database/database.spec.ts:55:1 › edit database block title and create new rows ──────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Object { - "title": "hello", + "title": "Database 1", } at utils/asserts.ts:614 612 | [id, props] as const 613 | ); > 614 | expect(actual).toEqual(props); | ^ 615 | } 616 | 617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) { at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18) at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:71:3
database/database.spec.ts:215:1 › should database search input displayed correctly: tests/database/actions.ts#L292
2) database/database.spec.ts:215:1 › should database search input displayed correctly ──────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 at database/actions.ts:292 290 | const searchExpand = page.locator('.search-container-expand'); 291 | const count = await searchExpand.count(); > 292 | expect(count).toBe(isSearching ? 1 : 0); | ^ 293 | } 294 | 295 | export async function focusDatabaseSearch(page: Page) { at assertDatabaseSearching (/home/runner/work/blocksuite/blocksuite/tests/database/actions.ts:292:17) at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:231:3
database/database.spec.ts:215:1 › should database search input displayed correctly: tests/database/actions.ts#L292
2) database/database.spec.ts:215:1 › should database search input displayed correctly ──────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 at database/actions.ts:292 290 | const searchExpand = page.locator('.search-container-expand'); 291 | const count = await searchExpand.count(); > 292 | expect(count).toBe(isSearching ? 1 : 0); | ^ 293 | } 294 | 295 | export async function focusDatabaseSearch(page: Page) { at assertDatabaseSearching (/home/runner/work/blocksuite/blocksuite/tests/database/actions.ts:292:17) at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:231:3
database/database.spec.ts:215:1 › should database search input displayed correctly: tests/database/actions.ts#L292
2) database/database.spec.ts:215:1 › should database search input displayed correctly ──────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 at database/actions.ts:292 290 | const searchExpand = page.locator('.search-container-expand'); 291 | const count = await searchExpand.count(); > 292 | expect(count).toBe(isSearching ? 1 : 0); | ^ 293 | } 294 | 295 | export async function focusDatabaseSearch(page: Page) { at assertDatabaseSearching (/home/runner/work/blocksuite/blocksuite/tests/database/actions.ts:292:17) at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:231:3
database/database.spec.ts:215:1 › should database search input displayed correctly: tests/database/actions.ts#L292
2) database/database.spec.ts:215:1 › should database search input displayed correctly ──────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 at database/actions.ts:292 290 | const searchExpand = page.locator('.search-container-expand'); 291 | const count = await searchExpand.count(); > 292 | expect(count).toBe(isSearching ? 1 : 0); | ^ 293 | } 294 | 295 | export async function focusDatabaseSearch(page: Page) { at assertDatabaseSearching (/home/runner/work/blocksuite/blocksuite/tests/database/actions.ts:292:17) at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:231:3
database/database.spec.ts:616:3 › readonly mode › database title should not be edited in readonly mode: tests/utils/asserts.ts#L614
3) database/database.spec.ts:616:3 › readonly mode › database title should not be edited in readonly mode Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Object { - "title": "hello", + "title": "Database 1", } at utils/asserts.ts:614 612 | [id, props] as const 613 | ); > 614 | expect(actual).toEqual(props); | ^ 615 | } 616 | 617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) { at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18) at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:634:5
database/database.spec.ts:616:3 › readonly mode › database title should not be edited in readonly mode: tests/utils/asserts.ts#L614
3) database/database.spec.ts:616:3 › readonly mode › database title should not be edited in readonly mode Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Object { - "title": "hello", + "title": "Database 1", } at utils/asserts.ts:614 612 | [id, props] as const 613 | ); > 614 | expect(actual).toEqual(props); | ^ 615 | } 616 | 617 | export async function assertBlockTypes(page: Page, blockTypes: string[]) { at assertBlockProps (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:614:18) at /home/runner/work/blocksuite/blocksuite/tests/database/database.spec.ts:634:5
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
format-bar.spec.ts:448:1 › should format quick bar position correct at the start of second line: tests/utils/asserts.ts#L763
1) format-bar.spec.ts:448:1 › should format quick bar position correct at the start of second line Error: expected: -99, but actual: -90.5 expect(received).toBeLessThan(expected) Expected: < 5 Received: 8.5 at utils/asserts.ts:763 761 | Math.abs(actual - expected), 762 | `expected: ${expected}, but actual: ${actual}` > 763 | ).toBeLessThan(precision); | ^ 764 | } 765 | 766 | export function assertPointAlmostEqual( at assertAlmostEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:763:5) at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:485:3
format-bar.spec.ts:448:1 › should format quick bar position correct at the start of second line: tests/utils/asserts.ts#L763
1) format-bar.spec.ts:448:1 › should format quick bar position correct at the start of second line Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expected: -99, but actual: -90.5 expect(received).toBeLessThan(expected) Expected: < 5 Received: 8.5 at utils/asserts.ts:763 761 | Math.abs(actual - expected), 762 | `expected: ${expected}, but actual: ${actual}` > 763 | ).toBeLessThan(precision); | ^ 764 | } 765 | 766 | export function assertPointAlmostEqual( at assertAlmostEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:763:5) at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:485:3
format-bar.spec.ts:448:1 › should format quick bar position correct at the start of second line: tests/utils/asserts.ts#L763
1) format-bar.spec.ts:448:1 › should format quick bar position correct at the start of second line Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expected: -99, but actual: -90.5 expect(received).toBeLessThan(expected) Expected: < 5 Received: 8.5 at utils/asserts.ts:763 761 | Math.abs(actual - expected), 762 | `expected: ${expected}, but actual: ${actual}` > 763 | ).toBeLessThan(precision); | ^ 764 | } 765 | 766 | export function assertPointAlmostEqual( at assertAlmostEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:763:5) at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:485:3
format-bar.spec.ts:448:1 › should format quick bar position correct at the start of second line: tests/utils/asserts.ts#L763
1) format-bar.spec.ts:448:1 › should format quick bar position correct at the start of second line Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expected: -99, but actual: -90.5 expect(received).toBeLessThan(expected) Expected: < 5 Received: 8.5 at utils/asserts.ts:763 761 | Math.abs(actual - expected), 762 | `expected: ${expected}, but actual: ${actual}` > 763 | ).toBeLessThan(precision); | ^ 764 | } 765 | 766 | export function assertPointAlmostEqual( at assertAlmostEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:763:5) at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:485:3
format-bar.spec.ts:928:1 › create linked doc from block selection with format bar: tests/format-bar.spec.ts#L964
2) format-bar.spec.ts:928:1 › create linked doc from block selection with format bar ───────────── 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,800,95]", "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": "12", "flavour": "affine:embed-linked-doc", "version": 1, "props": { "index": "a0", "xywh": "[0,0,0,0]", "rotate": 0, "pageId": "5", "style": "horizontal", "caption": null }, "children": [] }, { "type": "block", "id": "13", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/create-linked-doc-from-block-selection-with-format-bar.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-create-linked-d-6272e-k-selection-with-format-bar/create-linked-doc-from-block-selection-with-format-bar-actual.json 962 | await waitNextFrame(page, 200); 963 | > 964 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 965 | `${testInfo.title}.json` 966 | ); 967 | }); at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:964:45
format-bar.spec.ts:928:1 › create linked doc from block selection with format bar: tests/format-bar.spec.ts#L964
2) format-bar.spec.ts:928:1 › create linked doc from block selection with format bar ───────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── 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,800,95]", "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": "12", "flavour": "affine:embed-linked-doc", "version": 1, "props": { "index": "a0", "xywh": "[0,0,0,0]", "rotate": 0, "pageId": "5", "style": "horizontal", "caption": null }, "children": [] }, { "type": "block", "id": "13", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/create-linked-doc-from-block-selection-with-format-bar.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-create-linked-d-6272e-k-selection-with-format-bar-retry1/create-linked-doc-from-block-selection-with-format-bar-actual.json 962 | await waitNextFrame(page, 200); 963 | > 964 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 965 | `${testInfo.title}.json` 966 | ); 967 | }); at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:964:45
format-bar.spec.ts:928:1 › create linked doc from block selection with format bar: tests/format-bar.spec.ts#L964
2) format-bar.spec.ts:928:1 › create linked doc from block selection with format bar ───────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── 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,800,95]", "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": "12", "flavour": "affine:embed-linked-doc", "version": 1, "props": { "index": "a0", "xywh": "[0,0,0,0]", "rotate": 0, "pageId": "5", "style": "horizontal", "caption": null }, "children": [] }, { "type": "block", "id": "13", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/create-linked-doc-from-block-selection-with-format-bar.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-create-linked-d-6272e-k-selection-with-format-bar-retry2/create-linked-doc-from-block-selection-with-format-bar-actual.json 962 | await waitNextFrame(page, 200); 963 | > 964 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 965 | `${testInfo.title}.json` 966 | ); 967 | }); at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:964:45
format-bar.spec.ts:928:1 › create linked doc from block selection with format bar: tests/format-bar.spec.ts#L964
2) format-bar.spec.ts:928:1 › create linked doc from block selection with format bar ───────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── 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,800,95]", "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": "12", "flavour": "affine:embed-linked-doc", "version": 1, "props": { "index": "a0", "xywh": "[0,0,0,0]", "rotate": 0, "pageId": "5", "style": "horizontal", "caption": null }, "children": [] }, { "type": "block", "id": "13", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/create-linked-doc-from-block-selection-with-format-bar.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-create-linked-d-6272e-k-selection-with-format-bar-retry3/create-linked-doc-from-block-selection-with-format-bar-actual.json 962 | await waitNextFrame(page, 200); 963 | > 964 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 965 | `${testInfo.title}.json` 966 | ); 967 | }); at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:964:45
E2E Test (13)
Process completed with exit code 1.
embed-synced-doc.spec.ts:203:5 › Embed synced doc › synced doc should be readonly › synced doc should be readonly: tests/utils/actions/misc.ts#L332
1) embed-synced-doc.spec.ts:203:5 › Embed synced doc › synced doc should be readonly › synced doc should be readonly Error: expect(received).toBe(expected) // Object.is equality - Expected - 1 + Received + 4 - Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment. + Unexpected console message: TypeError: Cannot read properties of null (reading 'style') + at d0.mount (http://localhost:4173/assets/framework-DDJzHmuY.js:237:4774) + at l0._init (http://localhost:4173/assets/components-CGNNdqua.js:8907:2974) + at http://localhost:4173/assets/components-CGNNdqua.js:8907:4216 at utils/actions/misc.ts:332 330 | expect 331 | .soft('Unexpected console message: ' + message.text()) > 332 | .toBe( | ^ 333 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.' 334 | ); 335 | } at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:332:10)
embed-synced-doc.spec.ts:203:5 › Embed synced doc › synced doc should be readonly › synced doc should be readonly: tests/utils/actions/misc.ts#L332
1) embed-synced-doc.spec.ts:203:5 › Embed synced doc › synced doc should be readonly › synced doc should be readonly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality - Expected - 1 + Received + 4 - Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment. + Unexpected console message: TypeError: Cannot read properties of null (reading 'style') + at d0.mount (http://localhost:4173/assets/framework-DDJzHmuY.js:237:4774) + at l0._init (http://localhost:4173/assets/components-CGNNdqua.js:8907:2974) + at http://localhost:4173/assets/components-CGNNdqua.js:8907:4216 at utils/actions/misc.ts:332 330 | expect 331 | .soft('Unexpected console message: ' + message.text()) > 332 | .toBe( | ^ 333 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.' 334 | ); 335 | } at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:332:10)
embed-synced-doc.spec.ts:203:5 › Embed synced doc › synced doc should be readonly › synced doc should be readonly: tests/utils/actions/linked-doc.ts#L32
1) embed-synced-doc.spec.ts:203:5 › Embed synced doc › synced doc should be readonly › synced doc should be readonly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── 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 utils/actions/linked-doc.ts:32 30 | ) => { 31 | await type(page, '@'); > 32 | await expect(linkedDocPopover).toBeVisible(); | ^ 33 | if (pageName) { 34 | await type(page, pageName); 35 | } else { at createDoc (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/linked-doc.ts:32:36) at createAndConvertToEmbedSyncedDoc (/home/runner/work/blocksuite/blocksuite/tests/embed-synced-doc.spec.ts:24:23) at /home/runner/work/blocksuite/blocksuite/tests/embed-synced-doc.spec.ts:206:7
embed-synced-doc.spec.ts:203:5 › Embed synced doc › synced doc should be readonly › synced doc should be readonly: tests/utils/actions/misc.ts#L332
1) embed-synced-doc.spec.ts:203:5 › Embed synced doc › synced doc should be readonly › synced doc should be readonly Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality - Expected - 1 + Received + 4 - Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment. + Unexpected console message: TypeError: Cannot read properties of null (reading 'style') + at d0.mount (http://localhost:4173/assets/framework-DDJzHmuY.js:237:4774) + at l0._init (http://localhost:4173/assets/components-CGNNdqua.js:8907:2974) + at http://localhost:4173/assets/components-CGNNdqua.js:8907:4216 at utils/actions/misc.ts:332 330 | expect 331 | .soft('Unexpected console message: ' + message.text()) > 332 | .toBe( | ^ 333 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.' 334 | ); 335 | } at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:332:10)
format-bar.spec.ts:49:1 › should format quick bar show when select text: tests/utils/asserts.ts#L763
2) format-bar.spec.ts:49:1 › should format quick bar show when select text ─────────────────────── Error: expected: -98, but actual: -90 expect(received).toBeLessThan(expected) Expected: < 5 Received: 8 at utils/asserts.ts:763 761 | Math.abs(actual - expected), 762 | `expected: ${expected}, but actual: ${actual}` > 763 | ).toBeLessThan(precision); | ^ 764 | } 765 | 766 | export function assertPointAlmostEqual( at assertAlmostEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:763:5) at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:62:3
format-bar.spec.ts:49:1 › should format quick bar show when select text: tests/utils/asserts.ts#L763
2) format-bar.spec.ts:49:1 › should format quick bar show when select text ─────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expected: -98, but actual: -90 expect(received).toBeLessThan(expected) Expected: < 5 Received: 8 at utils/asserts.ts:763 761 | Math.abs(actual - expected), 762 | `expected: ${expected}, but actual: ${actual}` > 763 | ).toBeLessThan(precision); | ^ 764 | } 765 | 766 | export function assertPointAlmostEqual( at assertAlmostEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:763:5) at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:62:3
format-bar.spec.ts:49:1 › should format quick bar show when select text: tests/utils/asserts.ts#L763
2) format-bar.spec.ts:49:1 › should format quick bar show when select text ─────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expected: -98, but actual: -90 expect(received).toBeLessThan(expected) Expected: < 5 Received: 8 at utils/asserts.ts:763 761 | Math.abs(actual - expected), 762 | `expected: ${expected}, but actual: ${actual}` > 763 | ).toBeLessThan(precision); | ^ 764 | } 765 | 766 | export function assertPointAlmostEqual( at assertAlmostEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:763:5) at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:62:3
format-bar.spec.ts:49:1 › should format quick bar show when select text: tests/utils/asserts.ts#L763
2) format-bar.spec.ts:49:1 › should format quick bar show when select text ─────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expected: -98, but actual: -90 expect(received).toBeLessThan(expected) Expected: < 5 Received: 8 at utils/asserts.ts:763 761 | Math.abs(actual - expected), 762 | `expected: ${expected}, but actual: ${actual}` > 763 | ).toBeLessThan(precision); | ^ 764 | } 765 | 766 | export function assertPointAlmostEqual( at assertAlmostEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:763:5) at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:62:3
format-bar.spec.ts:76:1 › should format quick bar show when clicking drag handle: tests/utils/asserts.ts#L763
3) format-bar.spec.ts:76:1 › should format quick bar show when clicking drag handle ────────────── Error: expected: 251, but actual: 243 expect(received).toBeLessThan(expected) Expected: < 5 Received: 8 at utils/asserts.ts:763 761 | Math.abs(actual - expected), 762 | `expected: ${expected}, but actual: ${actual}` > 763 | ).toBeLessThan(precision); | ^ 764 | } 765 | 766 | export function assertPointAlmostEqual( at assertAlmostEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:763:5) at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:97:3
format-bar.spec.ts:76:1 › should format quick bar show when clicking drag handle: tests/utils/asserts.ts#L763
3) format-bar.spec.ts:76:1 › should format quick bar show when clicking drag handle ────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expected: 251, but actual: 243 expect(received).toBeLessThan(expected) Expected: < 5 Received: 8 at utils/asserts.ts:763 761 | Math.abs(actual - expected), 762 | `expected: ${expected}, but actual: ${actual}` > 763 | ).toBeLessThan(precision); | ^ 764 | } 765 | 766 | export function assertPointAlmostEqual( at assertAlmostEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:763:5) at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:97:3
image/keymap.spec.ts:28:1 › press enter will create new block when click and select image: tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:28:1 › press enter will create new block when click and select image ───── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "", "aa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:34:3
image/keymap.spec.ts:28:1 › press enter will create new block when click and select image: tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:28:1 › press enter will create new block when click and select image ───── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "", "aa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:34:3
image/keymap.spec.ts:28:1 › press enter will create new block when click and select image: tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:28:1 › press enter will create new block when click and select image ───── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "", "aa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:34:3
image/keymap.spec.ts:28:1 › press enter will create new block when click and select image: tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:28:1 › press enter will create new block when click and select image ───── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "", "aa", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:34:3
image/keymap.spec.ts:37:1 › press backspace after image block can select image block: tests/utils/asserts.ts#L289
2) image/keymap.spec.ts:37:1 › press backspace after image block can select image block ────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('affine-paragraph') Expected: 2 Received: 3 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('affine-paragraph') - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" at utils/asserts.ts:289 287 | count: number 288 | ) { > 289 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count); | ^ 290 | } 291 | export async function assertRowCount(page: Page, count: number) { 292 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count); at assertBlockCount (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:289:51) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:43:9
image/keymap.spec.ts:37:1 › press backspace after image block can select image block: tests/utils/asserts.ts#L289
2) image/keymap.spec.ts:37:1 › press backspace after image block can select image block ────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('affine-paragraph') Expected: 2 Received: 3 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('affine-paragraph') - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" at utils/asserts.ts:289 287 | count: number 288 | ) { > 289 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count); | ^ 290 | } 291 | export async function assertRowCount(page: Page, count: number) { 292 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count); at assertBlockCount (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:289:51) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:43:9
image/keymap.spec.ts:37:1 › press backspace after image block can select image block: tests/utils/asserts.ts#L289
2) image/keymap.spec.ts:37:1 › press backspace after image block can select image block ────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('affine-paragraph') Expected: 2 Received: 3 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('affine-paragraph') - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" at utils/asserts.ts:289 287 | count: number 288 | ) { > 289 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count); | ^ 290 | } 291 | export async function assertRowCount(page: Page, count: number) { 292 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count); at assertBlockCount (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:289:51) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:43:9
image/keymap.spec.ts:37:1 › press backspace after image block can select image block: tests/utils/asserts.ts#L289
2) image/keymap.spec.ts:37:1 › press backspace after image block can select image block ────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('affine-paragraph') Expected: 2 Received: 3 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('affine-paragraph') - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" - locator resolved to 3 elements - unexpected value "3" at utils/asserts.ts:289 287 | count: number 288 | ) { > 289 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count); | ^ 290 | } 291 | export async function assertRowCount(page: Page, count: number) { 292 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count); at assertBlockCount (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:289:51) at /home/runner/work/blocksuite/blocksuite/tests/image/keymap.spec.ts:43:9
hotkey/hotkey.spec.ts:278:1 › should ctrl+enter create new block: tests/utils/asserts.ts#L205
3) hotkey/hotkey.spec.ts:278:1 › should ctrl+enter create new block ────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 Array [ - "1", - "23", + "123", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:287:3
hotkey/multiline.spec.ts:100:1 › should cut work multiple line: tests/hotkey/multiline.spec.ts#L110
4) 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,800,95]", "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
drag.spec.ts:464:1 › should trigger click event on editor container when clicking on blocks under block-level selection: tests/drag.spec.ts#L487
1) drag.spec.ts:464:1 › should trigger click event on editor container when clicking on blocks under block-level selection Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('*:focus') Expected: 0 Received: 1 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('*:focus') - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" 485 | .locator('visible=true'); 486 | await expect(blockSelections).toHaveCount(2); > 487 | await expect(page.locator('*:focus')).toHaveCount(0); | ^ 488 | 489 | const editorHost = getEditorHostLocator(page); 490 | const editors = editorHost.locator('rich-text'); at /home/runner/work/blocksuite/blocksuite/tests/drag.spec.ts:487:41
drag.spec.ts:464:1 › should trigger click event on editor container when clicking on blocks under block-level selection: tests/drag.spec.ts#L487
1) drag.spec.ts:464:1 › should trigger click event on editor container when clicking on blocks under block-level selection Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('*:focus') Expected: 0 Received: 1 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('*:focus') - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" 485 | .locator('visible=true'); 486 | await expect(blockSelections).toHaveCount(2); > 487 | await expect(page.locator('*:focus')).toHaveCount(0); | ^ 488 | 489 | const editorHost = getEditorHostLocator(page); 490 | const editors = editorHost.locator('rich-text'); at /home/runner/work/blocksuite/blocksuite/tests/drag.spec.ts:487:41
drag.spec.ts:464:1 › should trigger click event on editor container when clicking on blocks under block-level selection: tests/drag.spec.ts#L487
1) drag.spec.ts:464:1 › should trigger click event on editor container when clicking on blocks under block-level selection Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('*:focus') Expected: 0 Received: 1 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('*:focus') - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" 485 | .locator('visible=true'); 486 | await expect(blockSelections).toHaveCount(2); > 487 | await expect(page.locator('*:focus')).toHaveCount(0); | ^ 488 | 489 | const editorHost = getEditorHostLocator(page); 490 | const editors = editorHost.locator('rich-text'); at /home/runner/work/blocksuite/blocksuite/tests/drag.spec.ts:487:41
drag.spec.ts:464:1 › should trigger click event on editor container when clicking on blocks under block-level selection: tests/drag.spec.ts#L487
1) drag.spec.ts:464:1 › should trigger click event on editor container when clicking on blocks under block-level selection Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('*:focus') Expected: 0 Received: 1 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('*:focus') - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" - locator resolved to 1 element - unexpected value "1" 485 | .locator('visible=true'); 486 | await expect(blockSelections).toHaveCount(2); > 487 | await expect(page.locator('*:focus')).toHaveCount(0); | ^ 488 | 489 | const editorHost = getEditorHostLocator(page); 490 | const editors = editorHost.locator('rich-text'); at /home/runner/work/blocksuite/blocksuite/tests/drag.spec.ts:487:41
drag.spec.ts:614:1 › should support moving blocks from multiple notes: tests/utils/asserts.ts#L205
2) drag.spec.ts:614:1 › should support moving blocks from multiple notes ───────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 Array [ - "654", - "321", "123", "987", "456", "789", + "654", + "321", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/drag.spec.ts:712:3
drag.spec.ts:614:1 › should support moving blocks from multiple notes: tests/utils/asserts.ts#L205
2) drag.spec.ts:614:1 › should support moving blocks from multiple notes ───────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 Array [ - "654", - "321", "123", "987", "456", "789", + "654", + "321", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/drag.spec.ts:712:3
drag.spec.ts:614:1 › should support moving blocks from multiple notes: tests/utils/asserts.ts#L205
2) drag.spec.ts:614:1 › should support moving blocks from multiple notes ───────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 Array [ - "654", - "321", "123", "987", "456", "789", + "654", + "321", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/drag.spec.ts:712:3
drag.spec.ts:614:1 › should support moving blocks from multiple notes: tests/utils/asserts.ts#L205
2) drag.spec.ts:614:1 › should support moving blocks from multiple notes ───────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 Array [ - "654", - "321", "123", "987", "456", "789", + "654", + "321", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/drag.spec.ts:712:3
drag.spec.ts:353:1 › hide drag handle when mouse is hovering over the title: tests/drag.spec.ts#L372
3) drag.spec.ts:353:1 › hide drag handle when mouse is hovering over the title ─────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: true Received: false 370 | 371 | await page.mouse.move(rect.x, rect.y, { steps: 2 }); > 372 | expect(await dragHandle.isVisible()).toBe(true); | ^ 373 | await expect(dragHandle).toBeVisible(); 374 | }); 375 | at /home/runner/work/blocksuite/blocksuite/tests/drag.spec.ts:372:40
E2E Test (5)
Process completed with exit code 1.
attachment.spec.ts:326:1 › should turn attachment to image works: tests/attachment.spec.ts#L102
1) attachment.spec.ts:326:1 › should turn attachment to image works ────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('.affine-attachment-toolbar').getByRole('button', { name: 'Switch view' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('.affine-attachment-toolbar').getByRole('button', { name: 'Switch view' }) 100 | 101 | turnToEmbed: async () => { > 102 | await expect(switchViewButton).toBeVisible(); | ^ 103 | await switchViewButton.click(); 104 | await page.getByRole('button', { name: 'Embed view' }).click(); 105 | await assertRichImage(page, 1); at turnToEmbed (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:102:38) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:337:9
attachment.spec.ts:326:1 › should turn attachment to image works: tests/attachment.spec.ts#L102
1) attachment.spec.ts:326:1 › should turn attachment to image works ────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('.affine-attachment-toolbar').getByRole('button', { name: 'Switch view' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('.affine-attachment-toolbar').getByRole('button', { name: 'Switch view' }) 100 | 101 | turnToEmbed: async () => { > 102 | await expect(switchViewButton).toBeVisible(); | ^ 103 | await switchViewButton.click(); 104 | await page.getByRole('button', { name: 'Embed view' }).click(); 105 | await assertRichImage(page, 1); at turnToEmbed (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:102:38) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:337:9
attachment.spec.ts:326:1 › should turn attachment to image works: tests/attachment.spec.ts#L102
1) attachment.spec.ts:326:1 › should turn attachment to image works ────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('.affine-attachment-toolbar').getByRole('button', { name: 'Switch view' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('.affine-attachment-toolbar').getByRole('button', { name: 'Switch view' }) 100 | 101 | turnToEmbed: async () => { > 102 | await expect(switchViewButton).toBeVisible(); | ^ 103 | await switchViewButton.click(); 104 | await page.getByRole('button', { name: 'Embed view' }).click(); 105 | await assertRichImage(page, 1); at turnToEmbed (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:102:38) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:337:9
attachment.spec.ts:326:1 › should turn attachment to image works: tests/attachment.spec.ts#L69
1) attachment.spec.ts:326:1 › should turn attachment to image works ────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 67 | await expect(slashMenu).toBeVisible(); 68 | > 69 | const fileChooser = page.waitForEvent('filechooser'); | ^ 70 | await pressEnter(page); 71 | await sleep(100); 72 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:69:30) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:333:3
attachment.spec.ts:406:1 › should attachment can be deleted: tests/utils/asserts.ts#L738
2) attachment.spec.ts:406:1 › should attachment can be deleted ─────────────────────────────────── Error: <affine:note prop:background="--affine-note-background-white" prop:displayMode="both" prop:edgeless={ Object { "style": Object { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box", }, } } prop:hidden={false} prop:index="a0" > <affine:paragraph prop:type="text" /> <affine:paragraph prop:type="text" /> </affine:note> expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 3 @@ -15,6 +15,9 @@ prop:index="a0" > <affine:paragraph prop:type="text" /> + <affine:paragraph + prop:type="text" + /> </affine:note> at utils/asserts.ts:738 736 | printFunctionName: false, 737 | }); > 738 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart()); | ^ 739 | } 740 | 741 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html'; at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:738:38) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:418:3
attachment.spec.ts:406:1 › should attachment can be deleted: tests/utils/asserts.ts#L738
2) attachment.spec.ts:406:1 › should attachment can be deleted ─────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: <affine:note prop:background="--affine-note-background-white" prop:displayMode="both" prop:edgeless={ Object { "style": Object { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box", }, } } prop:hidden={false} prop:index="a0" > <affine:paragraph prop:type="text" /> <affine:paragraph prop:type="text" /> </affine:note> expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 3 @@ -15,6 +15,9 @@ prop:index="a0" > <affine:paragraph prop:type="text" /> + <affine:paragraph + prop:type="text" + /> </affine:note> at utils/asserts.ts:738 736 | printFunctionName: false, 737 | }); > 738 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart()); | ^ 739 | } 740 | 741 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html'; at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:738:38) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:418:3
attachment.spec.ts:406:1 › should attachment can be deleted: tests/attachment.spec.ts#L69
2) attachment.spec.ts:406:1 › should attachment can be deleted ─────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 67 | await expect(slashMenu).toBeVisible(); 68 | > 69 | const fileChooser = page.waitForEvent('filechooser'); | ^ 70 | await pressEnter(page); 71 | await sleep(100); 72 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:69:30) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:412:3
attachment.spec.ts:406:1 › should attachment can be deleted: tests/utils/asserts.ts#L738
2) attachment.spec.ts:406:1 › should attachment can be deleted ─────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: <affine:note prop:background="--affine-note-background-white" prop:displayMode="both" prop:edgeless={ Object { "style": Object { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box", }, } } prop:hidden={false} prop:index="a0" > <affine:paragraph prop:type="text" /> <affine:paragraph prop:type="text" /> </affine:note> expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 3 @@ -15,6 +15,9 @@ prop:index="a0" > <affine:paragraph prop:type="text" /> + <affine:paragraph + prop:type="text" + /> </affine:note> at utils/asserts.ts:738 736 | printFunctionName: false, 737 | }); > 738 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart()); | ^ 739 | } 740 | 741 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html'; at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:738:38) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:418:3
bookmark.spec.ts:86:1 › covert bookmark block to link text: tests/bookmark.spec.ts#L93
3) bookmark.spec.ts:86:1 › covert bookmark block to link text ──────────────────────────────────── 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,800,95]", "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": "45", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "http://localhost", "attributes": { "link": "http://localhost" } } ] } }, "children": [] }, { "type": "block", "id": "4", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/bookmark.spec.ts/covert-bookmark-block-to-link-text-final.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/bookmark-covert-bookmark-block-to-link-text/covert-bookmark-block-to-link-text-final-actual.json 91 | await page.getByRole('button', { name: 'Switch view' }).click(); 92 | await page.getByRole('button', { name: 'Inline view' }).click(); > 93 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 94 | `${testInfo.title}_final.json` 95 | ); 96 | }); at /home/runner/work/blocksuite/blocksuite/tests/bookmark.spec.ts:93:45
bookmark.spec.ts:86:1 › covert bookmark block to link text: tests/bookmark.spec.ts#L93
3) bookmark.spec.ts:86:1 › covert bookmark block to link text ──────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── 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,800,95]", "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": "45", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "http://localhost", "attributes": { "link": "http://localhost" } } ] } }, "children": [] }, { "type": "block", "id": "4", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/bookmark.spec.ts/covert-bookmark-block-to-link-text-final.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/bookmark-covert-bookmark-block-to-link-text-retry1/covert-bookmark-block-to-link-text-final-actual.json 91 | await page.getByRole('button', { name: 'Switch view' }).click(); 92 | await page.getByRole('button', { name: 'Inline view' }).click(); > 93 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 94 | `${testInfo.title}_final.json` 95 | ); 96 | }); at /home/runner/work/blocksuite/blocksuite/tests/bookmark.spec.ts:93:45
selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel: tests/selection/block.spec.ts#L699
1) selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 697 | }); 698 | > 699 | expect(count0).toBe(count1); | ^ 700 | expect(scrollTop0).toBeCloseTo(distance, -0.8); 701 | expect(scrollTop1).toBe(0); 702 | }); at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:699:18
selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel: tests/selection/block.spec.ts#L699
1) selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 697 | }); 698 | > 699 | expect(count0).toBe(count1); | ^ 700 | expect(scrollTop0).toBeCloseTo(distance, -0.8); 701 | expect(scrollTop1).toBe(0); 702 | }); at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:699:18
selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel: tests/selection/block.spec.ts#L699
1) selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 697 | }); 698 | > 699 | expect(count0).toBe(count1); | ^ 700 | expect(scrollTop0).toBeCloseTo(distance, -0.8); 701 | expect(scrollTop1).toBe(0); 702 | }); at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:699:18
selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel: tests/selection/block.spec.ts#L699
1) selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 1 697 | }); 698 | > 699 | expect(count0).toBe(count1); | ^ 700 | expect(scrollTop0).toBeCloseTo(distance, -0.8); 701 | expect(scrollTop1).toBe(0); 702 | }); at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:699:18
selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging: tests/selection/block.spec.ts#L1424
2) selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('affine-block-selection').locator('visible=true') Expected: 3 Received: 5 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('affine-block-selection').locator('visible=true') - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" 1422 | 1423 | rects = page.locator('affine-block-selection').locator('visible=true'); > 1424 | await expect(rects).toHaveCount(3); | ^ 1425 | }); 1426 | at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:1424:23
selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging: tests/selection/block.spec.ts#L1424
2) selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('affine-block-selection').locator('visible=true') Expected: 3 Received: 5 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('affine-block-selection').locator('visible=true') - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" 1422 | 1423 | rects = page.locator('affine-block-selection').locator('visible=true'); > 1424 | await expect(rects).toHaveCount(3); | ^ 1425 | }); 1426 | at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:1424:23
selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging: tests/selection/block.spec.ts#L1424
2) selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('affine-block-selection').locator('visible=true') Expected: 3 Received: 5 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('affine-block-selection').locator('visible=true') - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" 1422 | 1423 | rects = page.locator('affine-block-selection').locator('visible=true'); > 1424 | await expect(rects).toHaveCount(3); | ^ 1425 | }); 1426 | at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:1424:23
selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging: tests/selection/block.spec.ts#L1424
2) selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: locator('affine-block-selection').locator('visible=true') Expected: 3 Received: 5 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('affine-block-selection').locator('visible=true') - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" - locator resolved to 5 elements - unexpected value "5" 1422 | 1423 | rects = page.locator('affine-block-selection').locator('visible=true'); > 1424 | await expect(rects).toHaveCount(3); | ^ 1425 | }); 1426 | at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:1424:23
selection/native.spec.ts:289:1 › cursor move to up and down with children block: tests/selection/native.spec.ts#L318
3) selection/native.spec.ts:289:1 › cursor move to up and down with children block ─────────────── Error: expect(received).toBeGreaterThanOrEqual(expected) Expected: >= 12 Received: -1 316 | const textTwo = await getInlineSelectionText(page); 317 | expect(textTwo).toBe('arrow down test 1'); > 318 | expect(indexTwo).toBeGreaterThanOrEqual(12); | ^ 319 | expect(indexTwo).toBeLessThanOrEqual(17); 320 | await page.keyboard.press('ArrowDown'); 321 | const textThree = await getInlineSelectionText(page); at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:318:20
E2E Test (18)
Process completed with exit code 1.
Build & Test
Process completed 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 (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 (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 (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 (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
E2E Test (8)
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
3 skipped 42 passed (40.9s)
🎭 Playwright Run Summary
2 failed code/crud.spec.ts:203:1 › duplicate code block ───────────────────────────────────────────────── code/readonly.spec.ts:44:1 › should not be able to modify code block in readonly mode ────────── 4 skipped 40 passed (57.8s)
🎭 Playwright Run Summary
1 failed paragraph.spec.ts:1026:3 › press ArrowDown when cursor is at the last line of a block › move cursor to next block if this block is _not_ the last block in the page 1 flaky paragraph.spec.ts:226:1 › insert new paragraph block by enter ────────────────────────────────── 43 passed (53.0s)
🎭 Playwright Run Summary
1 failed bookmark.spec.ts:419:3 › embed figma card › change figma card style ──────────────────────────── 1 skipped 44 passed (51.2s)
🎭 Playwright Run Summary
1 failed list.spec.ts:137:1 › convert to numbered list block ──────────────────────────────────────────── 44 passed (56.8s)
🎭 Playwright Run Summary
1 failed selection/native.spec.ts:1195:1 › should clear native selection before block selection ───────── 1 flaky selection/native.spec.ts:1518:1 › should not scroll page when mouse is click down ────────────── 43 passed (1.0m)
🎭 Playwright Run Summary
3 failed image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph link.spec.ts:311:1 › link bar should not be appear when the range is collapsed ───────────────── 2 skipped 40 passed (1.2m)
🎭 Playwright Run Summary
10 skipped 36 passed (1.1m)
🎭 Playwright Run Summary
3 failed database/database.spec.ts:55:1 › edit database block title and create new rows ───────────────── database/database.spec.ts:215:1 › should database search input displayed correctly ───────────── database/database.spec.ts:616:3 › readonly mode › database title should not be edited in readonly mode 43 passed (1.2m)
🎭 Playwright Run Summary
1 flaky edgeless/paste-block.spec.ts:67:3 › pasting blocks › pasting a edgeless block ────────────────── 44 passed (1.3m)
🎭 Playwright Run Summary
2 failed format-bar.spec.ts:448:1 › should format quick bar position correct at the start of second line format-bar.spec.ts:928:1 › create linked doc from block selection with format bar ────────────── 43 passed (1.3m)
🎭 Playwright Run Summary
4 failed embed-synced-doc.spec.ts:203:5 › Embed synced doc › synced doc should be readonly › synced doc should be readonly format-bar.spec.ts:49:1 › should format quick bar show when select text ──────────────────────── format-bar.spec.ts:76:1 › should format quick bar show when clicking drag handle ─────────────── format-bar.spec.ts:101:1 › should format quick bar show when select text by keyboard ─────────── 1 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── 2 skipped 38 passed (1.5m)
🎭 Playwright Run Summary
2 failed image/keymap.spec.ts:28:1 › press enter will create new block when click and select image ────── image/keymap.spec.ts:37:1 › press backspace after image block can select image block ─────────── 2 flaky hotkey/hotkey.spec.ts:278:1 › should ctrl+enter create new block ─────────────────────────────── hotkey/multiline.spec.ts:100:1 › should cut work multiple line ───────────────────────────────── 41 passed (1.4m)
🎭 Playwright Run Summary
46 passed (1.4m)
🎭 Playwright Run Summary
2 failed drag.spec.ts:464:1 › should trigger click event on editor container when clicking on blocks under block-level selection drag.spec.ts:614:1 › should support moving blocks from multiple notes ────────────────────────── 1 flaky drag.spec.ts:353:1 › hide drag handle when mouse is hovering over the title ──────────────────── 43 passed (1.4m)
🎭 Playwright Run Summary
1 skipped 44 passed (1.4m)
🎭 Playwright Run Summary
1 skipped 45 passed (1.5m)
🎭 Playwright Run Summary
4 failed attachment.spec.ts:326:1 › should turn attachment to image works ─────────────────────────────── attachment.spec.ts:406:1 › should attachment can be deleted ──────────────────────────────────── bookmark.spec.ts:86:1 › covert bookmark block to link text ───────────────────────────────────── bookmark.spec.ts:364:3 › embed youtube card › change youtube card style ──────────────────────── 1 flaky bookmark.spec.ts:204:1 › press backspace after bookmark block can select bookmark block ──────── 41 passed (1.5m)
🎭 Playwright Run Summary
46 passed (1.7m)
🎭 Playwright Run Summary
2 failed selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging 1 flaky selection/native.spec.ts:289:1 › cursor move to up and down with children block ──────────────── 42 passed (1.9m)

Artifacts

Produced during runtime
Name Size
test-results-e2e-1
14.3 MB
test-results-e2e-12
16.8 MB
test-results-e2e-13
5.22 MB
test-results-e2e-14
11.2 MB
test-results-e2e-15
8.48 MB
test-results-e2e-16
2.6 MB
test-results-e2e-17
5.09 MB
test-results-e2e-18
11.4 MB
test-results-e2e-19
5.58 MB
test-results-e2e-2
2.99 MB
test-results-e2e-3
5.71 MB
test-results-e2e-4
8.51 MB
test-results-e2e-5
8.09 MB