refactor: support multiple-editors #15037
Annotations
10 errors, 1 warning, and 1 notice
Run playwright test:
tests/utils/asserts.ts#L196
1) basic.spec.ts:312:1 › should undo/redo works on title ─────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "hello ",
+ "hello world",
]
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/basic.spec.ts:341:3
|
Run playwright test:
tests/utils/asserts.ts#L196
1) basic.spec.ts:312:1 › should undo/redo works on title ─────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "hello ",
+ "hello world",
]
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/basic.spec.ts:341:3
|
Run playwright test:
tests/utils/asserts.ts#L196
1) basic.spec.ts:312:1 › should undo/redo works on title ─────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "hello ",
+ "hello world",
]
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/basic.spec.ts:341:3
|
Run playwright test:
tests/utils/asserts.ts#L196
1) basic.spec.ts:312:1 › should undo/redo works on title ─────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "hello ",
+ "hello world",
]
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/basic.spec.ts:341:3
|
Run playwright test:
tests/utils/asserts.ts#L138
2) basic.spec.ts:349:1 › should undo/redo cursor works on title ──────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "title23"
Received: "title4"
at utils/asserts.ts:138
136 | const inlineEditor = editor.locator('.doc-title-container').first();
137 | const vText = inlineEditorInnerTextToString(await inlineEditor.innerText());
> 138 | expect(vText).toBe(text);
| ^
139 | }
140 |
141 | export async function assertInlineEditorDeltas(
at assertTitle (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:138:17)
at /home/runner/work/blocksuite/blocksuite/tests/basic.spec.ts:380:3
|
Run playwright test:
tests/utils/asserts.ts#L138
2) basic.spec.ts:349:1 › should undo/redo cursor works on title ──────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "title23"
Received: "title4"
at utils/asserts.ts:138
136 | const inlineEditor = editor.locator('.doc-title-container').first();
137 | const vText = inlineEditorInnerTextToString(await inlineEditor.innerText());
> 138 | expect(vText).toBe(text);
| ^
139 | }
140 |
141 | export async function assertInlineEditorDeltas(
at assertTitle (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:138:17)
at /home/runner/work/blocksuite/blocksuite/tests/basic.spec.ts:380:3
|
Run playwright test:
tests/utils/asserts.ts#L138
2) basic.spec.ts:349:1 › should undo/redo cursor works on title ──────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "title23"
Received: "title4"
at utils/asserts.ts:138
136 | const inlineEditor = editor.locator('.doc-title-container').first();
137 | const vText = inlineEditorInnerTextToString(await inlineEditor.innerText());
> 138 | expect(vText).toBe(text);
| ^
139 | }
140 |
141 | export async function assertInlineEditorDeltas(
at assertTitle (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:138:17)
at /home/runner/work/blocksuite/blocksuite/tests/basic.spec.ts:380:3
|
Run playwright test:
tests/utils/asserts.ts#L138
2) basic.spec.ts:349:1 › should undo/redo cursor works on title ──────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "title23"
Received: "title4"
at utils/asserts.ts:138
136 | const inlineEditor = editor.locator('.doc-title-container').first();
137 | const vText = inlineEditorInnerTextToString(await inlineEditor.innerText());
> 138 | expect(vText).toBe(text);
| ^
139 | }
140 |
141 | export async function assertInlineEditorDeltas(
at assertTitle (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:138:17)
at /home/runner/work/blocksuite/blocksuite/tests/basic.spec.ts:380:3
|
Run playwright test:
tests/attachment.spec.ts#L1
3) attachment.spec.ts:261:1 › should rename attachment works ─────────────────────────────────────
Test timeout of 30000ms exceeded.
|
Run playwright test:
tests/attachment.spec.ts#L93
3) attachment.spec.ts:261:1 › should rename attachment works ─────────────────────────────────────
Error: locator.hover: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('affine-attachment')
- locator resolved to <affine-attachment class="" data-block-id="3">…</affine-attachment>
- attempting hover action
- waiting for element to be visible and stable
- element is visible and stable
- scrolling into view if needed
- done scrolling
- performing hover action
91 | },
92 | rename: async (newName: string) => {
> 93 | await attachment.hover();
| ^
94 | await expect(options).toBeVisible();
95 | await renameBtn.click();
96 | await page.keyboard.press(`${SHORT_KEY}+a`, { delay: 50 });
at rename (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:93:24)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:296:9
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Run playwright test
2 failed
basic.spec.ts:312:1 › should undo/redo works on title ──────────────────────────────────────────
basic.spec.ts:349:1 › should undo/redo cursor works on title ───────────────────────────────────
2 flaky
attachment.spec.ts:261:1 › should rename attachment works ──────────────────────────────────────
attachment.spec.ts:300:1 › should turn attachment to image works ───────────────────────────────
16 skipped
45 passed (3.2m)
|
The logs for this run have expired and are no longer available.
Loading