chore: fix flaky test (#4793) #19
Annotations
2 errors and 1 notice
tests/utils/asserts.ts#L592
1) selection/block.spec.ts:1134:1 › should not draw rect for sub selected blocks when entering tab key
Error: <affine:page>
<affine:note
prop:background="--affine-background-secondary-color"
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:paragraph>
</affine:note>
</affine:page>
- Expected - 5
+ Received + 5
@@ -5,15 +5,15 @@
prop:index="a0"
>
<affine:paragraph
prop:text="123"
prop:type="text"
- />
+ >
- <affine:paragraph
+ <affine:paragraph
- prop:text="456"
+ prop:text="456"
- prop:type="text"
+ prop:type="text"
- >
+ />
<affine:paragraph
prop:text="789"
prop:type="text"
/>
</affine:paragraph>
at utils/asserts.ts:592
590 | printFunctionName: false,
591 | });
> 592 | expect(snapshot.trimStart(), formattedJSX).toEqual(formattedJSX);
| ^
593 | }
594 |
595 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:592:46)
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:1152:3
|
tests/utils/asserts.ts#L172
2) selection/native.spec.ts:628:1 › select text in the same line with dragging rightward and press enter create block
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 3
Array [
"123",
"456",
- "789",
- "abc",
+ "",
+ "",
+ "abc789",
]
at utils/asserts.ts:172
170 | });
171 | }, currentEditorIndex);
> 172 | expect(actualTexts).toEqual(texts);
| ^
173 | }
174 |
175 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:172:23)
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:648:3
|
|
The logs for this run have expired and are no longer available.
Loading