Skip to content

fix: better scroll to target #6261

fix: better scroll to target

fix: better scroll to target #6261

Triggered via pull request September 21, 2024 08:20
Status Success
Total duration 4m 16s
Artifacts

test.yml

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

Annotations

5 errors, 20 warnings, and 20 notices
attachment.spec.ts:406:1 › should attachment can be deleted: tests/attachment.spec.ts#L69
1) attachment.spec.ts:406:1 › should attachment can be deleted ─────────────────────────────────── 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:412:3
attachment.spec.ts:636:1 › cancel file picker with input element resolves: tests/attachment.spec.ts#L656
2) attachment.spec.ts:636:1 › cancel file picker with input element resolves ───────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 654 | await expect(slashMenu).toBeVisible(); 655 | > 656 | const fileChooser = page.waitForEvent('filechooser'); | ^ 657 | await pressEnter(page); 658 | const inputFile = page.locator("input[type='file']"); 659 | await expect(inputFile).toHaveCount(1); at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:656:28
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 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
edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly: tests/edgeless/note/note.spec.ts#L272
1) edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly ─────────────────────── Error: expect(received).toBeCloseTo(expected) Expected: 446.51165771484375 Received: 552.5580902099609 Expected precision: 2 Expected difference: < 0.005 Received difference: 106.04643249511719 270 | const firstNoteBox = await firstNote.boundingBox(); 271 | const secondNoteBox = await secondNote.boundingBox(); > 272 | expect(firstNoteBox!.width).toBeCloseTo(secondNoteBox!.width); | ^ 273 | expect(firstNoteBox!.height).toBeCloseTo(secondNoteBox!.height); 274 | }); 275 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:272:31
edgeless/paste-block.spec.ts:39:3 › pasting blocks › pasting a note block: tests/edgeless/paste-block.spec.ts#L63
2) edgeless/paste-block.spec.ts:39:3 › pasting blocks › pasting a note block ───────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('affine-edgeless-note[data-block-id="10"]').locator('[data-block-id]').nth(1).locator('.resizable-img') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('affine-edgeless-note[data-block-id="10"]').locator('[data-block-id]').nth(1).locator('.resizable-img') 61 | const blocks = newNote.locator('[data-block-id]'); 62 | await expect(blocks.nth(0)).toContainText('hello'); > 63 | await expect(blocks.nth(1).locator('.resizable-img')).toBeVisible(); | ^ 64 | await expect(blocks.nth(2)).toContainText('world'); 65 | await expect(blocks.nth(3)).toContainText('code'); 66 | }); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/paste-block.spec.ts:63:59
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 (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 (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)
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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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
4 skipped 41 passed (43.0s)
🎭 Playwright Run Summary
45 passed (47.9s)
🎭 Playwright Run Summary
2 skipped 43 passed (50.3s)
🎭 Playwright Run Summary
1 skipped 45 passed (41.7s)
🎭 Playwright Run Summary
45 passed (55.2s)
🎭 Playwright Run Summary
45 passed (55.0s)
🎭 Playwright Run Summary
45 passed (47.4s)
🎭 Playwright Run Summary
45 passed (53.1s)
🎭 Playwright Run Summary
45 passed (53.3s)
🎭 Playwright Run Summary
45 passed (1.1m)
🎭 Playwright Run Summary
2 flaky attachment.spec.ts:406:1 › should attachment can be deleted ──────────────────────────────────── attachment.spec.ts:636:1 › cancel file picker with input element resolves ────────────────────── 44 passed (59.3s)
🎭 Playwright Run Summary
1 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── 2 skipped 42 passed (1.1m)
🎭 Playwright Run Summary
3 skipped 42 passed (42.8s)
🎭 Playwright Run Summary
10 skipped 35 passed (1.2m)
🎭 Playwright Run Summary
45 passed (1.1m)
🎭 Playwright Run Summary
2 flaky edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly ──────────────────────── edgeless/paste-block.spec.ts:39:3 › pasting blocks › pasting a note block ────────────────────── 43 passed (1.3m)
🎭 Playwright Run Summary
1 skipped 44 passed (1.4m)
🎭 Playwright Run Summary
45 passed (1.5m)
🎭 Playwright Run Summary
45 passed (1.4m)
🎭 Playwright Run Summary
1 skipped 44 passed (1.6m)