fix: duplication occurs when card view is switched to embed view (#8407) #6238
test.yml
on: push
Install Dependencies
38s
Build & Test
0s
Annotations
9 errors, 20 warnings, and 20 notices
slash-menu.spec.ts:373:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow:
tests/slash-menu.spec.ts#L396
1) slash-menu.spec.ts:373:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow, Enter, Esc keys
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.slash-menu[data-testid=sub-menu-0]').locator('icon-button').nth(4)
Expected string: "true"
Received string: "false"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.slash-menu[data-testid=sub-menu-0]').locator('icon-button').nth(4)
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
394 | await type(page, '/');
395 | await pressArrowDown(page, 4);
> 396 | await expect(slashItems.nth(4)).toHaveAttribute('hover', 'true');
| ^
397 | await expect(slashItems.nth(4).locator('.text')).toHaveText([
398 | 'Other Headings',
399 | ]);
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:396:37
|
clipboard/list.spec.ts:214:1 › paste nested lists to a nested list:
tests/utils/asserts.ts#L205
1) clipboard/list.spec.ts:214:1 › paste nested lists to a nested list ────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 1
Array [
"aaa",
"bbb111",
+ "ccc",
"222",
"111",
- "222",
- "ccc",
]
at utils/asserts.ts:205
203 | });
204 | }, currentEditorIndex);
> 205 | expect(actualTexts).toEqual(texts);
| ^
206 | }
207 |
208 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:302:3
|
clipboard/markdown.spec.ts:19:1 › markdown format parse:
tests/utils/asserts.ts#L628
2) 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:628
626 | );
627 | }, currentEditorIndex);
> 628 | expect(actual).toEqual(blockTypes);
| ^
629 | }
630 |
631 | /**
at assertBlockTypes (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:628:18)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/markdown.spec.ts:56:3
|
selection/native.spec.ts:289:1 › cursor move to up and down with children block:
tests/selection/native.spec.ts#L318
1) selection/native.spec.ts:289:1 › cursor move to up and down with children block ───────────────
Error: expect(received).toBeGreaterThanOrEqual(expected)
Expected: >= 12
Received: 0
316 | const textTwo = await getInlineSelectionText(page);
317 | expect(textTwo).toBe('arrow down test 1');
> 318 | expect(indexTwo).toBeGreaterThanOrEqual(12);
| ^
319 | expect(indexTwo).toBeLessThanOrEqual(17);
320 | await page.keyboard.press('ArrowDown');
321 | const textThree = await getInlineSelectionText(page);
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:318:20
|
attachment.spec.ts:445:1 › support dragging attachment block directly:
tests/attachment.spec.ts#L69
1) attachment.spec.ts:445:1 › support dragging attachment block directly ─────────────────────────
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:453:3
|
bookmark.spec.ts:98:1 › copy url to create bookmark in page mode:
tests/utils/actions/misc.ts#L325
2) bookmark.spec.ts:98:1 › copy url to create bookmark in page mode ──────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Please remove the \"console.log\" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment."
Received: "Unexpected console message: Failed to clean text! Text mismatch expected: /ink but actual: link"
at utils/actions/misc.ts:325
323 | expect
324 | .soft('Unexpected console message: ' + message.text())
> 325 | .toBe(
| ^
326 | 'Please remove the "console.log" or declare `expectConsoleMessage` before `enterPlaygroundRoom`. It is advised not to output logs in a production environment.'
327 | );
328 | }
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:325:10)
|
bookmark.spec.ts:98:1 › copy url to create bookmark in page mode:
tests/bookmark.spec.ts#L113
2) bookmark.spec.ts:98:1 › copy url to create bookmark in page mode ──────────────────────────────
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,800,95]",
"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": "http://localhost/link"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:bookmark",
"version": 1,
"props": {
"style": "horizontal",
"url": "http://localhost",
"caption": null,
"description": null,
"icon": null,
"image": null,
"title": null,
"index": "a0",
"xywh": "[0,0,0,0]",
"rotate": 0
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/bookmark.spec.ts/copy-url-to-create-bookmark-in-page-mode-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/bookmark-copy-url-to-create-bookmark-in-page-mode/copy-url-to-create-bookmark-in-page-mode-final-actual.json
111 | await page.keyboard.press(`${SHORT_KEY}+v`);
112 | await pressEnter(page);
> 113 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
114 | `${testInfo.title}_final.json`
115 | );
116 | }
at /home/runner/work/blocksuite/blocksuite/tests/bookmark.spec.ts:113:47
|
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: 587.906982421875
Received: 623.2557792663574
Expected precision: 2
Expected difference: < 0.005
Received difference: 35.34879684448242
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/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
|
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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (42.8s)
|
🎭 Playwright Run Summary
1 flaky
slash-menu.spec.ts:373:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow, Enter, Esc keys
3 skipped
41 passed (44.6s)
|
🎭 Playwright Run Summary
45 passed (50.2s)
|
🎭 Playwright Run Summary
45 passed (45.8s)
|
🎭 Playwright Run Summary
45 passed (55.0s)
|
🎭 Playwright Run Summary
2 flaky
clipboard/list.spec.ts:214:1 › paste nested lists to a nested list ─────────────────────────────
clipboard/markdown.spec.ts:19:1 › markdown format parse ────────────────────────────────────────
1 skipped
43 passed (48.7s)
|
🎭 Playwright Run Summary
2 skipped
43 passed (50.1s)
|
🎭 Playwright Run Summary
1 flaky
selection/native.spec.ts:289:1 › cursor move to up and down with children block ────────────────
44 passed (58.0s)
|
🎭 Playwright Run Summary
45 passed (53.1s)
|
🎭 Playwright Run Summary
45 passed (54.7s)
|
🎭 Playwright Run Summary
2 flaky
attachment.spec.ts:445:1 › support dragging attachment block directly ──────────────────────────
bookmark.spec.ts:98:1 › copy url to create bookmark in page mode ───────────────────────────────
44 passed (59.1s)
|
🎭 Playwright Run Summary
1 flaky
edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly ────────────────────────
44 passed (1.2m)
|
🎭 Playwright Run Summary
10 skipped
35 passed (1.2m)
|
🎭 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
45 passed (1.1m)
|
🎭 Playwright Run Summary
45 passed (1.1m)
|
🎭 Playwright Run Summary
1 skipped
44 passed (1.4m)
|
🎭 Playwright Run Summary
45 passed (1.4m)
|
🎭 Playwright Run Summary
45 passed (1.5m)
|
🎭 Playwright Run Summary
1 skipped
44 passed (1.6m)
|