feat(edgeless): store real color values in edgeless #9116
Annotations
6 errors, 1 warning, and 1 notice
Run playwright test:
tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ──────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:305:3
|
Run playwright test:
tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ──────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:305:3
|
Run playwright test:
tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ──────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:305:3
|
Run playwright test:
tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ──────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:305:3
|
Run playwright test:
tests/utils/asserts.ts#L888
2) 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:888
886 | expect(a.y).toBeCloseTo(b.y, 0);
887 | expect(a.w).toBeCloseTo(b.w, 0);
> 888 | expect(a.h).toBeCloseTo(b.h, 0);
| ^
889 | }
890 |
891 | export function assertDOMRectEqual(a: DOMRect, b: DOMRect) {
at assertRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:888:15)
at assertNoteRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:881:3)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/resize.spec.ts:188:3
|
Run playwright test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run playwright test
1 failed
edgeless/note/note.spec.ts:299:1 › change note color ───────────────────────────────────────────
1 flaky
edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ────────────────
2 skipped
45 passed (1.1m)
|
Loading