fix: duplication occurs when card view is switched to embed view #6237
Annotations
1 error, 1 warning, and 1 notice
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: 481.86041259765625
Received: 587.9069938659668
Expected precision: 2
Expected difference: < 0.005
Received difference: 106.04658126831055
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
|
|
|
This job succeeded
Loading