feat(edgeless): store real color values in edgeless #9109
Annotations
10 errors, 1 warning, and 1 notice
Run playwright test:
tests/latex/block.spec.ts#L17
1) latex/block.spec.ts:12:1 › add latex block using slash menu ───────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-slash-menu-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-block-using-slash-menu/add-latex-block-using-slash-menu-init-actual.json
15 | await focusRichText(page);
16 |
> 17 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
18 | `${testInfo.title}_init.json`
19 | );
20 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:17:45
|
Run playwright test:
tests/latex/block.spec.ts#L17
1) latex/block.spec.ts:12:1 › add latex block using slash menu ───────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-slash-menu-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-block-using-slash-menu-retry1/add-latex-block-using-slash-menu-init-actual.json
15 | await focusRichText(page);
16 |
> 17 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
18 | `${testInfo.title}_init.json`
19 | );
20 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:17:45
|
Run playwright test:
tests/latex/block.spec.ts#L17
1) latex/block.spec.ts:12:1 › add latex block using slash menu ───────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-slash-menu-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-block-using-slash-menu-retry2/add-latex-block-using-slash-menu-init-actual.json
15 | await focusRichText(page);
16 |
> 17 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
18 | `${testInfo.title}_init.json`
19 | );
20 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:17:45
|
Run playwright test:
tests/latex/block.spec.ts#L17
1) latex/block.spec.ts:12:1 › add latex block using slash menu ───────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-slash-menu-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-block-using-slash-menu-retry3/add-latex-block-using-slash-menu-init-actual.json
15 | await focusRichText(page);
16 |
> 17 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
18 | `${testInfo.title}_init.json`
19 | );
20 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:17:45
|
Run playwright test:
tests/latex/block.spec.ts#L35
2) latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ─────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-space-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-b7605-arkdown-shortcut-with-space/add-latex-block-using-markdown-shortcut-with-space-init-actual.json
33 | await focusRichText(page);
34 |
> 35 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
36 | `${testInfo.title}_init.json`
37 | );
38 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:35:45
|
Run playwright test:
tests/latex/block.spec.ts#L35
2) latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ─────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-space-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-b7605-arkdown-shortcut-with-space-retry1/add-latex-block-using-markdown-shortcut-with-space-init-actual.json
33 | await focusRichText(page);
34 |
> 35 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
36 | `${testInfo.title}_init.json`
37 | );
38 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:35:45
|
Run playwright test:
tests/latex/block.spec.ts#L35
2) latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ─────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-space-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-b7605-arkdown-shortcut-with-space-retry2/add-latex-block-using-markdown-shortcut-with-space-init-actual.json
33 | await focusRichText(page);
34 |
> 35 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
36 | `${testInfo.title}_init.json`
37 | );
38 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:35:45
|
Run playwright test:
tests/latex/block.spec.ts#L35
2) latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ─────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-space-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-b7605-arkdown-shortcut-with-space-retry3/add-latex-block-using-markdown-shortcut-with-space-init-actual.json
33 | await focusRichText(page);
34 |
> 35 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
36 | `${testInfo.title}_init.json`
37 | );
38 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:35:45
|
Run playwright test:
tests/latex/block.spec.ts#L53
3) latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter ─────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-enter-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-e0ffb-arkdown-shortcut-with-enter/add-latex-block-using-markdown-shortcut-with-enter-init-actual.json
51 | await focusRichText(page);
52 |
> 53 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
54 | `${testInfo.title}_init.json`
55 | );
56 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:53:45
|
Run playwright test:
tests/latex/block.spec.ts#L53
3) latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter ─────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-enter-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-e0ffb-arkdown-shortcut-with-enter-retry1/add-latex-block-using-markdown-shortcut-with-enter-init-actual.json
51 | await focusRichText(page);
52 |
> 53 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
54 | `${testInfo.title}_init.json`
55 | );
56 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:53:45
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run playwright test
4 failed
latex/block.spec.ts:12:1 › add latex block using slash menu ────────────────────────────────────
latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ──────────────────
latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter ──────────────────
link.spec.ts:34:1 › basic link ─────────────────────────────────────────────────────────────────
1 skipped
44 passed (1.3m)
|
Loading