feat(edgeless): store real color values in edgeless #9117
Annotations
9 errors, 1 warning, and 1 notice
tests/utils/asserts.ts#L742
1) clipboard/list.spec.ts:423:1 › should copy and paste of database work ─────────────────────────
Error: <affine:page>
<affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:note>
</affine:page>
expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
@@ -1,13 +1,13 @@
<affine:page>
<affine:note
- prop:background="{
+ prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
- }"
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:439:3
|
tests/utils/asserts.ts#L742
1) clipboard/list.spec.ts:423:1 › should copy and paste of database work ─────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:page>
<affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:note>
</affine:page>
expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
@@ -1,13 +1,13 @@
<affine:page>
<affine:note
- prop:background="{
+ prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
- }"
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:439:3
|
tests/utils/asserts.ts#L742
1) clipboard/list.spec.ts:423:1 › should copy and paste of database work ─────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:page>
<affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:note>
</affine:page>
expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
@@ -1,13 +1,13 @@
<affine:page>
<affine:note
- prop:background="{
+ prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
- }"
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:439:3
|
tests/utils/asserts.ts#L742
1) clipboard/list.spec.ts:423:1 › should copy and paste of database work ─────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:page>
<affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:note>
</affine:page>
expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
@@ -1,13 +1,13 @@
<affine:page>
<affine:note
- prop:background="{
+ prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
- }"
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:439:3
|
tests/utils/actions/edgeless.ts#L1388
2) clipboard/list.spec.ts:577:1 › paste note block with background ───────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-change-note-button').locator('edgeless-color-panel').locator('.color-unit[aria-label="--affine-v2-edgeless-note-white"]')
at utils/actions/edgeless.ts:1388
1386 | .locator('edgeless-color-panel')
1387 | .locator(`.color-unit[aria-label="${color}"]`);
> 1388 | await colorButton.click();
| ^
1389 | }
1390 |
1391 | export async function changeShapeFillColor(page: Page, color: string) {
at changeEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1388:21)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:588:9
|
tests/utils/actions/edgeless.ts#L1388
2) clipboard/list.spec.ts:577:1 › paste note block with background ───────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-change-note-button').locator('edgeless-color-panel').locator('.color-unit[aria-label="--affine-v2-edgeless-note-white"]')
at utils/actions/edgeless.ts:1388
1386 | .locator('edgeless-color-panel')
1387 | .locator(`.color-unit[aria-label="${color}"]`);
> 1388 | await colorButton.click();
| ^
1389 | }
1390 |
1391 | export async function changeShapeFillColor(page: Page, color: string) {
at changeEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1388:21)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:588:9
|
tests/utils/actions/edgeless.ts#L1388
2) clipboard/list.spec.ts:577:1 › paste note block with background ───────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-change-note-button').locator('edgeless-color-panel').locator('.color-unit[aria-label="--affine-v2-edgeless-note-white"]')
at utils/actions/edgeless.ts:1388
1386 | .locator('edgeless-color-panel')
1387 | .locator(`.color-unit[aria-label="${color}"]`);
> 1388 | await colorButton.click();
| ^
1389 | }
1390 |
1391 | export async function changeShapeFillColor(page: Page, color: string) {
at changeEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1388:21)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:588:9
|
tests/utils/actions/edgeless.ts#L1388
2) clipboard/list.spec.ts:577:1 › paste note block with background ───────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-change-note-button').locator('edgeless-color-panel').locator('.color-unit[aria-label="--affine-v2-edgeless-note-white"]')
at utils/actions/edgeless.ts:1388
1386 | .locator('edgeless-color-panel')
1387 | .locator(`.color-unit[aria-label="${color}"]`);
> 1388 | await colorButton.click();
| ^
1389 | }
1390 |
1391 | export async function changeShapeFillColor(page: Page, color: string) {
at changeEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:1388:21)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:588:9
|
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
|
The logs for this run have expired and are no longer available.
Loading