chore: remove duplicate frame tests #5460
test.yml
on: pull_request
Install Dependencies
43s
Build & Test
0s
Annotations
11 errors, 20 warnings, and 20 notices
clipboard/markdown.spec.ts:19:1 › markdown format parse:
tests/utils/asserts.ts#L632
1) clipboard/markdown.spec.ts:19:1 › markdown format parse ───────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 1
@@ -1,6 +1,7 @@
Array [
+ "text",
"h1",
"h2",
"h3",
"h4",
"h5",
@@ -8,8 +9,6 @@
"todo",
"todo",
"todo",
"bulleted",
"bulleted",
- "numbered",
- "quote",
]
at utils/asserts.ts:632
630 | );
631 | }, currentEditorIndex);
> 632 | expect(actual).toEqual(blockTypes);
| ^
633 | }
634 |
635 | /**
at assertBlockTypes (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:632:18)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/markdown.spec.ts:56:3
|
hotkey.spec.ts:1003:1 › should ctrl+enter create new block:
tests/utils/asserts.ts#L209
1) hotkey.spec.ts:1003:1 › should ctrl+enter create new block ────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
- "1",
- "23",
+ "12",
+ "3",
]
at utils/asserts.ts:209
207 | });
208 | }, currentEditorIndex);
> 209 | expect(actualTexts).toEqual(texts);
| ^
210 | }
211 |
212 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:209:23)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1013:3
|
hotkey.spec.ts:1313:3 › keyboard operation to move block up or down › with indent:
tests/utils/asserts.ts#L209
2) hotkey.spec.ts:1313:3 › keyboard operation to move block up or down › with indent ─────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "foo",
"hello",
"world",
+ "foo",
]
at utils/asserts.ts:209
207 | });
208 | }, currentEditorIndex);
> 209 | expect(actualTexts).toEqual(texts);
| ^
210 | }
211 |
212 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:209:23)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1330:5
|
selection/native.spec.ts:436:1 › cursor move to up and down with children block:
tests/selection/native.spec.ts#L465
1) selection/native.spec.ts:436:1 › cursor move to up and down with children block ───────────────
Error: expect(received).toBeGreaterThanOrEqual(expected)
Expected: >= 12
Received: 0
463 | const textTwo = await getInlineSelectionText(page);
464 | expect(textTwo).toBe('arrow down test 1');
> 465 | expect(indexTwo).toBeGreaterThanOrEqual(12);
| ^
466 | expect(indexTwo).toBeLessThanOrEqual(17);
467 | await page.keyboard.press('ArrowDown');
468 | const textThree = await getInlineSelectionText(page);
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:465:20
|
attachment.spec.ts:287:1 › should rename attachment works:
tests/attachment.spec.ts#L69
1) attachment.spec.ts:287:1 › should rename attachment works ─────────────────────────────────────
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:305:3
|
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing:
tests/utils/actions/edgeless.ts#L356
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:356
354 | .locator('edgeless-tool-icon-button')
355 | .filter({ hasText: shape });
> 356 | await squareShapeButton.click();
| ^
357 | break;
358 | }
359 | }
at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:356:31)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137:3
|
format-bar.spec.ts:316:1 › should format quick bar be able to change background color:
tests/format-bar.spec.ts#L436
1) format-bar.spec.ts:316:1 › should format quick bar be able to change background color ─────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.affine-format-bar-widget').getByTestId('unset')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.affine-format-bar-widget').getByTestId('unset')
- locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action>
- unexpected value "hidden"
- locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action>
- unexpected value "hidden"
- locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action>
- unexpected value "hidden"
- locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action>
- unexpected value "hidden"
- locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action>
- unexpected value "hidden"
- locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action>
- unexpected value "hidden"
- locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action>
- unexpected value "hidden"
- locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action>
- unexpected value "hidden"
- locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action>
- unexpected value "hidden"
434 | );
435 |
> 436 | await expect(highlight.defaultColorBtn).toBeVisible();
| ^
437 | await highlight.defaultColorBtn.click();
438 |
439 | await assertStoreMatchJSX(
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:436:43
|
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: 623.255859375
Received: 693.9534683227539
Expected precision: 2
Expected difference: < 0.005
Received difference: 70.6976089477539
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
|
edgeless/connector/label.spec.ts:306:3 › connector label with straight shape › should exit the label editing state when pressing `Mod-Enter` or `Escape`:
tests/utils/asserts.ts#L230
1) edgeless/connector/label.spec.ts:306:3 › connector label with straight shape › should exit the label editing state when pressing `Mod-Enter` or `Escape`
Error: expect(received).toEqual(expected) // deep equality
Expected: "b"
Received: "a"
at utils/asserts.ts:230
228 | return inlineEditor?.yText.toString();
229 | });
> 230 | expect(actualTexts).toEqual(text);
| ^
231 | }
232 |
233 | export async function assertRichImage(page: Page, count: number) {
at assertEdgelessCanvasText (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:230:23)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/connector/label.spec.ts:323:5
|
edgeless/selection/selection.spec.ts:198:1 › should auto panning when selection rectangle reaches viewport edges:
tests/edgeless/selection/selection.spec.ts#L361
1) edgeless/selection/selection.spec.ts:198:1 › should auto panning when selection rectangle reaches viewport edges
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.affine-edgeless-selected-rect')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.affine-edgeless-selected-rect')
359 | selectedRect = page.locator(selectedRectClass);
360 | await page.waitForTimeout(300);
> 361 | await expect(selectedRect).toBeVisible();
| ^
362 | });
363 |
364 | test('should also update dragging area when viewport changes', async ({
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/selection/selection.spec.ts:361:30
|
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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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
41 passed (40.0s)
|
🎭 Playwright Run Summary
4 skipped
40 passed (44.3s)
|
🎭 Playwright Run Summary
44 passed (45.5s)
|
🎭 Playwright Run Summary
1 flaky
clipboard/markdown.spec.ts:19:1 › markdown format parse ────────────────────────────────────────
1 skipped
43 passed (45.4s)
|
🎭 Playwright Run Summary
1 skipped
43 passed (51.5s)
|
🎭 Playwright Run Summary
44 passed (50.6s)
|
🎭 Playwright Run Summary
2 flaky
hotkey.spec.ts:1003:1 › should ctrl+enter create new block ─────────────────────────────────────
hotkey.spec.ts:1313:3 › keyboard operation to move block up or down › with indent ──────────────
1 skipped
41 passed (54.3s)
|
🎭 Playwright Run Summary
44 passed (53.9s)
|
🎭 Playwright Run Summary
1 flaky
selection/native.spec.ts:436:1 › cursor move to up and down with children block ────────────────
43 passed (55.9s)
|
🎭 Playwright Run Summary
1 flaky
attachment.spec.ts:287:1 › should rename attachment works ──────────────────────────────────────
44 passed (56.3s)
|
🎭 Playwright Run Summary
1 flaky
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ──────────────────────────
2 skipped
41 passed (1.1m)
|
🎭 Playwright Run Summary
44 passed (53.9s)
|
🎭 Playwright Run Summary
1 flaky
format-bar.spec.ts:316:1 › should format quick bar be able to change background color ──────────
43 passed (1.1m)
|
🎭 Playwright Run Summary
10 skipped
34 passed (1.1m)
|
🎭 Playwright Run Summary
44 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 ──────────────────────
42 passed (1.3m)
|
🎭 Playwright Run Summary
44 passed (1.3m)
|
🎭 Playwright Run Summary
1 flaky
edgeless/connector/label.spec.ts:306:3 › connector label with straight shape › should exit the label editing state when pressing `Mod-Enter` or `Escape`
43 passed (1.5m)
|
🎭 Playwright Run Summary
1 flaky
edgeless/selection/selection.spec.ts:198:1 › should auto panning when selection rectangle reaches viewport edges
1 skipped
42 passed (1.7m)
|
🎭 Playwright Run Summary
44 passed (1.6m)
|