refactor(edgeless): surface elements api #15170
Annotations
3 errors and 1 notice
Run playwright test:
tests/utils/asserts.ts#L425
1) list.spec.ts:566:3 › indent correctly when deleting list item › delete the child item in the middle position
Error: expect(received).toEqual(expected) // deep equality
- Expected - 4
+ Received + 1
- Array [
- "4",
- "6",
- ]
+ Array []
at utils/asserts.ts:425
423 | { blockId }
424 | );
> 425 | expect(actual).toEqual(ids);
| ^
426 | }
427 |
428 | export async function assertBlockChildrenFlavours(
at assertBlockChildrenIds (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:425:18)
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:584:5
|
Run playwright test:
tests/list.spec.ts#L716
2) 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#L251
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:251
249 | export async function assertPageTitleFocus(page: Page) {
250 | const locator = page.locator('doc-title .inline-editor').nth(0);
> 251 | await expect(locator).toBeFocused();
| ^
252 | }
253 |
254 | export async function assertListPrefix(
at assertPageTitleFocus (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:251:25)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1182:9
|
Run playwright test
3 flaky
list.spec.ts:566:3 › indent correctly when deleting list item › delete the child item in the middle position
list.spec.ts:719:3 › toggle list › click toggle icon should collapsed list ─────────────────────
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