refactor(editor): refactor page note empty checker #22089
Annotations
1 error, 1 warning, and 1 notice
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L776
1) edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ───────────────
Error: expect(received).toBeCloseTo(expected, precision)
Expected: 192
Received: 92
Expected precision: 0
Expected difference: < 0.5
Received difference: 100
at utils/asserts.ts:776
774 | expect(a.y).toBeCloseTo(b.y, 0);
775 | expect(a.w).toBeCloseTo(b.w, 0);
> 776 | expect(a.h).toBeCloseTo(b.h, 0);
| ^
777 | }
778 |
779 | export function assertDOMRectEqual(a: DOMRect, b: DOMRect) {
at assertRectEqual (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:776:15)
at assertNoteRectEqual (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:769:3)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/resize.spec.ts:188:3
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run playwright tests
1 flaky
edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ────────────────
12 skipped
86 passed (2.2m)
|
Loading