feat(edgeless): store real color values in edgeless #9124
Annotations
10 errors, 1 warning, and 1 notice
tests/utils/asserts.ts#L1120
1) edgeless/brush.spec.ts:77:1 › add brush element with color ────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:91:3
|
tests/utils/asserts.ts#L1120
1) edgeless/brush.spec.ts:77:1 › add brush element with color ────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:91:3
|
tests/utils/asserts.ts#L1120
1) edgeless/brush.spec.ts:77:1 › add brush element with color ────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:91:3
|
tests/utils/asserts.ts#L1120
1) edgeless/brush.spec.ts:77:1 › add brush element with color ────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:91:3
|
tests/utils/asserts.ts#L1120
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ──────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:118:3
|
tests/utils/asserts.ts#L1120
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ──────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:118:3
|
tests/utils/asserts.ts#L1120
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ──────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:118:3
|
tests/utils/asserts.ts#L1120
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ──────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:118:3
|
tests/utils/asserts.ts#L1120
3) edgeless/brush.spec.ts:121:1 › add brush element with different size ──────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:147:3
|
tests/utils/asserts.ts#L1120
3) edgeless/brush.spec.ts:121:1 › add brush element with different size ──────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:147:3
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
3 failed
edgeless/brush.spec.ts:77:1 › add brush element with color ─────────────────────────────────────
edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ───────────
edgeless/brush.spec.ts:121:1 › add brush element with different size ───────────────────────────
46 passed (1.8m)
|
The logs for this run have expired and are no longer available.
Loading