feat(edgeless): store real color values in edgeless #9103
Annotations
10 errors, 1 warning, and 1 notice
Run playwright test:
tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke 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/shape.spec.ts:203:3
|
Run playwright test:
tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke 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/shape.spec.ts:203:3
|
Run playwright test:
tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke 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/shape.spec.ts:203:3
|
Run playwright test:
tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke 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/shape.spec.ts:203:3
|
Run playwright test:
tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ─────────────────────────────────────────────
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/shape.spec.ts:563:3
|
Run playwright test:
tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ─────────────────────────────────────────────
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/shape.spec.ts:563:3
|
Run playwright test:
tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ─────────────────────────────────────────────
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/shape.spec.ts:563:3
|
Run playwright test:
tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ─────────────────────────────────────────────
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/shape.spec.ts:563:3
|
Run playwright test:
tests/utils/actions/edgeless.ts#L369
3) edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ─────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-slide-menu edgeless-tool-icon-button').filter({ hasText: 'Square' })
- locator resolved to <edgeless-tool-icon-button role="button">…</edgeless-tool-icon-button>
- attempting click action
2 × waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element was detached from the DOM, retrying
at utils/actions/edgeless.ts:369
367 | .locator('edgeless-slide-menu edgeless-tool-icon-button')
368 | .filter({ hasText: shape });
> 369 | await squareShapeButton.click();
| ^
370 | break;
371 | }
372 | }
at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:369:31)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137: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
2 failed
edgeless/shape.spec.ts:184:1 › change shape stroke color ───────────────────────────────────────
edgeless/shape.spec.ts:542:1 › change shape style ──────────────────────────────────────────────
1 flaky
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ──────────────────────────
3 skipped
43 passed (1.5m)
|
Loading