refactor: support multiple-editors #15035
Annotations
9 errors and 1 notice
Run playwright test:
tests/hotkey.spec.ts#L1
1) hotkey.spec.ts:131:1 › multi line rich-text inline code hotkey ────────────────────────────────
Test timeout of 30000ms exceeded.
|
Run playwright test:
tests/utils/asserts.ts#L587
1) hotkey.spec.ts:131:1 › multi line rich-text inline code hotkey ────────────────────────────────
Error: page.evaluate: Test timeout of 30000ms exceeded.
at utils/asserts.ts:587
585 | ) {
586 | const pageId = await getCurrentEditorPageId(page);
> 587 | const element = (await page.evaluate(
| ^
588 | ([blockId, pageId]) => window.workspace.exportJSX(blockId, pageId),
589 | [blockId, pageId]
590 | )) as JSXElement;
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:587:31)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:205:3
|
Run playwright test:
tests/hotkey.spec.ts#L1
2) hotkey.spec.ts:303:1 › single line rich-text strikethrough hotkey ─────────────────────────────
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.
|
Run playwright test:
tests/utils/asserts.ts#L621
3) 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:621
619 | printFunctionName: false,
620 | });
> 621 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
622 | }
623 |
624 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:621:38)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:995:3
|
Run playwright test:
tests/utils/asserts.ts#L196
4) hotkey.spec.ts:1123:1 › should ctrl+enter create new block ────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
- "1",
- "23",
+ "12",
+ "3",
]
at utils/asserts.ts:196
194 | });
195 | }, currentEditorIndex);
> 196 | expect(actualTexts).toEqual(texts);
| ^
197 | }
198 |
199 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:196:23)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1133:3
|
Run playwright test:
tests/utils/asserts.ts#L217
5) image.spec.ts:84:1 › can click and delete image ───────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 1
Received: 0
at utils/asserts.ts:217
215 | const editor = getEditorLocator(page);
216 | const actual = await editor.locator('.resizable-img').count();
> 217 | expect(actual).toEqual(count);
| ^
218 | }
219 |
220 | export async function assertDivider(page: Page, count: number) {
at assertRichImage (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:217:18)
at /home/runner/work/blocksuite/blocksuite/tests/image.spec.ts:94:3
|
Run playwright test:
tests/utils/asserts.ts#L217
5) image.spec.ts:84:1 › can click and delete image ───────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 1
Received: 0
at utils/asserts.ts:217
215 | const editor = getEditorLocator(page);
216 | const actual = await editor.locator('.resizable-img').count();
> 217 | expect(actual).toEqual(count);
| ^
218 | }
219 |
220 | export async function assertDivider(page: Page, count: number) {
at assertRichImage (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:217:18)
at /home/runner/work/blocksuite/blocksuite/tests/image.spec.ts:94:3
|
Run playwright test:
tests/utils/asserts.ts#L217
6) 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:217
215 | const editor = getEditorLocator(page);
216 | const actual = await editor.locator('.resizable-img').count();
> 217 | expect(actual).toEqual(count);
| ^
218 | }
219 |
220 | export async function assertDivider(page: Page, count: number) {
at assertRichImage (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:217:18)
at /home/runner/work/blocksuite/blocksuite/tests/image.spec.ts:110:3
|
Run playwright test:
tests/utils/asserts.ts#L217
6) image.spec.ts:100:1 › can click and copy image ────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 2
Received: 1
at utils/asserts.ts:217
215 | const editor = getEditorLocator(page);
216 | const actual = await editor.locator('.resizable-img').count();
> 217 | expect(actual).toEqual(count);
| ^
218 | }
219 |
220 | export async function assertDivider(page: Page, count: number) {
at assertRichImage (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:217:18)
at /home/runner/work/blocksuite/blocksuite/tests/image.spec.ts:110:3
|
Run playwright test
6 flaky
hotkey.spec.ts:131:1 › multi line rich-text inline code hotkey ─────────────────────────────────
hotkey.spec.ts:303:1 › single line rich-text strikethrough hotkey ──────────────────────────────
hotkey.spec.ts:986:1 › should cut work single line ─────────────────────────────────────────────
hotkey.spec.ts:1123:1 › should ctrl+enter create new block ─────────────────────────────────────
image.spec.ts:84:1 › can click and delete image ────────────────────────────────────────────────
image.spec.ts:100:1 › can click and copy image ─────────────────────────────────────────────────
5 skipped
53 passed (3.6m)
|
The logs for this run have expired and are no longer available.
Loading