refactor: rename page to doc (#6290) #161
test.yaml
on: push
Node.js Environment Compatibility
38s
Unit test
1m 16s
Integration test
28s
Inline Editor E2E test
47s
Matrix: Playground E2E test
Annotations
43 errors, 14 warnings, and 11 notices
attachment.spec.ts:279:1 › should rename attachment works:
tests/attachment.spec.ts#L1
1) attachment.spec.ts:279:1 › should rename attachment works ─────────────────────────────────────
Test timeout of 30000ms exceeded.
|
attachment.spec.ts:279:1 › should rename attachment works:
tests/attachment.spec.ts#L101
1) attachment.spec.ts:279:1 › should rename attachment works ─────────────────────────────────────
Error: keyboard.press: Test timeout of 30000ms exceeded.
99 | await expect(options).toBeVisible();
100 | await renameBtn.click();
> 101 | await page.keyboard.press(`${SHORT_KEY}+a`, { delay: 50 });
| ^
102 | await pressBackspace(page);
103 | await type(page, newName);
104 | await pressEnter(page);
at rename (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:101:27)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:312:3
|
basic.spec.ts:349:1 › should undo/redo cursor works on title:
tests/utils/asserts.ts#L149
2) basic.spec.ts:349:1 › should undo/redo cursor works on title ──────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "title2"
Received: "title"
at utils/asserts.ts:149
147 | const inlineEditor = editor.locator('.doc-title-container').first();
148 | const vText = inlineEditorInnerTextToString(await inlineEditor.innerText());
> 149 | expect(vText).toBe(text);
| ^
150 | }
151 |
152 | export async function assertInlineEditorDeltas(
at assertTitle (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:149:17)
at /home/runner/work/blocksuite/blocksuite/tests/basic.spec.ts:369:3
|
clipboard.spec.ts:1016:1 › copy canvas element and text note in edgeless mode:
tests/clipboard.spec.ts#L1
1) clipboard.spec.ts:1016:1 › copy canvas element and text note in edgeless mode ─────────────────
Test timeout of 30000ms exceeded.
|
clipboard.spec.ts:1016:1 › copy canvas element and text note in edgeless mode:
tests/utils/actions/drag.ts#L21
1) clipboard.spec.ts:1016:1 › copy canvas element and text note in edgeless mode ─────────────────
Error: mouse.move: Test timeout of 30000ms exceeded.
at utils/actions/drag.ts:21
19 | await page.mouse.move(x1, y1);
20 | await page.mouse.down();
> 21 | await page.mouse.move(x2, y2, { steps });
| ^
22 | await options?.beforeMouseUp?.();
23 | await page.mouse.up();
24 | }
at dragBetweenCoords (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:21:20)
at addBasicShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:365:3)
at createShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1320:3)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1021:3
|
selection/native.spec.ts:862:1 › drag to select tagged text:
tests/selection/native.spec.ts#L1
1) selection/native.spec.ts:862:1 › drag to select tagged text, and copy ─────────────────────────
Test finished within timeout of 30000ms, but tearing down "context" ran out of time.
Please allow more time for the test, since teardown is attributed towards the test timeout budget.
|
selection/native.spec.ts:882:1 › drag to select tagged text:
tests/selection/native.spec.ts#L1
2) selection/native.spec.ts:882:1 › drag to select tagged text, and input character ──────────────
Test finished within timeout of 30000ms, but tearing down "context" ran out of time.
Please allow more time for the test, since teardown is attributed towards the test timeout budget.
|
linked-page.spec.ts:658:3 › linked page popover › should fuzzy search works:
tests/linked-page.spec.ts#L1
1) linked-page.spec.ts:658:3 › linked page popover › should fuzzy search works ───────────────────
Test timeout of 30000ms exceeded.
|
linked-page.spec.ts:658:3 › linked page popover › should fuzzy search works:
tests/linked-page.spec.ts#L688
1) linked-page.spec.ts:658:3 › linked page popover › should fuzzy search works ───────────────────
Error: keyboard.press: Test timeout of 30000ms exceeded.
686 |
687 | await assertActivePageIdx(0);
> 688 | await page.keyboard.press('ArrowDown');
| ^
689 | await assertActivePageIdx(1);
690 |
691 | await page.keyboard.press('ArrowUp');
at /home/runner/work/blocksuite/blocksuite/tests/linked-page.spec.ts:688:25
|
linked-page.spec.ts:658:3 › linked page popover › should fuzzy search works:
tests/utils/actions/misc.ts#L289
1) linked-page.spec.ts:658:3 › linked page popover › should fuzzy search works ───────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 10
- Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.
+ Unexpected console message: Error: nodeView not found
+ at iterate (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/view/view-store.ts:3728:17)
+ at ViewStore.getNodeViewTree (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/view/view-store.ts:3752:20)
+ at ViewStore.fromPath (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/view/view-store.ts:3762:51)
+ at ViewStore.getChildren (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/view/view-store.ts:3603:50)
+ at get childBlockElements (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/lit/src/element/block-element.ts:3051:64)
+ at PageRootBlockComponent.getUpdateComplete (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/lit/src/element/block-element.ts:3138:28)
+ at async Promise.all (index 0)
+ at async EditorHost.getUpdateComplete (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/lit/src/element/lit-host.ts:2869:5)
+ at async RangeBinding._onNativeSelectionChanged (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/lit/src/utils/range-binding.ts:3354:7)
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)
|
fragments/frame-panel.spec.ts:29:3 › frame panel › should display frame cards when there are frames:
tests/fragments/frame-panel.spec.ts#L1
1) fragments/frame-panel.spec.ts:29:3 › frame panel › should display frame cards when there are frames
Test timeout of 30000ms exceeded.
|
fragments/frame-panel.spec.ts:29:3 › frame panel › should display frame cards when there are frames:
tests/utils/actions/keyboard.ts#L27
1) fragments/frame-panel.spec.ts:29:3 › frame panel › should display frame cards when there are frames
Error: keyboard.type: Test timeout of 30000ms exceeded.
at utils/actions/keyboard.ts:27
25 |
26 | export async function type(page: Page, content: string, delay = 20) {
> 27 | await page.keyboard.type(content, { delay });
| ^
28 | }
29 |
30 | export async function withPressKey(
at type (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/keyboard.ts:27:23)
at addNote (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:386:11)
at /home/runner/work/blocksuite/blocksuite/tests/fragments/frame-panel.spec.ts:40:5
|
fragments/frame-panel.spec.ts:56:3 › frame panel › should render note portal correctly in frame preview:
tests/fragments/frame-panel.spec.ts#L1
2) fragments/frame-panel.spec.ts:56:3 › frame panel › should render note portal correctly in frame preview
Test finished within timeout of 30000ms, but tearing down "context" ran out of time.
Please allow more time for the test, since teardown is attributed towards the test timeout budget.
|
fragments/frame-panel.spec.ts:77:3 › frame panel › should update panel when frames change:
tests/fragments/frame-panel.spec.ts#L1
3) fragments/frame-panel.spec.ts:77:3 › frame panel › should update panel when frames change ─────
Test timeout of 30000ms exceeded.
|
fragments/frame-panel.spec.ts:77:3 › frame panel › should update panel when frames change:
tests/utils/actions/drag.ts#L21
3) fragments/frame-panel.spec.ts:77:3 › frame panel › should update panel when frames change ─────
Error: mouse.move: Test timeout of 30000ms exceeded.
at utils/actions/drag.ts:21
19 | await page.mouse.move(x1, y1);
20 | await page.mouse.down();
> 21 | await page.mouse.move(x2, y2, { steps });
| ^
22 | await options?.beforeMouseUp?.();
23 | await page.mouse.up();
24 | }
at dragBetweenCoords (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:21:20)
at /home/runner/work/blocksuite/blocksuite/tests/fragments/frame-panel.spec.ts:91:5
|
hotkey.spec.ts:1004:1 › should cut work single line:
tests/utils/asserts.ts#L632
4) 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:632
630 | printFunctionName: false,
631 | });
> 632 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
633 | }
634 |
635 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:632:38)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1013:3
|
image.spec.ts:103:1 › can click and copy image:
tests/utils/asserts.ts#L228
5) image.spec.ts:103:1 › can click and copy image ────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 2
Received: 1
at utils/asserts.ts:228
226 | const editor = getEditorLocator(page);
227 | const actual = await editor.locator('.resizable-img').count();
> 228 | expect(actual).toEqual(count);
| ^
229 | }
230 |
231 | export async function assertDivider(page: Page, count: number) {
at assertRichImage (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:228:18)
at /home/runner/work/blocksuite/blocksuite/tests/image.spec.ts:115:3
|
edgeless/auto-complete.spec.ts:112:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note:
tests/utils/asserts.ts#L207
1) edgeless/auto-complete.spec.ts:112: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:207
205 | });
206 | }, currentEditorIndex);
> 207 | expect(actualTexts).toEqual(texts);
| ^
208 | }
209 |
210 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:207:23)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:128:7
|
edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown:
tests/edgeless/basic.spec.ts#L187
2) edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown
Error: expect.toBeVisible: Error: strict mode violation: locator('.affine-tooltip') resolved to 2 elements:
1) <div role="tooltip" class="affine-tooltip">…</div> aka getByRole('tooltip', { name: 'Select V' })
2) <div role="tooltip" class="affine-tooltip">…</div> aka getByRole('tooltip', { name: 'More' })
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.affine-tooltip')
185 |
186 | await page.mouse.move(moreButtonBox.x + 10, moreButtonBox.y + 10);
> 187 | await expect(tooltip).toBeVisible();
| ^
188 |
189 | await page.mouse.click(moreButtonBox.x + 10, moreButtonBox.y + 10);
190 | await expect(tooltip).toBeHidden();
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/basic.spec.ts:187:25
|
paragraph.spec.ts:1393:1 › should placeholder works:
tests/paragraph.spec.ts#L1
1) paragraph.spec.ts:1393:1 › should placeholder works ───────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
paragraph.spec.ts:1393:1 › should placeholder works:
tests/utils/actions/misc.ts#L641
1) paragraph.spec.ts:1393:1 › should placeholder works ───────────────────────────────────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('editor-host').first().locator('.inline-editor').first()
at utils/actions/misc.ts:641
639 | const locator = editor.locator(RICH_TEXT_SELECTOR).nth(i);
640 | // need to set `force` to true when clicking on `affine-selected-blocks`
> 641 | await locator.click({ force: true, position: options?.clickPosition });
| ^
642 | }
643 |
644 | export async function focusRichTextEnd(page: Page, i = 0) {
at focusRichText (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:641:17)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1412:3
|
paragraph.spec.ts:1446: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/paragraph.spec.ts#L1
2) paragraph.spec.ts:1446: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
Test finished within timeout of 30000ms, but tearing down "context" ran out of time.
Please allow more time for the test, since teardown is attributed towards the test timeout budget.
|
paragraph.spec.ts:1459:3 › press ArrowDown when cursor is at the last line of a block › move cursor to the end of line if the block is the last block in the page:
tests/paragraph.spec.ts#L1
3) paragraph.spec.ts:1459:3 › press ArrowDown when cursor is at the last line of a block › move cursor to the end of line if the block is the last block in the page
Test finished within timeout of 30000ms, but tearing down "context" ran out of time.
Please allow more time for the test, since teardown is attributed towards the test timeout budget.
|
edgeless/shape.spec.ts:90:3 › add shape › with holding space bar:
tests/edgeless/shape.spec.ts#L1
1) edgeless/shape.spec.ts:90:3 › add shape › with holding space bar ──────────────────────────────
Test finished within timeout of 30000ms, but tearing down "context" ran out of time.
Please allow more time for the test, since teardown is attributed towards the test timeout budget.
|
edgeless/shape.spec.ts:113:3 › add shape › with holding space bar + shift:
tests/edgeless/shape.spec.ts#L1
2) edgeless/shape.spec.ts:113:3 › add shape › with holding space bar + shift ─────────────────────
Test finished within timeout of 30000ms, but tearing down "context" ran out of time.
Please allow more time for the test, since teardown is attributed towards the test timeout budget.
|
edgeless/shape.spec.ts:138:1 › delete shape by component-toolbar:
tests/edgeless/shape.spec.ts#L1
3) edgeless/shape.spec.ts:138:1 › delete shape by component-toolbar ──────────────────────────────
Test timeout of 30000ms exceeded.
|
edgeless/shape.spec.ts:138:1 › delete shape by component-toolbar:
tests/utils/actions/drag.ts#L21
3) edgeless/shape.spec.ts:138:1 › delete shape by component-toolbar ──────────────────────────────
Error: mouse.move: Test timeout of 30000ms exceeded.
at utils/actions/drag.ts:21
19 | await page.mouse.move(x1, y1);
20 | await page.mouse.down();
> 21 | await page.mouse.move(x2, y2, { steps });
| ^
22 | await options?.beforeMouseUp?.();
23 | await page.mouse.up();
24 | }
at dragBetweenCoords (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:21:20)
at addBasicBrushElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:345:3)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:145:3
|
format-bar.spec.ts:1401:1 › should the database action icon show correctly:
http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/_common/utils/selection.ts#L3333
4) format-bar.spec.ts:1401:1 › should the database action icon show correctly ────────────────────
Error: Uncaught exception: "Error: Failed to get current range, rangeCount is 0"
Error: Failed to get current range, rangeCount is 0
at getCurrentNativeRange (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/_common/utils/selection.ts:3333:11)
at AffineDragHandleWidget._getHoveredBlocks (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/widgets/drag-handle/drag-handle.ts:18522:51)
at AffineDragHandleWidget._getDraggingAreaRect (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/widgets/drag-handle/drag-handle.ts:18569:62)
at AffineDragHandleWidget._showDragHandleOnHoverBlock (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/widgets/drag-handle/drag-handle.ts:18363:65)
at AffineDragHandleWidget._pointerMoveOnBlock (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/widgets/drag-handle/drag-handle.ts:18796:14)
at AffineDragHandleWidget._pointerMoveHandler (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/widgets/drag-handle/drag-handle.ts:18855:14)
at http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/function.ts:1412:10
at UIEventDispatcher.run (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/dispatcher.ts:2934:49)
at PointerControl._moveOn (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/control/pointer.ts:2214:24)
at getCurrentNativeRange (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/_common/utils/selection.ts:3333:11)
at AffineDragHandleWidget._getHoveredBlocks (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/widgets/drag-handle/drag-handle.ts:18522:51)
at AffineDragHandleWidget._getDraggingAreaRect (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/widgets/drag-handle/drag-handle.ts:18569:62)
at AffineDragHandleWidget._showDragHandleOnHoverBlock (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/widgets/drag-handle/drag-handle.ts:18363:65)
at AffineDragHandleWidget._pointerMoveOnBlock (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/widgets/drag-handle/drag-handle.ts:18796:14)
at AffineDragHandleWidget._pointerMoveHandler (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/widgets/drag-handle/drag-handle.ts:18855:14)
at /home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/function.ts:1412:10
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:2934:49)
at PointerControl._moveOn (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/control/pointer.ts:2214:24)
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:298:11)
|
format-bar.spec.ts:1543:1 › can extend format bar:
tests/format-bar.spec.ts#L1549
5) format-bar.spec.ts:1543:1 › can extend format bar ─────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByTestId('custom-format-bar-element')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByTestId('custom-format-bar-element')
1547 | await extendFormatBar(page);
1548 | await dragBetweenIndices(page, [0, 0], [2, 3]);
> 1549 | await expect(page.getByTestId('custom-format-bar-element')).toBeVisible();
| ^
1550 | });
1551 |
1552 | test('format quick bar should not break cursor jumping', async ({ page }) => {
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:1549:63
|
edgeless/note.spec.ts:67:1 › can drag selected non-active note:
tests/edgeless/note.spec.ts#L1
1) edgeless/note.spec.ts:67:1 › can drag selected non-active note ────────────────────────────────
Test finished within timeout of 30000ms, but tearing down "context" ran out of time.
Please allow more time for the test, since teardown is attributed towards the test timeout budget.
|
edgeless/note.spec.ts:88:1 › resize note in edgeless mode:
tests/edgeless/note.spec.ts#L1
2) edgeless/note.spec.ts:88:1 › resize note in edgeless mode ─────────────────────────────────────
Test timeout of 30000ms exceeded.
|
edgeless/note.spec.ts:88:1 › resize note in edgeless mode:
tests/utils/actions/edgeless.ts#L108
2) edgeless/note.spec.ts:88:1 › resize note in edgeless mode ─────────────────────────────────────
Error: page.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('sl-tooltip[content="Switch Editor"]')
at utils/actions/edgeless.ts:108
106 |
107 | export async function switchEditorMode(page: Page) {
> 108 | await page.click('sl-tooltip[content="Switch Editor"]');
| ^
109 | // FIXME: listen to editor loaded event
110 | await waitNextFrame(page);
111 | }
at switchEditorMode (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:108:14)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:122:9
|
edgeless/note.spec.ts:128:1 › resize note then auto size and custom size:
tests/edgeless/note.spec.ts#L1
3) edgeless/note.spec.ts:128:1 › resize note then auto size and custom size ──────────────────────
Test timeout of 30000ms exceeded.
|
edgeless/note.spec.ts:128:1 › resize note then auto size and custom size:
tests/utils/actions/edgeless.ts#L939
3) edgeless/note.spec.ts:128:1 › resize note then auto size and custom size ──────────────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('edgeless-component-toolbar').locator('edgeless-change-note-button .edgeless-auto-height-button')
- locator resolved to <edgeless-tool-icon-button class="edgeless-auto-height-button">…</edgeless-tool-icon-button>
at utils/actions/edgeless.ts:939
937 | 'edgeless-change-note-button .edgeless-auto-height-button'
938 | );
> 939 | await button.click();
| ^
940 | break;
941 | }
942 | case 'changeNoteDisplayMode': {
at triggerComponentToolbarAction (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:939:20)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:162:9
|
edgeless/note.spec.ts:128:1 › resize note then auto size and custom size:
tests/utils/asserts.ts#L778
3) edgeless/note.spec.ts:128:1 › resize note then auto size and custom size ──────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeCloseTo(expected, precision)
Expected: 191
Received: 91
Expected precision: 0
Expected difference: < 0.5
Received difference: 100
at utils/asserts.ts:778
776 | expect(a.y).toBeCloseTo(b.y, 0);
777 | expect(a.w).toBeCloseTo(b.w, 0);
> 778 | expect(a.h).toBeCloseTo(b.h, 0);
| ^
779 | }
780 |
781 | export function assertDOMRectEqual(a: DOMRect, b: DOMRect) {
at assertRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:778:15)
at assertNoteRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:771:3)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:177:3
|
edgeless/note.spec.ts:730:1 › continuous undo and redo (note block add operation) should work:
tests/utils/actions/misc.ts#L289
4) edgeless/note.spec.ts:730: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: Error: val does not exist
+ at assertExists (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/assert.ts:1309: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:11388:66)
+ at host.handleEvent.global (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/root-block/edgeless/controllers/clipboard.ts:11216:14)
+ at UIEventDispatcher.run (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/dispatcher.ts:2934:49)
+ at ClipboardControl._paste (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/event/control/clipboard.ts:572: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:730:1 › continuous undo and redo (note block add operation) should work:
tests/edgeless/note.spec.ts#L757
4) edgeless/note.spec.ts:730:1 › continuous undo and redo (note block add operation) should work ─
Error: expect(received).toBe(expected) // Object.is equality
Expected: 4
Received: 3
755 |
756 | count = await countBlock(page, 'affine-note');
> 757 | expect(count).toBe(4);
| ^
758 |
759 | await undoByClick(page);
760 | count = await countBlock(page, 'affine-note');
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:757:17
|
edgeless/basic.spec.ts:196:1 › shift click multi select and de-select:
tests/edgeless/basic.spec.ts#L1
1) edgeless/basic.spec.ts:196:1 › shift click multi select and de-select ─────────────────────────
Test timeout of 30000ms exceeded.
|
edgeless/basic.spec.ts:196:1 › shift click multi select and de-select:
tests/utils/actions/drag.ts#L21
1) edgeless/basic.spec.ts:196:1 › shift click multi select and de-select ─────────────────────────
Error: mouse.move: Test timeout of 30000ms exceeded.
at utils/actions/drag.ts:21
19 | await page.mouse.move(x1, y1);
20 | await page.mouse.down();
> 21 | await page.mouse.move(x2, y2, { steps });
| ^
22 | await options?.beforeMouseUp?.();
23 | await page.mouse.up();
24 | }
at dragBetweenCoords (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:21:20)
at addBasicShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:365:3)
at createShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1320:3)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/basic.spec.ts:200:3
|
edgeless/basic.spec.ts:218:1 › Before and after switching to Edgeless:
tests/edgeless/basic.spec.ts#L1
2) edgeless/basic.spec.ts:218:1 › Before and after switching to Edgeless, the previous zoom ratio and position when Edgeless was opened should be remembered
Test timeout of 30000ms exceeded.
|
edgeless/basic.spec.ts:218:1 › Before and after switching to Edgeless:
tests/utils/actions/misc.ts#L330
2) edgeless/basic.spec.ts:218:1 › Before and after switching to Edgeless, the previous zoom ratio and position when Edgeless was opened should be remembered
Error: page.waitForTimeout: Test timeout of 30000ms exceeded.
at utils/actions/misc.ts:330
328 | frameTimeout = NEXT_FRAME_TIMEOUT
329 | ) {
> 330 | await page.waitForTimeout(frameTimeout);
| ^
331 | }
332 |
333 | export async function waitForPageReady(page: Page) {
at waitNextFrame (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:330:14)
at getZoomLevel (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:675:9)
at assertZoomLevel (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:915:13)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/basic.spec.ts:231:3
|
edgeless/basic.spec.ts:237:1 › should close zoom bar when click blank area:
tests/edgeless/basic.spec.ts#L1
3) edgeless/basic.spec.ts:237:1 › should close zoom bar when click blank area ────────────────────
Test timeout of 30000ms exceeded.
|
edgeless/basic.spec.ts:237:1 › should close zoom bar when click blank area:
tests/utils/actions/edgeless.ts#L328
3) edgeless/basic.spec.ts:237:1 › should close zoom bar when click blank area ────────────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('.edgeless-zoom-toolbar-container.vertical edgeless-tool-icon-button').filter({ hasText: 'Zoom in' })
at utils/actions/edgeless.ts:328
326 | export async function increaseZoomLevel(page: Page) {
327 | const btn = await locatorEdgelessZoomToolButton(page, 'zoomIn', false);
> 328 | await btn.click();
| ^
329 | await sleep(AWAIT_TIMEOUT);
330 | }
331 |
at increaseZoomLevel (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:328:13)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/basic.spec.ts:253:3
|
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/.
|
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/.
|
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 (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 (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 (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 (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 (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/.
|
🎭 Playwright Run Summary
12 passed (24.1s)
|
🎭 Playwright Run Summary
2 flaky
attachment.spec.ts:279:1 › should rename attachment works ──────────────────────────────────────
basic.spec.ts:349:1 › should undo/redo cursor works on title ───────────────────────────────────
16 skipped
49 passed (2.8m)
|
🎭 Playwright Run Summary
1 flaky
clipboard.spec.ts:1016:1 › copy canvas element and text note in edgeless mode ──────────────────
8 skipped
58 passed (3.0m)
|
🎭 Playwright Run Summary
2 flaky
selection/native.spec.ts:862:1 › drag to select tagged text, and copy ──────────────────────────
selection/native.spec.ts:882:1 › drag to select tagged text, and input character ───────────────
2 skipped
62 passed (3.2m)
|
🎭 Playwright Run Summary
1 flaky
linked-page.spec.ts:658:3 › linked page popover › should fuzzy search works ────────────────────
2 skipped
63 passed (3.2m)
|
🎭 Playwright Run Summary
5 flaky
fragments/frame-panel.spec.ts:29:3 › frame panel › should display frame cards when there are frames
fragments/frame-panel.spec.ts:56:3 › frame panel › should render note portal correctly in frame preview
fragments/frame-panel.spec.ts:77:3 › frame panel › should update panel when frames change ──────
hotkey.spec.ts:1004:1 › should cut work single line ────────────────────────────────────────────
image.spec.ts:103:1 › can click and copy image ─────────────────────────────────────────────────
3 skipped
58 passed (3.5m)
|
🎭 Playwright Run Summary
2 flaky
edgeless/auto-complete.spec.ts:112:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown
65 passed (3.7m)
|
🎭 Playwright Run Summary
3 flaky
paragraph.spec.ts:1393:1 › should placeholder works ────────────────────────────────────────────
paragraph.spec.ts:1446: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
paragraph.spec.ts:1459:3 › press ArrowDown when cursor is at the last line of a block › move cursor to the end of line if the block is the last block in the page
1 skipped
62 passed (3.7m)
|
🎭 Playwright Run Summary
5 flaky
edgeless/shape.spec.ts:90:3 › add shape › with holding space bar ───────────────────────────────
edgeless/shape.spec.ts:113:3 › add shape › with holding space bar + shift ──────────────────────
edgeless/shape.spec.ts:138:1 › delete shape by component-toolbar ───────────────────────────────
format-bar.spec.ts:1401:1 › should the database action icon show correctly ─────────────────────
format-bar.spec.ts:1543:1 › can extend format bar ──────────────────────────────────────────────
1 skipped
61 passed (3.9m)
|
🎭 Playwright Run Summary
4 flaky
edgeless/note.spec.ts:67:1 › can drag selected non-active note ─────────────────────────────────
edgeless/note.spec.ts:88:1 › resize note in edgeless mode ──────────────────────────────────────
edgeless/note.spec.ts:128:1 › resize note then auto size and custom size ───────────────────────
edgeless/note.spec.ts:730:1 › continuous undo and redo (note block add operation) should work ──
63 passed (4.5m)
|
🎭 Playwright Run Summary
3 flaky
edgeless/basic.spec.ts:196:1 › shift click multi select and de-select ──────────────────────────
edgeless/basic.spec.ts:218:1 › Before and after switching to Edgeless, the previous zoom ratio and position when Edgeless was opened should be remembered
edgeless/basic.spec.ts:237:1 › should close zoom bar when click blank area ─────────────────────
3 skipped
61 passed (4.8m)
|