chore: remove duplicate frame tests (#8203) #5461
Annotations
2 errors, 3 warnings, and 1 notice
tests/utils/asserts.ts#L742
1) hotkey.spec.ts:928:1 › should cut work multiple line ──────────────────────────────────────────
Error: <affine:note
prop:background="--affine-note-background-blue"
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 0,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-sticker",
},
}
}
prop:hidden={false}
prop:index="a0"
>
<affine:paragraph
prop:text="123"
prop:type="text"
/>
<affine:paragraph
prop:text="456"
prop:type="text"
/>
<affine:paragraph
prop:text="789"
prop:type="text"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 9
@@ -13,9 +13,17 @@
}
prop:hidden={false}
prop:index="a0"
>
<affine:paragraph
- prop:text="19"
+ prop:text="123"
+ prop:type="text"
+ />
+ <affine:paragraph
+ prop:text="456"
+ prop:type="text"
+ />
+ <affine:paragraph
+ prop:text="789"
prop:type="text"
/>
</affine:note>
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:938:3
|
tests/utils/asserts.ts#L209
2) 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
|
|
|
|
|
This job succeeded
Loading