refactor: support multiple-editors #15047
Annotations
3 errors and 1 notice
Run playwright test:
tests/paragraph.spec.ts#L1
1) paragraph.spec.ts:1585:1 › paragraph indent and delete in line start ──────────────────────────
Test timeout of 30000ms exceeded.
|
Run playwright test:
tests/utils/actions/misc.ts#L1224
1) paragraph.spec.ts:1585:1 › paragraph indent and delete in line start ──────────────────────────
Error: page.evaluate: Target page, context or browser has been closed
at utils/actions/misc.ts:1224
1222 |
1223 | export async function getCurrentEditorPageId(page: Page) {
> 1224 | return await page.evaluate(index => {
| ^
1225 | const editor = document.querySelectorAll('affine-editor-container')[index];
1226 | if (!editor) throw new Error("Can't find affine-editor-container");
1227 | const pageId = editor.page.id;
at getCurrentEditorPageId (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:1224:21)
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:586:24)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1701:9
|
Run playwright test:
tests/selection/native.spec.ts#L523
2) selection/native.spec.ts:514:1 › cursor move up and down through note ─────────────────────────
Error: expect(received).not.toBe(expected) // Object.is equality
Expected: not "2"
521 | await pressArrowDown(page);
522 | currentId = (await getCursorBlockIdAndHeight(page))[0];
> 523 | expect(id).not.toBe(currentId);
| ^
524 | await pressArrowUp(page);
525 | currentId = (await getCursorBlockIdAndHeight(page))[0];
526 | expect(id).toBe(currentId);
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:523:18
|
Run playwright test
2 flaky
paragraph.spec.ts:1585:1 › paragraph indent and delete in line start ───────────────────────────
selection/native.spec.ts:514:1 › cursor move up and down through note ──────────────────────────
1 skipped
61 passed (3.4m)
|
The logs for this run have expired and are no longer available.
Loading