Skip to content

docs: edgeless data structure desc #6681

docs: edgeless data structure desc

docs: edgeless data structure desc #6681

Triggered via pull request October 15, 2024 17:14
Status Failure
Total duration 3m 47s
Artifacts

test.yml

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

Annotations

8 errors, 20 warnings, and 20 notices
hotkey/hotkey.spec.ts:421:3 › keyboard operation to move block up or down › keep cursor: tests/utils/asserts.ts#L328
1) hotkey/hotkey.spec.ts:421: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:328 326 | [richTextIndex, currentEditorIndex] 327 | ); > 328 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength }); | ^ 329 | } 330 | 331 | export async function assertNativeSelectionRangeCount( at assertRichTextInlineRange (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:328:18) at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:437:5
hotkey/multiline.spec.ts:100:1 › should cut work multiple line: tests/hotkey/multiline.spec.ts#L110
2) hotkey/multiline.spec.ts:100:1 › should cut work multiple line ──────────────────────────────── Error: Snapshot comparison failed: { "type": "block", "id": "0", "flavour": "affine:page", "version": 2, "props": { "title": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [ { "type": "block", "id": "1", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,800,95]", "background": "--affine-note-background-white", "index": "a0", "hidden": false, "displayMode": "both", "edgeless": { "style": { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box" } } }, "children": [ { "type": "block", "id": "2", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "123" } ] } }, "children": [] }, { "type": "block", "id": "3", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "456" } ] } }, "children": [] }, { "type": "block", "id": "4", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "789" } ] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/multiline.spec.ts/should-cut-work-multiple-line-init.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-multiline-should-cut-work-multiple-line/should-cut-work-multiple-line-init-actual.json 108 | // cut 109 | await page.keyboard.press(`${SHORT_KEY}+x`); > 110 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 111 | `${testInfo.title}_init.json` 112 | ); 113 | await undoByKeyboard(page); at /home/runner/work/blocksuite/blocksuite/tests/hotkey/multiline.spec.ts:110:45
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing: tests/utils/actions/edgeless.ts#L357
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-tool-icon-button').filter({ hasText: 'Square' }) - locator resolved to <edgeless-tool-icon-button role="button">…</edgeless-tool-icon-button> - attempting click action - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying at utils/actions/edgeless.ts:357 355 | .locator('edgeless-tool-icon-button') 356 | .filter({ hasText: shape }); > 357 | await squareShapeButton.click(); | ^ 358 | break; 359 | } 360 | } at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:357:31) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137:3
Lint
Process completed with exit code 1.
attachment.spec.ts:697:1 › indent attachment block to list: tests/attachment.spec.ts#L69
1) attachment.spec.ts:697:1 › indent attachment block to list ──────────────────────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 67 | await expect(slashMenu).toBeVisible(); 68 | > 69 | const fileChooser = page.waitForEvent('filechooser'); | ^ 70 | await pressEnter(page); 71 | await sleep(100); 72 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:69:30) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:705:3
attachment.spec.ts:725:1 › attachment can be dragged from note to surface top level block: tests/attachment.spec.ts#L69
2) attachment.spec.ts:725:1 › attachment can be dragged from note to surface top level block ───── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 67 | await expect(slashMenu).toBeVisible(); 68 | > 69 | const fileChooser = page.waitForEvent('filechooser'); | ^ 70 | await pressEnter(page); 71 | await sleep(100); 72 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:69:30) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:733:3
edgeless/edgeless-text.spec.ts:222:3 › edgeless text block › edgeless text should maintain selection when deleting across multiple lines: tests/utils/asserts.ts#L595
1) edgeless/edgeless-text.spec.ts:222:3 › edgeless text block › edgeless text should maintain selection when deleting across multiple lines Error: expect(received).toBe(expected) // Object.is equality Expected: "ab" Received: "b" at utils/asserts.ts:595 593 | { id } 594 | ); > 595 | expect(actual).toBe(str); | ^ 596 | } 597 | 598 | export async function assertBlockProps( at assertBlockTextContent (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:595:18) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:243:5
Build & Test
Process completed with exit code 1.
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)
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)
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)
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)
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)
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)
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 (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 (14)
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)
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 (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 (3)
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 (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 (13)
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)
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)
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)
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 (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 (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 (8)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
🎭 Playwright Run Summary
46 passed (40.6s)
🎭 Playwright Run Summary
3 skipped 43 passed (40.6s)
🎭 Playwright Run Summary
1 skipped 46 passed (45.0s)
🎭 Playwright Run Summary
46 passed (50.6s)
🎭 Playwright Run Summary
2 skipped 44 passed (53.4s)
🎭 Playwright Run Summary
47 passed (52.1s)
🎭 Playwright Run Summary
46 passed (54.5s)
🎭 Playwright Run Summary
46 passed (53.5s)
🎭 Playwright Run Summary
2 flaky hotkey/hotkey.spec.ts:421:3 › keyboard operation to move block up or down › keep cursor ──────── hotkey/multiline.spec.ts:100:1 › should cut work multiple line ───────────────────────────────── 44 passed (55.6s)
🎭 Playwright Run Summary
1 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── 2 skipped 44 passed (1.1m)
🎭 Playwright Run Summary
47 passed (1.1m)
🎭 Playwright Run Summary
4 skipped 43 passed (53.4s)
🎭 Playwright Run Summary
2 flaky attachment.spec.ts:697:1 › indent attachment block to list ───────────────────────────────────── attachment.spec.ts:725:1 › attachment can be dragged from note to surface top level block ────── 45 passed (1.0m)
🎭 Playwright Run Summary
47 passed (1.1m)
🎭 Playwright Run Summary
47 passed (1.3m)
🎭 Playwright Run Summary
10 skipped 37 passed (1.3m)
🎭 Playwright Run Summary
47 passed (1.5m)
🎭 Playwright Run Summary
1 flaky edgeless/edgeless-text.spec.ts:222:3 › edgeless text block › edgeless text should maintain selection when deleting across multiple lines 46 passed (1.6m)
🎭 Playwright Run Summary
1 skipped 46 passed (1.5m)
🎭 Playwright Run Summary
47 passed (1.7m)