Skip to content

feat(blocks): code block new design #19260

feat(blocks): code block new design

feat(blocks): code block new design #19260

Triggered via pull request May 17, 2024 10:05
Status Success
Total duration 6m 16s
Artifacts

test.yaml

on: pull_request
Node.js Environment Compatibility
55s
Node.js Environment Compatibility
Unit test
1m 20s
Unit test
Integration test
44s
Integration test
Inline Editor E2E test
50s
Inline Editor E2E test
Matrix: Playground E2E test
Fit to window
Zoom out
Zoom in

Annotations

5 errors, 14 warnings, and 11 notices
clipboard.spec.ts:762:1 › pasting into empty list should not convert the list into paragraph: tests/utils/asserts.ts#L210
1) clipboard.spec.ts:762:1 › pasting into empty list should not convert the list into paragraph ── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ - "test", + "13", ] at utils/asserts.ts:210 208 | }); 209 | }, currentEditorIndex); > 210 | expect(actualTexts).toEqual(texts); | ^ 211 | } 212 | 213 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:210:23) at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:773:5
linked-page.spec.ts:420:3 › reference node › should create reference node works: tests/utils/actions/misc.ts#L289
1) linked-page.spec.ts:420:3 › reference node › should create reference node works ─────────────── Error: expect(received).toBe(expected) // Object.is equality - Expected - 1 + Received + 4 - Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment. + Unexpected console message: BlockSuiteError: val does not exist + at assertExists (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/global/src/utils/assert.ts:1311:11) + at get rangeManager (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/view/utils/range-binding.ts:4175:5) + at RangeBinding._onNativeSelectionChanged (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/framework/block-std/src/view/utils/range-binding.ts:3848:60) at utils/actions/misc.ts:289 287 | expect 288 | .soft('Unexpected console message: ' + message.text()) > 289 | .toBe( | ^ 290 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.' 291 | ); 292 | } at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:289:10)
edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown: tests/edgeless/basic.spec.ts#L187
1) edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown Error: expect.toBeVisible: Error: strict mode violation: locator('.affine-tooltip') resolved to 2 elements: 1) <div role="tooltip" class="affine-tooltip">…</div> aka getByRole('tooltip', { name: 'Select V' }) 2) <div role="tooltip" class="affine-tooltip">…</div> aka getByRole('tooltip', { name: 'More' }) Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('.affine-tooltip') 185 | 186 | await page.mouse.move(moreButtonBox.x + 10, moreButtonBox.y + 10); > 187 | await expect(tooltip).toBeVisible(); | ^ 188 | 189 | await page.mouse.click(moreButtonBox.x + 10, moreButtonBox.y + 10); 190 | await expect(tooltip).toBeHidden(); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/basic.spec.ts:187:25
edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges: tests/edgeless/selection.spec.ts#L1
1) edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges Test timeout of 40000ms exceeded.
edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges: tests/utils/actions/drag.ts#L21
1) edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges Error: mouse.move: Test timeout of 40000ms exceeded. at utils/actions/drag.ts:21 19 | await page.mouse.move(x1, y1); 20 | await page.mouse.down(); > 21 | await page.mouse.move(x2, y2, { steps }); | ^ 22 | await options?.beforeMouseUp?.(); 23 | await page.mouse.up(); 24 | } at dragBetweenCoords (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:21:20) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/selection.spec.ts:284:3
🎭 Playwright Run Summary
14 passed (24.6s)
🎭 Playwright Run Summary
1 flaky clipboard.spec.ts:762:1 › pasting into empty list should not convert the list into paragraph ─── 17 skipped 54 passed (3.3m)
🎭 Playwright Run Summary
6 skipped 66 passed (3.6m)
🎭 Playwright Run Summary
1 flaky linked-page.spec.ts:420:3 › reference node › should create reference node works ──────────────── 2 skipped 68 passed (3.8m)
🎭 Playwright Run Summary
2 skipped 69 passed (3.9m)
🎭 Playwright Run Summary
2 skipped 69 passed (3.8m)
🎭 Playwright Run Summary
1 skipped 70 passed (4.0m)
🎭 Playwright Run Summary
1 flaky edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown 3 skipped 68 passed (4.2m)
🎭 Playwright Run Summary
1 flaky edgeless/selection.spec.ts:236:1 › should auto panning when selection rectangle reaches viewport edges 3 skipped 67 passed (4.7m)
🎭 Playwright Run Summary
6 skipped 66 passed (5.0m)
🎭 Playwright Run Summary
2 skipped 69 passed (4.8m)
Integration test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Inline Editor E2E test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Node.js Environment Compatibility
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Unit test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (8)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (7)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (9)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (6)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Playground E2E test (5)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.