refactor: migrating legacy tools #6628
Annotations
2 errors, 1 warning, and 1 notice
tests/edgeless/note/drag-handle.spec.ts#L148
1) edgeless/note/drag-handle.spec.ts:122:1 › drag handle should work across multiple notes ───────
Error: Timed out 5000ms waiting for expect(locator).toBeHidden()
Locator: locator('.affine-drag-handle-container')
Expected: hidden
Received: visible
Call log:
- expect.toBeHidden with timeout 5000ms
- waiting for locator('.affine-drag-handle-container')
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div class="affine-drag-handle-container">…</div>
- unexpected value "visible"
146 | await dragHandleFromBlockToBlockBottomById(page, '3', '4');
147 | await waitNextFrame(page);
> 148 | await expect(page.locator('.affine-drag-handle-container')).toBeHidden();
| ^
149 | await assertRichTexts(page, ['456', '123', '789', '000']);
150 |
151 | await expect(page.locator('selected > *')).toHaveCount(0);
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/drag-handle.spec.ts:148:63
|
tests/edgeless/note/note.spec.ts#L271
2) edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly ───────────────────────
Error: expect(received).toBeCloseTo(expected)
Expected: 446.51165771484375
Received: 517.2093048095703
Expected precision: 2
Expected difference: < 0.005
Received difference: 70.69764709472656
269 | const firstNoteBox = await firstNote.boundingBox();
270 | const secondNoteBox = await secondNote.boundingBox();
> 271 | expect(firstNoteBox!.width).toBeCloseTo(secondNoteBox!.width);
| ^
272 | expect(firstNoteBox!.height).toBeCloseTo(secondNoteBox!.height);
273 | });
274 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:271:31
|
|
|
This job succeeded
Loading