fix: import use .js postfix (#5965) #121
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
test.yaml
on: push
Node.js Environment Compatibility
39s
Unit test
1m 16s
Integration test
30s
Inline Editor E2E test
47s
Matrix: Playground E2E test
Annotations
38 errors and 11 notices
attachment.spec.ts:261:1 › should rename attachment works:
tests/attachment.spec.ts#L1
1) attachment.spec.ts:261:1 › should rename attachment works ─────────────────────────────────────
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.
|
basic.spec.ts:349:1 › should undo/redo cursor works on title:
tests/utils/asserts.ts#L198
2) basic.spec.ts:349:1 › should undo/redo cursor works on title ──────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "hello4",
+ "4hello",
]
at utils/asserts.ts:198
196 | });
197 | }, currentEditorIndex);
> 198 | expect(actualTexts).toEqual(texts);
| ^
199 | }
200 |
201 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:198:23)
at /home/runner/work/blocksuite/blocksuite/tests/basic.spec.ts:381:3
|
bookmark.spec.ts:145:1 › covert bookmark block to link text:
tests/utils/actions/misc.ts#L247
3) bookmark.spec.ts:145:1 › covert bookmark block to link text ───────────────────────────────────
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:247
245 | expect
246 | .soft('Unexpected console message: ' + message.text())
> 247 | .toBe(
| ^
248 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
249 | );
250 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:247:10)
|
clipboard.spec.ts:1036:1 › copy when text note active in edgeless:
tests/utils/asserts.ts#L178
1) clipboard.spec.ts:1036:1 › copy when text note active in edgeless ─────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "12345551234"
Received: "1234555"
at utils/asserts.ts:178
176 | export async function assertText(page: Page, text: string, i = 0) {
177 | const actual = await getStringFromRichText(page, i);
> 178 | expect(actual).toBe(text);
| ^
179 | }
180 |
181 | export async function assertTextContain(page: Page, text: string, i = 0) {
at assertText (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:178:18)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1051:3
|
code.spec.ts:83:1 › use markdown syntax can create code block:
tests/utils/asserts.ts#L623
2) code.spec.ts:83:1 › use markdown syntax can create code block ─────────────────────────────────
Error: <affine:note
prop:background="--affine-background-secondary-color"
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="aaa"
prop:type="text"
>
<affine:paragraph
prop:text="bbbccc"
prop:type="text"
/>
<affine:paragraph
prop:type="text"
/>
</affine:paragraph>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -16,15 +16,13 @@
<affine:paragraph
prop:text="aaa"
prop:type="text"
>
<affine:paragraph
- prop:text="bbb"
+ prop:text="bbbccc"
prop:type="text"
- >
+ />
- <affine:paragraph
+ <affine:paragraph
- prop:text="ccc"
- prop:type="text"
+ prop:type="text"
- />
- </affine:paragraph>
+ />
</affine:paragraph>
</affine:note>
at utils/asserts.ts:623
621 | printFunctionName: false,
622 | });
> 623 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
624 | }
625 |
626 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:623:38)
at /home/runner/work/blocksuite/blocksuite/tests/code.spec.ts:96:3
|
code.spec.ts:596:1 › press backspace inside should select code block:
tests/code.spec.ts#L603
3) code.spec.ts:596:1 › press backspace inside should select code block ──────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-block-selection')
Expected: 1
Received: 0
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-block-selection')
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
601 | const selectedRects = page.locator('affine-block-selection');
602 | await page.keyboard.press('Backspace');
> 603 | await expect(selectedRects).toHaveCount(1);
| ^
604 | await expect(codeBlock).toBeVisible();
605 | await page.keyboard.press('Backspace');
606 | await expect(selectedRects).toHaveCount(0);
at /home/runner/work/blocksuite/blocksuite/tests/code.spec.ts:603:31
|
selection/block.spec.ts:136:1 › click the list icon can select and copy:
tests/utils/asserts.ts#L198
1) selection/block.spec.ts:136:1 › click the list icon can select and copy ───────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "123",
+ "23",
"456",
"789",
]
at utils/asserts.ts:198
196 | });
197 | }, currentEditorIndex);
> 198 | expect(actualTexts).toEqual(texts);
| ^
199 | }
200 |
201 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:198:23)
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:140:3
|
selection/block.spec.ts:136:1 › click the list icon can select and copy:
tests/utils/asserts.ts#L198
1) selection/block.spec.ts:136:1 › click the list icon can select and copy ───────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "123",
+ "23",
"456",
"789",
]
at utils/asserts.ts:198
196 | });
197 | }, currentEditorIndex);
> 198 | expect(actualTexts).toEqual(texts);
| ^
199 | }
200 |
201 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:198:23)
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:140:3
|
selection/block.spec.ts:174:1 › click the list icon can select and delete by forwardDelete:
tests/utils/asserts.ts#L198
2) selection/block.spec.ts:174:1 › click the list icon can select and delete by forwardDelete ────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "123",
+ "23",
"456",
"789",
]
at utils/asserts.ts:198
196 | });
197 | }, currentEditorIndex);
> 198 | expect(actualTexts).toEqual(texts);
| ^
199 | }
200 |
201 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:198:23)
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:180:3
|
selection/block.spec.ts:174:1 › click the list icon can select and delete by forwardDelete:
tests/utils/asserts.ts#L198
2) selection/block.spec.ts:174:1 › click the list icon can select and delete by forwardDelete ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "123",
+ "23",
"456",
"789",
]
at utils/asserts.ts:198
196 | });
197 | }, currentEditorIndex);
> 198 | expect(actualTexts).toEqual(texts);
| ^
199 | }
200 |
201 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:198:23)
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:180:3
|
selection/native.spec.ts:583:1 › select all text with keyboard delete:
tests/utils/asserts.ts#L198
3) selection/native.spec.ts:583:1 › select all text with keyboard delete ─────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 2
Array [
"",
+ "456",
+ "789",
]
at utils/asserts.ts:198
196 | });
197 | }, currentEditorIndex);
> 198 | expect(actualTexts).toEqual(texts);
| ^
199 | }
200 |
201 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:198:23)
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:608:3
|
hotkey.spec.ts:986:1 › should cut work single line:
tests/utils/asserts.ts#L623
1) hotkey.spec.ts:986:1 › should cut work single line ────────────────────────────────────────────
Error: <affine:note
prop:background="--affine-background-secondary-color"
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
@@ -12,9 +12,9 @@
}
prop:hidden={false}
prop:index="a0"
>
<affine:paragraph
- prop:text="ho"
+ prop:text="hello"
prop:type="text"
/>
</affine:note>
at utils/asserts.ts:623
621 | printFunctionName: false,
622 | });
> 623 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
624 | }
625 |
626 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:623:38)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:995:3
|
image.spec.ts:100:1 › can click and copy image:
tests/utils/asserts.ts#L219
2) image.spec.ts:100:1 › can click and copy image ────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 2
Received: 1
at utils/asserts.ts:219
217 | const editor = getEditorLocator(page);
218 | const actual = await editor.locator('.resizable-img').count();
> 219 | expect(actual).toEqual(count);
| ^
220 | }
221 |
222 | export async function assertDivider(page: Page, count: number) {
at assertRichImage (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:219:18)
at /home/runner/work/blocksuite/blocksuite/tests/image.spec.ts:112:3
|
link.spec.ts:354:1 › convert link to card:
eval at evaluate (:226:30)#L23
3) link.spec.ts:354:1 › convert link to card ─────────────────────────────────────────────────────
Error: page.evaluate: TypeError: Cannot read properties of null (reading 'startContainer')
at eval (eval at evaluate (:226:30), <anonymous>:23:40)
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>:23:40)
at UtilityScript.evaluate (/home/runner/work/blocksuite/blocksuite/<anonymous>:228:17)
at UtilityScript.<anonymous> (/home/runner/work/blocksuite/blocksuite/<anonymous>:1:44)
at setSelection (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:927:14)
at /home/runner/work/blocksuite/blocksuite/tests/link.spec.ts:365:9
|
list.spec.ts:566:3 › indent correctly when deleting list item › delete the child item in the middle position:
tests/utils/asserts.ts#L426
1) list.spec.ts:566:3 › indent correctly when deleting list item › delete the child item in the middle position
Error: expect(received).toEqual(expected) // deep equality
- Expected - 4
+ Received + 1
- Array [
- "4",
- "6",
- ]
+ Array []
at utils/asserts.ts:426
424 | { blockId }
425 | );
> 426 | expect(actual).toEqual(ids);
| ^
427 | }
428 |
429 | export async function assertBlockChildrenFlavours(
at assertBlockChildrenIds (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:426:18)
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:584:5
|
paragraph.spec.ts:143:3 › backspace on line start of the first block (with surface):
tests/utils/asserts.ts#L303
2) paragraph.spec.ts:143:3 › backspace on line start of the first block (with surface) ───────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "index": 0,
+ "index": 1,
"length": 0,
}
at utils/asserts.ts:303
301 | [richTextIndex, currentEditorIndex]
302 | );
> 303 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength });
| ^
304 | }
305 |
306 | export async function assertNativeSelectionRangeCount(
at assertRichTextInlineRange (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:303:18)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:160:5
|
paragraph.spec.ts:422:1 › should indent and unindent works with children:
tests/utils/asserts.ts#L623
3) paragraph.spec.ts:422:1 › should indent and unindent works with children ──────────────────────
Error: <affine:note
prop:background="--affine-background-secondary-color"
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="456789"
prop:type="text"
/>
<affine:paragraph
prop:text="012"
prop:type="text"
/>
<affine:paragraph
prop:text="345"
prop:type="text"
/>
<affine:paragraph
prop:type="text"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 4
+ Received + 3
@@ -16,21 +16,20 @@
<affine:paragraph
prop:text="123"
prop:type="text"
/>
<affine:paragraph
- prop:text="456"
+ prop:text="456789"
prop:type="text"
/>
<affine:paragraph
- prop:text="789"
+ prop:text="012"
prop:type="text"
/>
<affine:paragraph
- prop:text="012"
+ prop:text="345"
prop:type="text"
/>
<affine:paragraph
- prop:text="345"
prop:type="text"
/>
</affine:note>
at utils/asserts.ts:623
621 | printFunctionName: false,
622 | });
> 623 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
624 | }
625 |
626 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:623:38)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:436:3
|
drag.spec.ts:485:1 › should sync selected-blocks to session-manager when clicking drag handle:
tests/utils/asserts.ts#L198
1) drag.spec.ts:485:1 › should sync selected-blocks to session-manager when clicking drag handle ─
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
- "123",
- "456",
+ "123456",
"789",
+ "",
]
at utils/asserts.ts:198
196 | });
197 | }, currentEditorIndex);
> 198 | expect(actualTexts).toEqual(texts);
| ^
199 | }
200 |
201 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:198:23)
at /home/runner/work/blocksuite/blocksuite/tests/drag.spec.ts:491:3
|
edgeless/auto-complete.spec.ts:111:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note:
tests/utils/asserts.ts#L198
2) edgeless/auto-complete.spec.ts:111: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",
+ "llo",
]
at utils/asserts.ts:198
196 | });
197 | }, currentEditorIndex);
> 198 | expect(actualTexts).toEqual(texts);
| ^
199 | }
200 |
201 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:198:23)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:127:7
|
selection/native.spec.ts:928:1 › Delete the blank line between two dividers:
tests/utils/asserts.ts#L224
1) selection/native.spec.ts:928:1 › Delete the blank line between two dividers ───────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 2
Received: 1
at utils/asserts.ts:224
222 | export async function assertDivider(page: Page, count: number) {
223 | const actual = await page.locator('affine-divider').count();
> 224 | expect(actual).toEqual(count);
| ^
225 | }
226 |
227 | export async function assertRichDragButton(page: Page) {
at assertDivider (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:224:18)
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:941:3
|
selection/native.spec.ts:1914:1 › should not scroll page when mouse is click down:
tests/utils/asserts.ts#L198
2) selection/native.spec.ts:1914:1 › should not scroll page when mouse is click down ─────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
@@ -6,11 +6,10 @@
"",
"",
"",
"",
"",
- "",
"0
1
2
3
4
@@ -28,6 +27,7 @@
16
17
18
19
",
+ "",
]
at utils/asserts.ts:198
196 | });
197 | }, currentEditorIndex);
> 198 | expect(actualTexts).toEqual(texts);
| ^
199 | }
200 |
201 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:198:23)
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1930:3
|
selection/native.spec.ts:2018:1 › auto-scroll when creating a new paragraph-block by pressing enter:
tests/selection/native.spec.ts#L2039
3) selection/native.spec.ts:2018:1 › auto-scroll when creating a new paragraph-block by pressing enter
Error: expect(received).toBeGreaterThan(expected)
Expected: > 1000
Received: 951
2037 | return viewport.scrollTop;
2038 | });
> 2039 | expect(scrollTop).toBeGreaterThan(1000);
| ^
2040 | });
2041 |
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:2039:21
|
slash-menu.spec.ts:341:3 › slash search › should slash menu search and keyboard works:
tests/slash-menu.spec.ts#L383
4) slash-menu.spec.ts:341:3 › slash search › should slash menu search and keyboard works ─────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.slash-menu')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.slash-menu')
381 |
382 | await type(page, '/');
> 383 | await expect(slashMenu).toBeVisible();
| ^
384 | // first item should be selected by default
385 | await expect(slashItems.first()).toHaveAttribute('hover', 'true');
386 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:383:29
|
slash-menu.spec.ts:341:3 › slash search › should slash menu search and keyboard works:
tests/slash-menu.spec.ts#L383
4) slash-menu.spec.ts:341:3 › slash search › should slash menu search and keyboard works ─────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.slash-menu')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.slash-menu')
381 |
382 | await type(page, '/');
> 383 | await expect(slashMenu).toBeVisible();
| ^
384 | // first item should be selected by default
385 | await expect(slashItems.first()).toHaveAttribute('hover', 'true');
386 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:383:29
|
slash-menu.spec.ts:466:1 › slash menu should work in edgeless mode:
tests/utils/asserts.ts#L198
5) slash-menu.spec.ts:466:1 › slash menu should work in edgeless mode ────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
"",
- "/",
+ "",
]
at utils/asserts.ts:198
196 | });
197 | }, currentEditorIndex);
> 198 | expect(actualTexts).toEqual(texts);
| ^
199 | }
200 |
201 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:198:23)
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:473:3
|
edgeless/shape.spec.ts:92:1 › delete shape by component-toolbar:
tests/edgeless/shape.spec.ts#L1
1) edgeless/shape.spec.ts:92:1 › delete shape by component-toolbar ───────────────────────────────
Test timeout of 30000ms exceeded.
|
edgeless/shape.spec.ts:92:1 › delete shape by component-toolbar:
tests/utils/actions/edgeless.ts#L578
1) edgeless/shape.spec.ts:92:1 › delete shape by component-toolbar ───────────────────────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('edgeless-component-toolbar edgeless-tool-icon-button').filter({ hasText: 'More' })
- locator resolved to <edgeless-tool-icon-button>…</edgeless-tool-icon-button>
- attempting click action
- waiting for element to be visible, enabled and stable
at utils/actions/edgeless.ts:578
576 | });
577 |
> 578 | await btn.click();
| ^
579 | }
580 |
581 | export async function clickComponentToolbarMoreMenuButton(
at openComponentToolbarMoreMenu (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:578:13)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:102:9
|
edgeless/shape.spec.ts:131:1 › change shape stroke color:
tests/edgeless/shape.spec.ts#L1
2) edgeless/shape.spec.ts:131:1 › change shape stroke color ──────────────────────────────────────
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.
|
format-bar.spec.ts:309:1 › should format quick bar be able to change background color:
tests/format-bar.spec.ts#L427
3) format-bar.spec.ts:309:1 › should format quick bar be able to change background color ─────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.affine-format-bar-widget').getByTestId('unset')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.affine-format-bar-widget').getByTestId('unset')
- locator resolved to <icon-button width="100%" tabindex="0" height="32px" data-tes…>…</icon-button>
- unexpected value "hidden"
- locator resolved to <icon-button width="100%" tabindex="0" height="32px" data-tes…>…</icon-button>
- unexpected value "hidden"
- locator resolved to <icon-button width="100%" tabindex="0" height="32px" data-tes…>…</icon-button>
- unexpected value "hidden"
- locator resolved to <icon-button width="100%" tabindex="0" height="32px" data-tes…>…</icon-button>
- unexpected value "hidden"
- locator resolved to <icon-button width="100%" tabindex="0" height="32px" data-tes…>…</icon-button>
- unexpected value "hidden"
- locator resolved to <icon-button width="100%" tabindex="0" height="32px" data-tes…>…</icon-button>
- unexpected value "hidden"
- locator resolved to <icon-button width="100%" tabindex="0" height="32px" data-tes…>…</icon-button>
- unexpected value "hidden"
- locator resolved to <icon-button width="100%" tabindex="0" height="32px" data-tes…>…</icon-button>
- unexpected value "hidden"
- locator resolved to <icon-button width="100%" tabindex="0" height="32px" data-tes…>…</icon-button>
- unexpected value "hidden"
425 | );
426 |
> 427 | await expect(highlight.defaultColorBtn).toBeVisible();
| ^
428 | await highlight.defaultColorBtn.click();
429 |
430 | await assertStoreMatchJSX(
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:427:43
|
format-bar.spec.ts:1503:1 › can extend format bar:
tests/format-bar.spec.ts#L1509
4) format-bar.spec.ts:1503: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')
1507 | await extendFormatBar(page);
1508 | await dragBetweenIndices(page, [0, 0], [2, 3]);
> 1509 | await expect(page.getByTestId('custom-format-bar-element')).toBeVisible();
| ^
1510 | });
1511 |
1512 | test('format quick bar should not break cursor jumping', async ({ page }) => {
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:1509:63
|
edgeless/basic.spec.ts:118:1 › option/alt mouse drag duplicate a new element:
tests/edgeless/basic.spec.ts#L1
1) edgeless/basic.spec.ts:118:1 › option/alt mouse drag duplicate a new element ──────────────────
Test timeout of 30000ms exceeded.
|
edgeless/basic.spec.ts:118:1 › option/alt mouse drag duplicate a new element:
tests/utils/actions/click.ts#L38
1) edgeless/basic.spec.ts:118:1 › option/alt mouse drag duplicate a new element ──────────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('debug-menu').locator('sl-tooltip[content="Undo"]')
at utils/actions/click.ts:38
36 |
37 | export async function undoByClick(page: Page) {
> 38 | await getDebugMenu(page).undoBtn.click();
| ^
39 | }
40 |
41 | export async function redoByClick(page: Page) {
at undoByClick (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/click.ts:38:36)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/basic.spec.ts:132:9
|
edgeless/basic.spec.ts:139:1 › should cancel select when the selected point is outside the current selected element:
tests/edgeless/basic.spec.ts#L1
2) edgeless/basic.spec.ts:139:1 › should cancel select when the selected point is outside the current selected element
Test timeout of 30000ms exceeded.
|
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#L1
3) edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown
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/group.spec.ts:365:5 › group › delete › delete group in group:
tests/edgeless/group.spec.ts#L1
1) edgeless/group.spec.ts:365:5 › group › delete › delete group in group ─────────────────────────
Test timeout of 30000ms exceeded.
|
edgeless/group.spec.ts:365:5 › group › delete › delete group in group:
tests/utils/actions/drag.ts#L21
1) edgeless/group.spec.ts:365:5 › group › delete › delete group in group ─────────────────────────
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:357:3)
at createShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1230:3)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:366:7
|
edgeless/group.spec.ts:406:5 › group › group title › edit group title by component toolbar:
tests/edgeless/group.spec.ts#L1
2) edgeless/group.spec.ts:406:5 › group › group title › edit group title by component toolbar ────
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:355:1 › drag handle should work across multiple notes:
tests/edgeless/note.spec.ts#L374
3) edgeless/note.spec.ts:355: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"
372 | await page.mouse.dblclick(CENTER_X, CENTER_Y);
373 | await dragHandleFromBlockToBlockBottomById(page, '3', '7');
> 374 | await expect(page.locator('.affine-drag-handle-container')).toBeHidden();
| ^
375 | await waitNextFrame(page);
376 | await assertRichTexts(page, ['456', '789', '000', '123']);
377 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:374:63
|
🎭 Playwright Run Summary
12 passed (22.6s)
|
🎭 Playwright Run Summary
3 flaky
attachment.spec.ts:261:1 › should rename attachment works ──────────────────────────────────────
basic.spec.ts:349:1 › should undo/redo cursor works on title ───────────────────────────────────
bookmark.spec.ts:145:1 › covert bookmark block to link text ────────────────────────────────────
16 skipped
46 passed (2.9m)
|
🎭 Playwright Run Summary
3 flaky
clipboard.spec.ts:1036:1 › copy when text note active in edgeless ──────────────────────────────
code.spec.ts:83:1 › use markdown syntax can create code block ──────────────────────────────────
code.spec.ts:596:1 › press backspace inside should select code block ───────────────────────────
8 skipped
54 passed (2.9m)
|
🎭 Playwright Run Summary
3 flaky
selection/block.spec.ts:136:1 › click the list icon can select and copy ────────────────────────
selection/block.spec.ts:174:1 › click the list icon can select and delete by forwardDelete ─────
selection/native.spec.ts:583:1 › select all text with keyboard delete ──────────────────────────
1 skipped
60 passed (3.3m)
|
🎭 Playwright Run Summary
3 flaky
hotkey.spec.ts:986:1 › should cut work single line ─────────────────────────────────────────────
image.spec.ts:100:1 › can click and copy image ─────────────────────────────────────────────────
link.spec.ts:354:1 › convert link to card ──────────────────────────────────────────────────────
5 skipped
56 passed (3.1m)
|
🎭 Playwright Run Summary
3 flaky
list.spec.ts:566:3 › indent correctly when deleting list item › delete the child item in the middle position
paragraph.spec.ts:143:3 › backspace on line start of the first block (with surface) ────────────
paragraph.spec.ts:422:1 › should indent and unindent works with children ───────────────────────
61 passed (3.3m)
|
🎭 Playwright Run Summary
2 flaky
drag.spec.ts:485:1 › should sync selected-blocks to session-manager when clicking drag handle ──
edgeless/auto-complete.spec.ts:111:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
63 passed (3.4m)
|
🎭 Playwright Run Summary
5 flaky
selection/native.spec.ts:928:1 › Delete the blank line between two dividers ────────────────────
selection/native.spec.ts:1914:1 › should not scroll page when mouse is click down ──────────────
selection/native.spec.ts:2018:1 › auto-scroll when creating a new paragraph-block by pressing enter
slash-menu.spec.ts:341:3 › slash search › should slash menu search and keyboard works ──────────
slash-menu.spec.ts:466:1 › slash menu should work in edgeless mode ─────────────────────────────
2 skipped
57 passed (3.6m)
|
🎭 Playwright Run Summary
4 flaky
edgeless/shape.spec.ts:92:1 › delete shape by component-toolbar ────────────────────────────────
edgeless/shape.spec.ts:131:1 › change shape stroke color ───────────────────────────────────────
format-bar.spec.ts:309:1 › should format quick bar be able to change background color ──────────
format-bar.spec.ts:1503:1 › can extend format bar ──────────────────────────────────────────────
1 skipped
59 passed (3.7m)
|
🎭 Playwright Run Summary
3 flaky
edgeless/basic.spec.ts:118:1 › option/alt mouse drag duplicate a new element ───────────────────
edgeless/basic.spec.ts:139:1 › should cancel select when the selected point is outside the current selected element
edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown
3 skipped
58 passed (4.4m)
|
🎭 Playwright Run Summary
3 flaky
edgeless/group.spec.ts:365:5 › group › delete › delete group in group ──────────────────────────
edgeless/group.spec.ts:406:5 › group › group title › edit group title by component toolbar ─────
edgeless/note.spec.ts:355:1 › drag handle should work across multiple notes ────────────────────
61 passed (4.4m)
|