fix(edgeless): multi parent container of node of mindmap (#8317) #5913
Annotations
7 errors and 1 notice
tests/utils/asserts.ts#L205
1) hotkey/hotkey.spec.ts:397: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: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/hotkey/hotkey.spec.ts:416:5
|
tests/utils/asserts.ts#L205
1) hotkey/hotkey.spec.ts:397:3 › keyboard operation to move block up or down › with indent ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "foo",
"hello",
"world",
+ "foo",
]
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/hotkey/hotkey.spec.ts:416:5
|
tests/utils/asserts.ts#L205
1) hotkey/hotkey.spec.ts:397:3 › keyboard operation to move block up or down › with indent ───────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "foo",
"hello",
"world",
+ "foo",
]
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/hotkey/hotkey.spec.ts:416:5
|
tests/utils/asserts.ts#L205
1) hotkey/hotkey.spec.ts:397:3 › keyboard operation to move block up or down › with indent ───────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "foo",
"hello",
"world",
+ "foo",
]
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/hotkey/hotkey.spec.ts:416:5
|
tests/hotkey/hotkey.spec.ts#L267
2) hotkey/hotkey.spec.ts:258:1 › should cut work single line ─────────────────────────────────────
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": "hello"
}
]
}
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/should-cut-work-single-line-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-should-cut-work-single-line/should-cut-work-single-line-init-actual.json
265 | // cut
266 | await page.keyboard.press(`${SHORT_KEY}+x`);
> 267 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
268 | `${testInfo.title}_init.json`
269 | );
270 | await undoByKeyboard(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:267:45
|
tests/hotkey/multiline.spec.ts#L110
3) hotkey/multiline.spec.ts:100:1 › should cut work multiple line ────────────────────────────────
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": "123"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
}
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/multiline.spec.ts/should-cut-work-multiple-line-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-multiline-should-cut-work-multiple-line/should-cut-work-multiple-line-init-actual.json
108 | // cut
109 | await page.keyboard.press(`${SHORT_KEY}+x`);
> 110 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
111 | `${testInfo.title}_init.json`
112 | );
113 | await undoByKeyboard(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/multiline.spec.ts:110:45
|
|
1 failed
hotkey/hotkey.spec.ts:397:3 › keyboard operation to move block up or down › with indent ────────
2 flaky
hotkey/hotkey.spec.ts:258:1 › should cut work single line ──────────────────────────────────────
hotkey/multiline.spec.ts:100:1 › should cut work multiple line ─────────────────────────────────
41 passed (1.0m)
|
This job failed
Loading