fix: duplication occurs when card view is switched to embed view (#8407) #6238
Annotations
3 errors, 1 warning, and 1 notice
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
|
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)
|
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
|
|
|
This job succeeded
Loading