Skip to content

feat(blocks): microsheet-block init #7690

feat(blocks): microsheet-block init

feat(blocks): microsheet-block init #7690

Triggered via pull request November 18, 2024 08:55
Status Success
Total duration 4m 19s
Artifacts

test.yml

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

Annotations

6 errors, 20 warnings, and 20 notices
code/copy-paste.spec.ts:24:1 › keyboard selection and copy paste: tests/code/copy-paste.spec.ts#L38
1) code/copy-paste.spec.ts:24:1 › keyboard selection and copy paste ────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "useuse" Received: "123use" 36 | 37 | const content = await getInlineSelectionText(page); > 38 | expect(content).toBe('useuse'); | ^ 39 | 40 | await assertRichTextInlineRange(page, 0, 3, 0); 41 | }); at /home/runner/work/blocksuite/blocksuite/tests/code/copy-paste.spec.ts:38:19
hotkey/hotkey.spec.ts:274:1 › should cut work single line: tests/hotkey/hotkey.spec.ts#L283
1) hotkey/hotkey.spec.ts:274:1 › should cut work single 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,498,92]", "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": "hello" } ] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/should-cut-work-single-line-init.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-should-cut-work-single-line/should-cut-work-single-line-init-actual.json 281 | // cut 282 | await page.keyboard.press(`${SHORT_KEY}+x`); > 283 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 284 | `${testInfo.title}_init.json` 285 | ); 286 | await undoByKeyboard(page); at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:283:45
selection/native.spec.ts:265:1 › cursor move to up and down with children block: tests/selection/native.spec.ts#L295
1) selection/native.spec.ts:265: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:614:1 › press backspace after bookmark block can select bookmark block: tests/attachment.spec.ts#L69
1) attachment.spec.ts:614:1 › press backspace after bookmark block can select bookmark 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:624:3
edgeless/paste-block.spec.ts:39:3 › pasting blocks › pasting a note block: tests/edgeless/paste-block.spec.ts#L62
1) edgeless/paste-block.spec.ts:39:3 › pasting blocks › pasting a note block ───────────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('affine-edgeless-note[data-block-id="10"]').locator('[data-block-id]').first() - Expected string - 1 + Received string + 21 - hello + + + + + ​ + + + Type '/' for commands + + + + + + + + + + + + + Call log: - expect.toContainText with timeout 5000ms - waiting for locator('affine-edgeless-note[data-block-id="10"]').locator('[data-block-id]').first() - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " ​ Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " ​ Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " ​ Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " ​ Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " ​ Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " ​ Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " ​ Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " ​ Type '/' for commands " - locator resolved to <affine-paragraph data-block-id=
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-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 - 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 was detached from the DOM, retrying at utils/actions/edgeless.ts:357 355 | .locator('edgeless-slide-menu 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
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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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)
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 (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
1 skipped 46 passed (46.0s)
🎭 Playwright Run Summary
47 passed (47.3s)
🎭 Playwright Run Summary
3 skipped 44 passed (45.1s)
🎭 Playwright Run Summary
4 skipped 44 passed (54.3s)
🎭 Playwright Run Summary
1 flaky code/copy-paste.spec.ts:24:1 › keyboard selection and copy paste ─────────────────────────────── 1 skipped 46 passed (48.7s)
🎭 Playwright Run Summary
47 passed (54.7s)
🎭 Playwright Run Summary
47 passed (1.0m)
🎭 Playwright Run Summary
1 skipped 46 passed (56.4s)
🎭 Playwright Run Summary
1 flaky hotkey/hotkey.spec.ts:274:1 › should cut work single line ────────────────────────────────────── 46 passed (59.3s)
🎭 Playwright Run Summary
1 flaky selection/native.spec.ts:265:1 › cursor move to up and down with children block ──────────────── 46 passed (1.0m)
🎭 Playwright Run Summary
1 flaky attachment.spec.ts:614:1 › press backspace after bookmark block can select bookmark block ────── 2 skipped 45 passed (57.6s)
🎭 Playwright Run Summary
1 flaky edgeless/paste-block.spec.ts:39:3 › pasting blocks › pasting a note block ────────────────────── 1 skipped 45 passed (1.2m)
🎭 Playwright Run Summary
1 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── 2 skipped 44 passed (1.2m)
🎭 Playwright Run Summary
47 passed (1.1m)
🎭 Playwright Run Summary
6 skipped 41 passed (1.4m)
🎭 Playwright Run Summary
10 skipped 37 passed (1.3m)
🎭 Playwright Run Summary
47 passed (1.3m)
🎭 Playwright Run Summary
1 skipped 46 passed (1.6m)
🎭 Playwright Run Summary
1 skipped 46 passed (1.6m)
🎭 Playwright Run Summary
47 passed (1.7m)