Skip to content

fix: connectors resize #17724

fix: connectors resize

fix: connectors resize #17724

Triggered via pull request April 9, 2024 07:46
Status Success
Total duration 6m 20s
Artifacts

test.yaml

on: pull_request
Node.js Environment Compatibility
45s
Node.js Environment Compatibility
Unit test
1m 15s
Unit test
Integration test
46s
Integration test
Inline Editor E2E test
58s
Inline Editor E2E test
Matrix: Playground E2E test
Fit to window
Zoom out
Zoom in

Annotations

7 errors, 14 warnings, and 11 notices
attachment.spec.ts:318:1 › should turn attachment to image works: tests/utils/asserts.ts#L231
1) attachment.spec.ts:318:1 › should turn attachment to image works ────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: 1 Received: 0 at utils/asserts.ts:231 229 | const editor = getEditorLocator(page); 230 | const actual = await editor.locator('.resizable-img').count(); > 231 | expect(actual).toEqual(count); | ^ 232 | } 233 | 234 | export async function assertDivider(page: Page, count: number) { at assertRichImage (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:231:18) at turnToEmbed (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:95:7) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:329:3
hotkey.spec.ts:1004:1 › should cut work single line: tests/utils/asserts.ts#L635
1) hotkey.spec.ts:1004:1 › should cut work single 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="hello" prop:type="text" /> </affine:note> expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -13,9 +13,9 @@ } prop:hidden={false} prop:index="a0" > <affine:paragraph - prop:text="ho" + prop:text="hello" 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:1013:3
hotkey.spec.ts:1070:1 › should cut work multiple line: tests/utils/asserts.ts#L635
2) 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/auto-complete.spec.ts:121:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note: tests/utils/asserts.ts#L210
1) edgeless/auto-complete.spec.ts:121:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ - "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/edgeless/auto-complete.spec.ts:145:7
edgeless/note.spec.ts:407:1 › drag handle should work across multiple notes: tests/edgeless/note.spec.ts#L426
1) edgeless/note.spec.ts:407:1 › drag handle should work across multiple notes ─────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeHidden() Locator: locator('.affine-drag-handle-container') Expected: hidden Received: visible Call log: - expect.toBeHidden with timeout 5000ms - waiting for locator('.affine-drag-handle-container') - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" 424 | await page.mouse.dblclick(CENTER_X, CENTER_Y - 20); 425 | await dragHandleFromBlockToBlockBottomById(page, '3', '7'); > 426 | await expect(page.locator('.affine-drag-handle-container')).toBeHidden(); | ^ 427 | await waitNextFrame(page); 428 | await assertRichTexts(page, ['456', '789', '000', '123']); 429 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:426:63
edgeless/note.spec.ts:781:1 › continuous undo and redo (note block add operation) should work: tests/utils/actions/misc.ts#L289
2) edgeless/note.spec.ts:781:1 › continuous undo and redo (note block add operation) should work ─ Error: expect(received).toBe(expected) // Object.is equality - Expected - 1 + Received + 7 - 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 Clipboard.readFromClipboard (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/clipboard/index.ts:2752:5) + at EdgelessClipboardController._onPaste (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/edgeless/controllers/clipboard.ts:13088:66) + at host.handleEvent.global (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/edgeless/controllers/clipboard.ts:12901:14) + at UIEventDispatcher.run (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/dispatcher.ts:3188:49) + at ClipboardControl._paste (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/control/clipboard.ts:378:24) 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)
edgeless/note.spec.ts:781:1 › continuous undo and redo (note block add operation) should work: tests/edgeless/note.spec.ts#L808
2) edgeless/note.spec.ts:781:1 › continuous undo and redo (note block add operation) should work ─ Error: expect(received).toBe(expected) // Object.is equality Expected: 4 Received: 3 806 | 807 | count = await countBlock(page, 'affine-note'); > 808 | expect(count).toBe(4); | ^ 809 | 810 | await undoByClick(page); 811 | count = await countBlock(page, 'affine-note'); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:808:17
🎭 Playwright Run Summary
14 passed (25.6s)
🎭 Playwright Run Summary
1 flaky attachment.spec.ts:318:1 › should turn attachment to image works ─────────────────────────────── 17 skipped 52 passed (3.1m)
🎭 Playwright Run Summary
7 skipped 63 passed (3.3m)
🎭 Playwright Run Summary
1 skipped 69 passed (3.6m)
🎭 Playwright Run Summary
2 skipped 68 passed (3.6m)
🎭 Playwright Run Summary
2 skipped 67 passed (3.5m)
🎭 Playwright Run Summary
2 flaky hotkey.spec.ts:1004:1 › should cut work single line ──────────────────────────────────────────── hotkey.spec.ts:1070:1 › should cut work multiple line ────────────────────────────────────────── 2 skipped 66 passed (4.0m)
🎭 Playwright Run Summary
1 flaky edgeless/auto-complete.spec.ts:121:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note 4 skipped 65 passed (3.9m)
🎭 Playwright Run Summary
2 skipped 68 passed (4.2m)
🎭 Playwright Run Summary
2 flaky edgeless/note.spec.ts:407:1 › drag handle should work across multiple notes ──────────────────── edgeless/note.spec.ts:781:1 › continuous undo and redo (note block add operation) should work ── 68 passed (4.9m)
🎭 Playwright Run Summary
70 passed (4.9m)
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/.
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/.
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 (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 (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 (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 (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 (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 (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 (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/.