refactor: support multiple-editors #15030
Annotations
3 errors and 1 notice
Run playwright test:
tests/utils/asserts.ts#L222
1) selection/native.spec.ts:928:1 › Delete the blank line between two dividers ───────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: 2
Received: 1
at utils/asserts.ts:222
220 | export async function assertDivider(page: Page, count: number) {
221 | const actual = await page.locator('affine-divider').count();
> 222 | expect(actual).toEqual(count);
| ^
223 | }
224 |
225 | export async function assertRichDragButton(page: Page) {
at assertDivider (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:222:18)
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:941:3
|
Run playwright test:
tests/utils/asserts.ts#L301
2) selection/native.spec.ts:1781:1 › press ArrowUp and ArrowDown in the edge of two line ─────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "index": 0,
+ "index": 9,
"length": 0,
}
at utils/asserts.ts:301
299 | [richTextIndex, currentEditorIndex]
300 | );
> 301 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength });
| ^
302 | }
303 |
304 | export async function assertNativeSelectionRangeCount(
at assertRichTextInlineRange (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:301:18)
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1861:3
|
Run playwright test:
tests/slash-menu.spec.ts#L383
3) slash-menu.spec.ts:341:3 › slash search › should slash menu search and keyboard works ─────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.slash-menu')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.slash-menu')
381 |
382 | await type(page, '/');
> 383 | await expect(slashMenu).toBeVisible();
| ^
384 | // first item should be selected by default
385 | await expect(slashItems.first()).toHaveAttribute('hover', 'true');
386 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:383:29
|
Run playwright test
3 flaky
selection/native.spec.ts:928:1 › Delete the blank line between two dividers ────────────────────
selection/native.spec.ts:1781:1 › press ArrowUp and ArrowDown in the edge of two line ──────────
slash-menu.spec.ts:341:3 › slash search › should slash menu search and keyboard works ──────────
2 skipped
59 passed (3.2m)
|
The logs for this run have expired and are no longer available.
Loading