Skip to content

fix: the code block wrap state shoud be persisted in database #19209

fix: the code block wrap state shoud be persisted in database

fix: the code block wrap state shoud be persisted in database #19209

Triggered via pull request May 16, 2024 06:36
Status Success
Total duration 6m 17s
Artifacts

test.yaml

on: pull_request
Node.js Environment Compatibility
47s
Node.js Environment Compatibility
Unit test
1m 22s
Unit test
Integration test
44s
Integration test
Inline Editor E2E test
48s
Inline Editor E2E test
Matrix: Playground E2E test
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 14 warnings, and 11 notices
basic.spec.ts:312:1 › should undo/redo works on title: tests/utils/asserts.ts#L210
1) basic.spec.ts:312:1 › should undo/redo works on title ───────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ - "hello world", + "hello ", ] at utils/asserts.ts:210 208 | }); 209 | }, currentEditorIndex); > 210 | expect(actualTexts).toEqual(texts); | ^ 211 | } 212 | 213 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:210:23) at /home/runner/work/blocksuite/blocksuite/tests/basic.spec.ts:339:3
bookmark.spec.ts:246:1 › copy url to create bookmark in edgeless mode: tests/utils/actions/misc.ts#L289
2) bookmark.spec.ts:246:1 › copy url to create bookmark in edgeless mode ───────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment." Received: "Unexpected console message: Failed to parse query! Current range is not a text node. Range" at utils/actions/misc.ts:289 287 | expect 288 | .soft('Unexpected console message: ' + message.text()) > 289 | .toBe( | ^ 290 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.' 291 | ); 292 | } at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:289:10)
bookmark.spec.ts:246:1 › copy url to create bookmark in edgeless mode: tests/utils/actions/misc.ts#L289
2) bookmark.spec.ts:246:1 › copy url to create bookmark in edgeless mode ───────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment." Received: "Unexpected console message: Failed to parse query! Current range is not a text node. Range" at utils/actions/misc.ts:289 287 | expect 288 | .soft('Unexpected console message: ' + message.text()) > 289 | .toBe( | ^ 290 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.' 291 | ); 292 | } at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:289:10)
linked-page.spec.ts:592:3 › linked page popover › should fuzzy search works: tests/utils/actions/misc.ts#L289
1) linked-page.spec.ts:592:3 › linked page popover › should fuzzy search works ─────────────────── 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: BlockSuiteError: val does not exist + at assertExists (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/assert.ts:1311:11) + at get rangeManager (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/view/utils/range-binding.ts:4175:5) + at RangeBinding._onNativeSelectionChanged (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/view/utils/range-binding.ts:3848:60) at utils/actions/misc.ts:289 287 | expect 288 | .soft('Unexpected console message: ' + message.text()) > 289 | .toBe( | ^ 290 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.' 291 | ); 292 | } at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:289:10)
paragraph.spec.ts:382:1 › update paragraph with children to head type: http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/assert.ts#L1311
2) paragraph.spec.ts:382:1 › update paragraph with children to head type ───────────────────────── Error: Uncaught exception: "BlockSuiteError: val does not exist" BlockSuiteError: val does not exist at assertExists (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/assert.ts:1311:11) at Tab (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/_common/components/rich-text/keymap/container.ts:6375:11) at http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/keymap.ts:2141:80 at http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/control/keyboard.ts:596:14 at UIEventDispatcher.run (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/dispatcher.ts:3411:49) at KeyboardControl._down (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/control/keyboard.ts:541:24) at assertExists (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/assert.ts:1311:11) at Tab (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/_common/components/rich-text/keymap/container.ts:6375:11) at /home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/keymap.ts:2141:80 at /home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/control/keyboard.ts:596:14 at UIEventDispatcher.run (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/dispatcher.ts:3411:49) at KeyboardControl._down (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/control/keyboard.ts:541:24) at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:298:11)
paragraph.spec.ts:382:1 › update paragraph with children to head type: tests/utils/asserts.ts#L438
2) paragraph.spec.ts:382:1 › update paragraph with children to head type ───────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 0 + Received + 1 Array [ "2", + "4", ] at utils/asserts.ts:438 436 | { blockId } 437 | ); > 438 | expect(actual).toEqual(ids); | ^ 439 | } 440 | 441 | export async function assertBlockChildrenFlavours( at assertBlockChildrenIds (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:438:18) at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:404:3
hotkey.spec.ts:1070:1 › should cut work multiple line: tests/utils/asserts.ts#L635
1) hotkey.spec.ts:1070:1 › should cut work multiple line ───────────────────────────────────────── Error: <affine:note prop:background="--affine-background-secondary-color" prop:displayMode="both" prop:edgeless={ Object { "style": Object { "borderRadius": 8, "borderSize": 4, "borderStyle": "solid", "shadowType": "--affine-note-shadow-box", }, } } prop:hidden={false} prop:index="a0" > <affine:paragraph prop:text="123" prop:type="text" /> <affine:paragraph prop:text="456" prop:type="text" /> <affine:paragraph prop:text="789" prop:type="text" /> </affine:note> expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 6 @@ -13,13 +13,17 @@ } prop:hidden={false} prop:index="a0" > <affine:paragraph - prop:text="1" + prop:text="123" + prop:type="text" + /> + <affine:paragraph + prop:text="456" prop:type="text" /> <affine:paragraph - prop:text="9" + prop:text="789" prop:type="text" /> </affine:note> at utils/asserts.ts:635 633 | printFunctionName: false, 634 | }); > 635 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart()); | ^ 636 | } 637 | 638 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html'; at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:635:38) at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1080:3
edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges: tests/edgeless/selection.spec.ts#L1
1) edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges Test timeout of 40000ms exceeded.
edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges: tests/edgeless/selection.spec.ts#L302
1) edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges Error: mouse.down: Test timeout of 40000ms exceeded. 300 | // Click to start selection and hold the mouse to trigger auto panning to the top 301 | await page.mouse.move(600, 100); > 302 | await page.mouse.down(); | ^ 303 | await page.mouse.move(400, 0, { steps: 20 }); 304 | await page.waitForTimeout(500); 305 | await page.mouse.up(); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/selection.spec.ts:302:20
embed-synced-doc.spec.ts:116:3 › Embed synced doc › can jump to other docs when click linked doc inside embed synced doc block: tests/embed-synced-doc.spec.ts#L140
2) embed-synced-doc.spec.ts:116:3 › Embed synced doc › can jump to other docs when click linked doc inside embed synced doc block Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('affine-reference').filter({ has: locator('.affine-reference-title[data-title="Linked Doc"]') }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('affine-reference').filter({ has: locator('.affine-reference-title[data-title="Linked Doc"]') }) 138 | has: page.locator(`.affine-reference-title[data-title="Linked Doc"]`), 139 | }); > 140 | await expect(refNode).toBeVisible(); | ^ 141 | // Click the linked doc inside the embed synced doc to jump to the linked doc 142 | await refNode.click(); 143 | await waitNextFrame(page, 200); at /home/runner/work/blocksuite/blocksuite/tests/embed-synced-doc.spec.ts:140:27
edgeless/clipboard.spec.ts:74:3 › connector clipboard › copy and paste connector whose both sides connect nothing: eval at evaluate (:226:30)#L5
1) edgeless/clipboard.spec.ts:74:3 › connector clipboard › copy and paste connector whose both sides connect nothing Error: page.evaluate: TypeError: Cannot read properties of undefined (reading 'absolutePath') at eval (eval at evaluate (:226:30), <anonymous>:5:30) at UtilityScript.evaluate (<anonymous>:228:17) at UtilityScript.<anonymous> (<anonymous>:1:44) at eval (/home/runner/work/blocksuite/blocksuite/eval at evaluate (:226:30), <anonymous>:5:30) at UtilityScript.evaluate (/home/runner/work/blocksuite/blocksuite/<anonymous>:228:17) at UtilityScript.<anonymous> (/home/runner/work/blocksuite/blocksuite/<anonymous>:1:44) at getConnectorPath (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1231:15) at assertConnectorPath (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:964:28) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/clipboard.spec.ts:85:11
🎭 Playwright Run Summary
14 passed (24.0s)
🎭 Playwright Run Summary
2 flaky basic.spec.ts:312:1 › should undo/redo works on title ────────────────────────────────────────── bookmark.spec.ts:246:1 › copy url to create bookmark in edgeless mode ────────────────────────── 17 skipped 53 passed (3.5m)
🎭 Playwright Run Summary
2 flaky linked-page.spec.ts:592:3 › linked page popover › should fuzzy search works ──────────────────── paragraph.spec.ts:382:1 › update paragraph with children to head type ────────────────────────── 2 skipped 67 passed (3.8m)
🎭 Playwright Run Summary
7 skipped 65 passed (3.7m)
🎭 Playwright Run Summary
2 skipped 69 passed (3.7m)
🎭 Playwright Run Summary
3 skipped 68 passed (3.9m)
🎭 Playwright Run Summary
1 skipped 70 passed (3.8m)
🎭 Playwright Run Summary
1 flaky hotkey.spec.ts:1070:1 › should cut work multiple line ────────────────────────────────────────── 2 skipped 68 passed (3.9m)
🎭 Playwright Run Summary
2 flaky edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges embed-synced-doc.spec.ts:116:3 › Embed synced doc › can jump to other docs when click linked doc inside embed synced doc block 3 skipped 66 passed (4.5m)
🎭 Playwright Run Summary
2 skipped 69 passed (4.4m)
🎭 Playwright Run Summary
1 flaky edgeless/clipboard.spec.ts:74:3 › connector clipboard › copy and paste connector whose both sides connect nothing 6 skipped 64 passed (5.0m)
Integration test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Inline Editor E2E test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Node.js Environment Compatibility
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Unit test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (8)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (9)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (7)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (6)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (5)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.