fix(edgeless): should generate connectors' path once when loading con⦠#131
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
45s
Unit test
1m 15s
Integration test
33s
Inline Editor E2E test
41s
Matrix: Playground E2E test
Annotations
24 errors and 11 notices
attachment.spec.ts:265:1 βΊ should rename attachment works:
tests/attachment.spec.ts#L1
1) attachment.spec.ts:265: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.
|
attachment.spec.ts:304:1 βΊ should turn attachment to image works:
tests/utils/asserts.ts#L226
2) attachment.spec.ts:304:1 βΊ should turn attachment to image works ββββββββββββββββββββββββββββββ
Error: expect(received).toEqual(expected) // deep equality
Expected: 1
Received: 0
at utils/asserts.ts:226
224 | const editor = getEditorLocator(page);
225 | const actual = await editor.locator('.resizable-img').count();
> 226 | expect(actual).toEqual(count);
| ^
227 | }
228 |
229 | export async function assertDivider(page: Page, count: number) {
at assertRichImage (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:226:18)
at turnToEmbed (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:90:7)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:315:3
|
bookmark.spec.ts:54:1 βΊ create bookmark by slash menu:
tests/utils/actions/misc.ts#L247
3) bookmark.spec.ts:54:1 βΊ create bookmark by slash menu βββββββββββββββββββββββββββββββββββββββββ
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)
|
bookmark.spec.ts:186:1 βΊ copy url to create bookmark in page mode:
tests/utils/actions/misc.ts#L247
4) bookmark.spec.ts:186:1 βΊ copy url to create bookmark in page 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: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)
|
bookmark.spec.ts:296:1 βΊ support dragging bookmark block directly:
tests/utils/actions/misc.ts#L247
5) bookmark.spec.ts:296:1 βΊ support dragging bookmark block directly βββββββββββββββββββββββββββββ
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)
|
hotkey.spec.ts:1004:1 βΊ should cut work single line:
tests/utils/asserts.ts#L630
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:630
628 | printFunctionName: false,
629 | });
> 630 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
631 | }
632 |
633 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:630:38)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1013:3
|
clipboard.spec.ts:921:1 βΊ should copy and paste of database work:
tests/clipboard.spec.ts#L1
1) clipboard.spec.ts:921:1 βΊ should copy and paste of database work ββββββββββββββββββββββββββββββ
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.
|
clipboard.spec.ts:1020:1 βΊ copy canvas element and text note in edgeless mode:
tests/clipboard.spec.ts#L1
2) clipboard.spec.ts:1020:1 βΊ copy canvas element and text note in edgeless mode βββββββββββββββββ
Test timeout of 30000ms exceeded.
|
clipboard.spec.ts:1020:1 βΊ copy canvas element and text note in edgeless mode:
tests/utils/actions/drag.ts#L21
2) clipboard.spec.ts:1020: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:357:3)
at createShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1312:3)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1025:3
|
clipboard.spec.ts:1040:1 βΊ copy when text note active in edgeless:
tests/utils/asserts.ts#L185
3) clipboard.spec.ts:1040:1 βΊ copy when text note active in edgeless βββββββββββββββββββββββββββββ
Error: expect(received).toBe(expected) // Object.is equality
Expected: "12345551234"
Received: "1234555"
at utils/asserts.ts:185
183 | export async function assertText(page: Page, text: string, i = 0) {
184 | const actual = await getStringFromRichText(page, i);
> 185 | expect(actual).toBe(text);
| ^
186 | }
187 |
188 | export async function assertTextContain(page: Page, text: string, i = 0) {
at assertText (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:185:18)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1055:3
|
format-bar.spec.ts:1537:1 βΊ can extend format bar:
tests/format-bar.spec.ts#L1543
1) format-bar.spec.ts:1537: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')
1541 | await extendFormatBar(page);
1542 | await dragBetweenIndices(page, [0, 0], [2, 3]);
> 1543 | await expect(page.getByTestId('custom-format-bar-element')).toBeVisible();
| ^
1544 | });
1545 |
1546 | test('format quick bar should not break cursor jumping', async ({ page }) => {
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:1543:63
|
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#L205
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:205
203 | });
204 | }, currentEditorIndex);
> 205 | expect(actualTexts).toEqual(texts);
| ^
206 | }
207 |
208 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:128:7
|
edgeless/group.spec.ts:458:5 βΊ group βΊ group title βΊ edit group title by component toolbar:
tests/edgeless/group.spec.ts#L452
1) edgeless/group.spec.ts:458:5 βΊ group βΊ group title βΊ edit group title by component toolbar ββββ
Test timeout of 30000ms exceeded while running "beforeEach" hook.
450 |
451 | test.describe('group title', () => {
> 452 | test.beforeEach(async ({ page }) => {
| ^
453 | await init(page);
454 | await selectAllByKeyboard(page);
455 | await triggerComponentToolbarAction(page, 'addGroup');
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:452:10
|
edgeless/group.spec.ts:458:5 βΊ group βΊ group title βΊ edit group title by component toolbar:
tests/utils/actions/drag.ts#L21
1) edgeless/group.spec.ts:458:5 βΊ group βΊ group title βΊ edit group title 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 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:1312:3)
at init (/home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:47:5)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:453:7
|
edgeless/group.spec.ts:467:5 βΊ group βΊ group title βΊ edit group title by dbclick:
tests/edgeless/group.spec.ts#L452
2) edgeless/group.spec.ts:467:5 βΊ group βΊ group title βΊ edit group title by dbclick ββββββββββββββ
Test timeout of 30000ms exceeded while running "beforeEach" hook.
450 |
451 | test.describe('group title', () => {
> 452 | test.beforeEach(async ({ page }) => {
| ^
453 | await init(page);
454 | await selectAllByKeyboard(page);
455 | await triggerComponentToolbarAction(page, 'addGroup');
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:452:10
|
edgeless/group.spec.ts:467:5 βΊ group βΊ group title βΊ edit group title by dbclick:
tests/utils/actions/drag.ts#L21
2) edgeless/group.spec.ts:467:5 βΊ group βΊ group title βΊ edit group title by dbclick ββββββββββββββ
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:1312:3)
at init (/home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:47:5)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:453:7
|
edgeless/group.spec.ts:479:5 βΊ group βΊ group title βΊ blur unmount group editor:
tests/edgeless/group.spec.ts#L452
3) edgeless/group.spec.ts:479:5 βΊ group βΊ group title βΊ blur unmount group editor ββββββββββββββββ
Test timeout of 30000ms exceeded while running "beforeEach" hook.
450 |
451 | test.describe('group title', () => {
> 452 | test.beforeEach(async ({ page }) => {
| ^
453 | await init(page);
454 | await selectAllByKeyboard(page);
455 | await triggerComponentToolbarAction(page, 'addGroup');
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:452:10
|
edgeless/group.spec.ts:479:5 βΊ group βΊ group title βΊ blur unmount group editor:
tests/utils/actions/drag.ts#L21
3) edgeless/group.spec.ts:479:5 βΊ group βΊ group title βΊ blur unmount group editor ββββββββββββββββ
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:1312:3)
at init (/home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:47:5)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:453:7
|
edgeless/note.spec.ts:180:1 βΊ add Note:
tests/utils/asserts.ts#L205
4) edgeless/note.spec.ts:180:1 βΊ add Note ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
"",
- "hello",
+ "",
]
at utils/asserts.ts:205
203 | });
204 | }, currentEditorIndex);
> 205 | expect(actualTexts).toEqual(texts);
| ^
206 | }
207 |
208 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:189:3
|
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#L43
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"]')
- locator resolved to <sl-tooltip hoist="" content="Undo" placement="bottom">β¦</sl-tooltip>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- element is not visible
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
at utils/actions/click.ts:43
41 |
42 | export async function undoByClick(page: Page) {
> 43 | await getDebugMenu(page).undoBtn.click();
| ^
44 | }
45 |
46 | export async function redoByClick(page: Page) {
at undoByClick (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/click.ts:43: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:139:1 βΊ should cancel select when the selected point is outside the current selected element:
tests/utils/actions/drag.ts#L21
2) edgeless/basic.spec.ts:139:1 βΊ should cancel select when the selected point is outside the current selected element
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 addBasicRectShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:347:3)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/basic.spec.ts:153:3
|
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.
|
π Playwright Run Summary
12 passed (22.6s)
|
π Playwright Run Summary
1 skipped
63 passed (3.1m)
|
π Playwright Run Summary
2 skipped
62 passed (3.1m)
|
π Playwright Run Summary
5 flaky
attachment.spec.ts:265:1 βΊ should rename attachment works ββββββββββββββββββββββββββββββββββββββ
attachment.spec.ts:304:1 βΊ should turn attachment to image works βββββββββββββββββββββββββββββββ
bookmark.spec.ts:54:1 βΊ create bookmark by slash menu ββββββββββββββββββββββββββββββββββββββββββ
bookmark.spec.ts:186:1 βΊ copy url to create bookmark in page mode ββββββββββββββββββββββββββββββ
bookmark.spec.ts:296:1 βΊ support dragging bookmark block directly ββββββββββββββββββββββββββββββ
16 skipped
44 passed (3.1m)
|
π Playwright Run Summary
1 flaky
hotkey.spec.ts:1004:1 βΊ should cut work single line ββββββββββββββββββββββββββββββββββββββββββββ
5 skipped
58 passed (3.0m)
|
π Playwright Run Summary
3 flaky
clipboard.spec.ts:921:1 βΊ should copy and paste of database work βββββββββββββββββββββββββββββββ
clipboard.spec.ts:1020:1 βΊ copy canvas element and text note in edgeless mode ββββββββββββββββββ
clipboard.spec.ts:1040:1 βΊ copy when text note active in edgeless ββββββββββββββββββββββββββββββ
8 skipped
54 passed (3.1m)
|
π Playwright Run Summary
64 passed (3.0m)
|
π Playwright Run Summary
1 flaky
format-bar.spec.ts:1537:1 βΊ can extend format bar ββββββββββββββββββββββββββββββββββββββββββββββ
1 skipped
63 passed (3.3m)
|
π Playwright Run Summary
1 flaky
edgeless/auto-complete.spec.ts:112:5 βΊ auto-complete βΊ drag on auto-complete button βΊ drag on right auto-complete button to add note
64 passed (3.5m)
|
π Playwright Run Summary
4 flaky
edgeless/group.spec.ts:458:5 βΊ group βΊ group title βΊ edit group title by component toolbar βββββ
edgeless/group.spec.ts:467:5 βΊ group βΊ group title βΊ edit group title by dbclick βββββββββββββββ
edgeless/group.spec.ts:479:5 βΊ group βΊ group title βΊ blur unmount group editor βββββββββββββββββ
edgeless/note.spec.ts:180:1 βΊ add Note βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
61 passed (4.4m)
|
π 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
59 passed (4.5m)
|