Skip to content

feat(blocks): add plain text adapter for mind map element #8989

feat(blocks): add plain text adapter for mind map element

feat(blocks): add plain text adapter for mind map element #8989

Triggered via pull request December 18, 2024 09:32
Status Success
Total duration 3m 54s
Artifacts

test.yml

on: pull_request
Install Dependencies
41s
Install Dependencies
Matrix: E2E Test
Matrix: Unit Test
Build & Test
0s
Build & Test
Fit to window
Zoom out
Zoom in

Annotations

5 errors, 49 warnings, and 20 notices
selection/native.spec.ts:266:1 › cursor move to up and down with children block: tests/selection/native.spec.ts#L295
1) selection/native.spec.ts:266:1 › cursor move to up and down with children block ─────────────── Error: expect(received).toBeGreaterThanOrEqual(expected) Expected: >= 12 Received: -1 293 | const textTwo = await getInlineSelectionText(page); 294 | expect(textTwo).toBe('arrow down test 1'); > 295 | expect(indexTwo).toBeGreaterThanOrEqual(12); | ^ 296 | expect(indexTwo).toBeLessThanOrEqual(17); 297 | await page.keyboard.press('ArrowDown'); 298 | const textThree = await getInlineSelectionText(page); at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:295:20
attachment.spec.ts:660:1 › cancel file picker with input element resolves: tests/attachment.spec.ts#L680
1) attachment.spec.ts:660:1 › cancel file picker with input element resolves ───────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 678 | await expect(slashMenu).toBeVisible(); 679 | > 680 | const fileChooser = page.waitForEvent('filechooser'); | ^ 681 | await pressEnter(page); 682 | const inputFile = page.locator("input[type='file']"); 683 | await expect(inputFile).toHaveCount(1); at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:680:28
edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size: tests/utils/asserts.ts#L888
1) edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ─────────────── Error: expect(received).toBeCloseTo(expected, precision) Expected: 192 Received: 92 Expected precision: 0 Expected difference: < 0.5 Received difference: 100 at utils/asserts.ts:888 886 | expect(a.y).toBeCloseTo(b.y, 0); 887 | expect(a.w).toBeCloseTo(b.w, 0); > 888 | expect(a.h).toBeCloseTo(b.h, 0); | ^ 889 | } 890 | 891 | export function assertDOMRectEqual(a: DOMRect, b: DOMRect) { at assertRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:888:15) at assertNoteRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:881:3) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/resize.spec.ts:188:3
hotkey/hotkey.spec.ts:437:3 › keyboard operation to move block up or down › keep cursor: tests/utils/asserts.ts#L331
1) hotkey/hotkey.spec.ts:437:3 › keyboard operation to move block up or down › keep cursor ─────── Error: expect(received).toEqual(expected) // deep equality Expected: {"index": 3, "length": 0} Received: null at utils/asserts.ts:331 329 | [richTextIndex, currentEditorIndex] 330 | ); > 331 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength }); | ^ 332 | } 333 | 334 | export async function assertNativeSelectionRangeCount( at assertRichTextInlineRange (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:331:18) at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:453:5
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing: tests/utils/actions/edgeless.ts#L358
1) edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ───────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-slide-menu edgeless-tool-icon-button').filter({ hasText: 'Square' }) - locator resolved to <edgeless-tool-icon-button role="button">…</edgeless-tool-icon-button> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is not stable - retrying click action - waiting 20ms - waiting for element to be visible, enabled and stable - element is not stable - retrying click action - waiting 100ms - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying at utils/actions/edgeless.ts:358 356 | .locator('edgeless-slide-menu edgeless-tool-icon-button') 357 | .filter({ hasText: shape }); > 358 | await squareShapeButton.click(); | ^ 359 | break; 360 | } 361 | } at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:358:31) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137:3
Install Dependencies
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (17)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (17)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (20)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (15)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (15)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (2)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (19)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (19)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (3)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Unit Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (1)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (16)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (16)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (4)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (13)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (13)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Unit Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (10)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (10)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (14)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (14)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Unit Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (18)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (12)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (12)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Unit Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (7)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (7)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (6)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (6)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (11)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (11)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (5)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (8)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (8)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (9)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (9)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Unit Test (4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build & Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
🎭 Playwright Run Summary
49 passed (42.6s)
🎭 Playwright Run Summary
3 skipped 45 passed (38.9s)
🎭 Playwright Run Summary
1 skipped 48 passed (47.3s)
🎭 Playwright Run Summary
1 skipped 48 passed (40.8s)
🎭 Playwright Run Summary
1 flaky selection/native.spec.ts:266:1 › cursor move to up and down with children block ──────────────── 48 passed (52.0s)
🎭 Playwright Run Summary
4 skipped 45 passed (50.7s)
🎭 Playwright Run Summary
1 flaky attachment.spec.ts:660:1 › cancel file picker with input element resolves ────────────────────── 2 skipped 46 passed (50.2s)
🎭 Playwright Run Summary
2 skipped 47 passed (49.3s)
🎭 Playwright Run Summary
49 passed (52.9s)
🎭 Playwright Run Summary
1 skipped 48 passed (53.6s)
🎭 Playwright Run Summary
1 flaky edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ──────────────── 2 skipped 46 passed (59.6s)
🎭 Playwright Run Summary
1 flaky hotkey/hotkey.spec.ts:437:3 › keyboard operation to move block up or down › keep cursor ──────── 48 passed (1.1m)
🎭 Playwright Run Summary
49 passed (54.4s)
🎭 Playwright Run Summary
1 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── 3 skipped 45 passed (1.2m)
🎭 Playwright Run Summary
1 skipped 48 passed (1.4m)
🎭 Playwright Run Summary
49 passed (1.3m)
🎭 Playwright Run Summary
1 skipped 48 passed (1.5m)
🎭 Playwright Run Summary
6 skipped 43 passed (1.3m)
🎭 Playwright Run Summary
49 passed (1.5m)
🎭 Playwright Run Summary
10 skipped 39 passed (1.4m)