Skip to content

feat: support edgeless tidy up #6606

feat: support edgeless tidy up

feat: support edgeless tidy up #6606

Triggered via pull request October 14, 2024 10:48
Status Success
Total duration 4m 26s
Artifacts

test.yml

on: pull_request
Install Dependencies
1m 22s
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: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
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
format-bar.spec.ts:237:1 › should format quick bar be able to change background color: tests/format-bar.spec.ts#L275
1) format-bar.spec.ts:237:1 › should format quick bar be able to change background color ───────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('.affine-format-bar-widget').getByTestId('unset') - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - 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 visible - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #4 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #5 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #6 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #7 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #8 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #9 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #10 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #11 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #12 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #13 - waiting 500ms 273 | 274 | await expect(highlight.defaultColorBtn).toBeVisible(); > 275 | await highlight.defaultColorBtn.click(); | ^ 276 | 277 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( 278 | `${testInfo.title}_default_color.json` at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:275:35
edgeless/paste-block.spec.ts:67:3 › pasting blocks › pasting a edgeless block: tests/edgeless/paste-block.spec.ts#L92
1) edgeless/paste-block.spec.ts:67:3 › pasting blocks › pasting a edgeless block ───────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('affine-edgeless-text[data-block-id="12"]').locator('[data-block-id]').first() - Expected string - 1 + Received string + 17 - hello + + + + + ello + + + + + + + + + + + + Call log: - expect.toContainText with timeout 5000ms - waiting for locator('affine-edgeless-text[data-block-id="12"]').locator('[data-block-id]').first() - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " 90 | await expect(newText).toBeVisible(); 91 | const blocks = newText.locator('[data-block-id]'); > 92 | await expect(blocks.nth(0)).toContainText('hello'); | ^ 93 | await expect(blocks.nth(1).locator('.resizable-img')).toBeVisible(); 94 | await expect(blocks.nth(2)).toContainText('world'); 95 | await expect(blocks.nth(3)).toContainText('code'); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/paste-block.spec.ts:92:33
edgeless/note/drag-handle.spec.ts:122:1 › drag handle should work across multiple notes: tests/edgeless/note/drag-handle.spec.ts#L148
1) edgeless/note/drag-handle.spec.ts:122:1 › drag handle should work across multiple notes ─────── Error: Timed out 5000ms waiting for expect(locator).toBeHidden() Locator: locator('.affine-drag-handle-container') Expected: hidden Received: visible Call log: - expect.toBeHidden with timeout 5000ms - waiting for locator('.affine-drag-handle-container') - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" 146 | await dragHandleFromBlockToBlockBottomById(page, '3', '4'); 147 | await waitNextFrame(page); > 148 | await expect(page.locator('.affine-drag-handle-container')).toBeHidden(); | ^ 149 | await assertRichTexts(page, ['456', '123', '789', '000']); 150 | 151 | await expect(page.locator('selected > *')).toHaveCount(0); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/drag-handle.spec.ts:148:63
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 (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 (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 (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 (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 (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 (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 (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 (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 (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)
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 (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 (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 (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
3 skipped 43 passed (38.6s)
🎭 Playwright Run Summary
46 passed (41.3s)
🎭 Playwright Run Summary
1 skipped 46 passed (42.0s)
🎭 Playwright Run Summary
46 passed (52.9s)
🎭 Playwright Run Summary
4 skipped 43 passed (52.8s)
🎭 Playwright Run Summary
2 skipped 44 passed (53.7s)
🎭 Playwright Run Summary
46 passed (51.0s)
🎭 Playwright Run Summary
1 flaky attachment.spec.ts:697:1 › indent attachment block to list ───────────────────────────────────── 46 passed (56.6s)
🎭 Playwright Run Summary
47 passed (52.4s)
🎭 Playwright Run Summary
46 passed (52.8s)
🎭 Playwright Run Summary
46 passed (54.4s)
🎭 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
1 flaky format-bar.spec.ts:237:1 › should format quick bar be able to change background color ────────── 45 passed (1.2m)
🎭 Playwright Run Summary
1 flaky edgeless/paste-block.spec.ts:67:3 › pasting blocks › pasting a edgeless block ────────────────── 46 passed (1.2m)
🎭 Playwright Run Summary
2 skipped 45 passed (1.4m)
🎭 Playwright Run Summary
47 passed (1.3m)
🎭 Playwright Run Summary
1 flaky edgeless/note/drag-handle.spec.ts:122:1 › drag handle should work across multiple notes ──────── 10 skipped 36 passed (1.4m)
🎭 Playwright Run Summary
47 passed (1.6m)
🎭 Playwright Run Summary
1 skipped 46 passed (1.5m)
🎭 Playwright Run Summary
1 skipped 46 passed (1.6m)