refactor: support multiple-editors #15053
Annotations
10 errors and 1 notice
Run playwright test:
tests/edgeless/group.spec.ts#L233
1) edgeless/group.spec.ts:270:5 › group › release from group › release group from group ──────────
Test timeout of 30000ms exceeded while running "beforeEach" hook.
231 |
232 | test.describe('release from group', () => {
> 233 | test.beforeEach(async ({ page }) => {
| ^
234 | await init(page);
235 | await createShapeElement(page, [200, 0], [300, 100], Shape.Square);
236 | await selectAllByKeyboard(page);
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:233:10
|
Run playwright test:
tests/utils/actions/edgeless.ts#L266
1) edgeless/group.spec.ts:270:5 › group › release from group › release group from group ──────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('edgeless-tool-icon-button').filter({ hasText: 'Square' })
- locator resolved to <edgeless-tool-icon-button>…</edgeless-tool-icon-button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is not stable - waiting...
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
at utils/actions/edgeless.ts:266
264 | .locator('edgeless-tool-icon-button')
265 | .filter({ hasText: shape });
> 266 | await squareShapeButton.click();
| ^
267 | break;
268 | }
269 | }
at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:266:31)
at addBasicShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:356:3)
at createShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1229:3)
at init (/home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:43:5)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:234:7
|
Run playwright test:
tests/edgeless/group.spec.ts#L323
2) edgeless/group.spec.ts:327:5 › group › delete › delete root group ─────────────────────────────
Test timeout of 30000ms exceeded while running "beforeEach" hook.
321 |
322 | test.describe('delete', () => {
> 323 | test.beforeEach(async ({ page }) => {
| ^
324 | await init(page);
325 | });
326 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:323:10
|
Run playwright test:
tests/utils/actions/edgeless.ts#L261
2) edgeless/group.spec.ts:327:5 › group › delete › delete root group ─────────────────────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('edgeless-toolbar edgeless-toolbar-button.edgeless-shape-button')
- locator resolved to <edgeless-toolbar-button class="edgeless-shape-button">…</edgeless-toolbar-button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
at utils/actions/edgeless.ts:261
259 | case 'shape': {
260 | const shapeToolButton = locatorEdgelessToolButton(page, 'shape', false);
> 261 | await shapeToolButton.click();
| ^
262 |
263 | const squareShapeButton = page
264 | .locator('edgeless-tool-icon-button')
at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:261:29)
at addBasicShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:356:9)
at createShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1229:9)
at init (/home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:43:5)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:324:7
|
Run playwright test:
tests/edgeless/group.spec.ts#L323
3) edgeless/group.spec.ts:344:5 › group › delete › delete sub-element in group ───────────────────
Test timeout of 30000ms exceeded while running "beforeEach" hook.
321 |
322 | test.describe('delete', () => {
> 323 | test.beforeEach(async ({ page }) => {
| ^
324 | await init(page);
325 | });
326 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:323:10
|
Run playwright test:
tests/utils/actions/drag.ts#L21
3) edgeless/group.spec.ts:344:5 › group › delete › delete sub-element 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:1229:3)
at init (/home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:43:5)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:324:7
|
Run playwright test:
tests/utils/actions/misc.ts#L248
4) edgeless/group.spec.ts:452:5 › group › clipboard › copy and paste group ───────────────────────
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/global/src/utils/assert.ts:1309:11)
+ at Clipboard.readFromClipboard (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/block-std/src/clipboard/index.ts:2565:5)
+ at EdgelessClipboardController._onPaste (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/page-block/edgeless/controllers/clipboard.ts:8587:66)
+ at host.handleEvent.global (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/blocks/src/page-block/edgeless/controllers/clipboard.ts:8444:14)
+ at UIEventDispatcher.run (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/block-std/src/event/dispatcher.ts:2768:49)
+ at ClipboardControl._paste (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/block-std/src/event/control/clipboard.ts:571:24)
at utils/actions/misc.ts:248
246 | expect
247 | .soft('Unexpected console message: ' + message.text())
> 248 | .toBe(
| ^
249 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
250 | );
251 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:248:10)
|
Run playwright test:
tests/utils/asserts.ts#L923
4) edgeless/group.spec.ts:452:5 › group › clipboard › copy and paste group ───────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 3
+ Received + 0
Array [
"tImG8X_yBi",
"tImG8X_yBi",
"GROUP_ROOT",
- undefined,
- undefined,
- "GROUP_ROOT",
]
at utils/asserts.ts:923
921 | export async function assertGroupIds(page: Page, expected: string[]) {
922 | const ids = await getGroupIds(page);
> 923 | expect(ids).toEqual(expected);
| ^
924 | }
925 |
926 | export async function assertSortedIds(page: Page, expected: string[]) {
at assertGroupIds (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:923:15)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:465:7
|
Run playwright test:
tests/utils/asserts.ts#L771
5) edgeless/note.spec.ts:127:1 › resize note then auto size and custom size ──────────────────────
Error: expect(received).toBeCloseTo(expected, precision)
Expected: 91
Received: 95
Expected precision: 0
Expected difference: < 0.5
Received difference: 4
at utils/asserts.ts:771
769 | expect(a.y).toBeCloseTo(b.y, 0);
770 | expect(a.w).toBeCloseTo(b.w, 0);
> 771 | expect(a.h).toBeCloseTo(b.h, 0);
| ^
772 | }
773 |
774 | export function assertDOMRectEqual(a: DOMRect, b: DOMRect) {
at assertRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:771:15)
at assertNoteRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:764:3)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:172:3
|
Run playwright test:
tests/utils/asserts.ts#L771
5) edgeless/note.spec.ts:127: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:771
769 | expect(a.y).toBeCloseTo(b.y, 0);
770 | expect(a.w).toBeCloseTo(b.w, 0);
> 771 | expect(a.h).toBeCloseTo(b.h, 0);
| ^
772 | }
773 |
774 | export function assertDOMRectEqual(a: DOMRect, b: DOMRect) {
at assertRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:771:15)
at assertNoteRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:764:3)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:176:3
|
Run playwright test
5 flaky
edgeless/group.spec.ts:270:5 › group › release from group › release group from group ───────────
edgeless/group.spec.ts:327:5 › group › delete › delete root group ──────────────────────────────
edgeless/group.spec.ts:344:5 › group › delete › delete sub-element in group ────────────────────
edgeless/group.spec.ts:452:5 › group › clipboard › copy and paste group ────────────────────────
edgeless/note.spec.ts:127:1 › resize note then auto size and custom size ───────────────────────
59 passed (4.6m)
|
The logs for this run have expired and are no longer available.
Loading