feat(edgeless): store real color values in edgeless #9111
Annotations
10 errors, 1 warning, and 1 notice
Run playwright test:
tests/utils/asserts.ts#L742
1) attachment.spec.ts:127:1 › can insert attachment from slash menu ──────────────────────────────
Error: <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:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "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/attachment.spec.ts:143:3
|
Run playwright test:
tests/utils/asserts.ts#L742
1) attachment.spec.ts:127:1 › can insert attachment from slash menu ──────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: <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:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "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/attachment.spec.ts:143:3
|
Run playwright test:
tests/utils/asserts.ts#L742
1) attachment.spec.ts:127:1 › can insert attachment from slash menu ──────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: <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:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "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/attachment.spec.ts:143:3
|
Run playwright test:
tests/utils/asserts.ts#L742
1) attachment.spec.ts:127:1 › can insert attachment from slash menu ──────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: <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:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "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/attachment.spec.ts:143:3
|
Run playwright test:
tests/utils/asserts.ts#L742
2) attachment.spec.ts:186:1 › should undo/redo works for attachment ──────────────────────────────
Error: <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:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "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/attachment.spec.ts:198:3
|
Run playwright test:
tests/utils/asserts.ts#L742
2) attachment.spec.ts:186:1 › should undo/redo works for attachment ──────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: <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:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "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/attachment.spec.ts:198:3
|
Run playwright test:
tests/utils/asserts.ts#L742
2) attachment.spec.ts:186:1 › should undo/redo works for attachment ──────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: <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:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "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/attachment.spec.ts:198:3
|
Run playwright test:
tests/utils/asserts.ts#L742
2) attachment.spec.ts:186:1 › should undo/redo works for attachment ──────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: <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:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "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/attachment.spec.ts:198:3
|
Run playwright test:
tests/utils/asserts.ts#L742
3) attachment.spec.ts:362:1 › should turn attachment to image works ──────────────────────────────
Error: <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:image
prop:caption=""
prop:height={0}
prop:index="a0"
prop:lockedBySelf={false}
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:width={0}
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "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/attachment.spec.ts:375:3
|
Run playwright test:
tests/utils/asserts.ts#L742
3) attachment.spec.ts:362:1 › should turn attachment to image works ──────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: <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:image
prop:caption=""
prop:height={0}
prop:index="a0"
prop:lockedBySelf={false}
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:width={0}
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "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/attachment.spec.ts:375:3
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run playwright test
12 failed
attachment.spec.ts:127:1 › can insert attachment from slash menu ───────────────────────────────
attachment.spec.ts:186:1 › should undo/redo works for attachment ───────────────────────────────
attachment.spec.ts:362:1 › should turn attachment to image works ───────────────────────────────
attachment.spec.ts:460:1 › should attachment can be deleted ────────────────────────────────────
bookmark.spec.ts:79:1 › create bookmark by slash menu ──────────────────────────────────────────
bookmark.spec.ts:86:1 › covert bookmark block to link text ─────────────────────────────────────
bookmark.spec.ts:119:1 › copy url to create bookmark in edgeless mode ──────────────────────────
bookmark.spec.ts:241:3 › embed card toolbar › copy bookmark url by copy button ─────────────────
bookmark.spec.ts:356:3 › embed youtube card › create youtube card by slash menu ────────────────
bookmark.spec.ts:364:3 › embed youtube card › change youtube card style ────────────────────────
bookmark.spec.ts:411:3 › embed figma card › create figma card by slash menu ────────────────────
bookmark.spec.ts:419:3 › embed figma card › change figma card style ────────────────────────────
1 flaky
attachment.spec.ts:730:1 › cancel file picker with input element resolves ──────────────────────
2 skipped
34 passed (2.1m)
|
Loading