refactor: support multiple-editors #15030
Annotations
3 errors and 1 notice
Run playwright test:
tests/list.spec.ts#L716
1) list.spec.ts:719:3 › toggle list › click toggle icon should collapsed list ────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
714 |
715 | async function assertToggleIconVisible(toggleIcon: Locator, expected = true) {
> 716 | expect(await isToggleIconVisible(toggleIcon)).toBe(expected);
| ^
717 | }
718 |
719 | test('click toggle icon should collapsed list', async ({ page }) => {
at assertToggleIconVisible (/home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:716:51)
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:823:5
|
Run playwright test:
tests/utils/asserts.ts#L138
2) paragraph.spec.ts:75:1 › init paragraph by page title enter in middle ─────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "he"
Received: "hel"
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/paragraph.spec.ts:86:3
|
Run playwright test:
tests/utils/asserts.ts#L250
3) paragraph.spec.ts:1168:1 › handling keyup when cursor located in first paragraph ──────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('doc-title .inline-editor').first()
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('doc-title .inline-editor').first()
- locator resolved to <div data-v-root="true" contenteditable="true" class=…>…</div>
- unexpected value "not focused"
- locator resolved to <div data-v-root="true" contenteditable="true" class=…>…</div>
- unexpected value "not focused"
- locator resolved to <div data-v-root="true" contenteditable="true" class=…>…</div>
- unexpected value "not focused"
- locator resolved to <div data-v-root="true" contenteditable="true" class=…>…</div>
- unexpected value "not focused"
- locator resolved to <div data-v-root="true" contenteditable="true" class=…>…</div>
- unexpected value "not focused"
- locator resolved to <div data-v-root="true" contenteditable="true" class=…>…</div>
- unexpected value "not focused"
- locator resolved to <div data-v-root="true" contenteditable="true" class=…>…</div>
- unexpected value "not focused"
- locator resolved to <div data-v-root="true" contenteditable="true" class=…>…</div>
- unexpected value "not focused"
- locator resolved to <div data-v-root="true" contenteditable="true" class=…>…</div>
- unexpected value "not focused"
at utils/asserts.ts:250
248 | export async function assertPageTitleFocus(page: Page) {
249 | const locator = page.locator('doc-title .inline-editor').nth(0);
> 250 | await expect(locator).toBeFocused();
| ^
251 | }
252 |
253 | export async function assertListPrefix(
at assertPageTitleFocus (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:250:25)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1182:9
|
Run playwright test
3 flaky
list.spec.ts:719:3 › toggle list › click toggle icon should collapsed list ─────────────────────
paragraph.spec.ts:75:1 › init paragraph by page title enter in middle ──────────────────────────
paragraph.spec.ts:1168:1 › handling keyup when cursor located in first paragraph ───────────────
61 passed (3.3m)
|
The logs for this run have expired and are no longer available.
Loading