feat(edgeless): store real color values in edgeless #9107
Annotations
9 errors, 1 warning, and 1 notice
Run playwright test:
tests/code/crud.spec.ts#L257
1) code/crud.spec.ts:246:1 › delete code block in more 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": {
"--daffrk": "#000000",
"line-v2-edgeless-note-white": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": []
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/delete-code-block-in-more-menu-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-delete-code-block-in-more-menu/delete-code-block-in-more-menu-final-actual.json
255 | await moreMenu.deleteButton.click();
256 |
> 257 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
258 | `${testInfo.title}_final.json`
259 | );
260 | });
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:257:45
|
Run playwright test:
tests/code/crud.spec.ts#L257
1) code/crud.spec.ts:246:1 › delete code block in more 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": {
"--daffrk": "#000000",
"line-v2-edgeless-note-white": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": []
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/delete-code-block-in-more-menu-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-delete-code-block-in-more-menu-retry1/delete-code-block-in-more-menu-final-actual.json
255 | await moreMenu.deleteButton.click();
256 |
> 257 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
258 | `${testInfo.title}_final.json`
259 | );
260 | });
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:257:45
|
Run playwright test:
tests/code/crud.spec.ts#L257
1) code/crud.spec.ts:246:1 › delete code block in more 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": {
"--daffrk": "#000000",
"line-v2-edgeless-note-white": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": []
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/delete-code-block-in-more-menu-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-delete-code-block-in-more-menu-retry2/delete-code-block-in-more-menu-final-actual.json
255 | await moreMenu.deleteButton.click();
256 |
> 257 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
258 | `${testInfo.title}_final.json`
259 | );
260 | });
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:257:45
|
Run playwright test:
tests/code/crud.spec.ts#L257
1) code/crud.spec.ts:246:1 › delete code block in more 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": {
"--daffrk": "#000000",
"line-v2-edgeless-note-white": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": []
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/delete-code-block-in-more-menu-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-delete-code-block-in-more-menu-retry3/delete-code-block-in-more-menu-final-actual.json
255 | await moreMenu.deleteButton.click();
256 |
> 257 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
258 | `${testInfo.title}_final.json`
259 | );
260 | });
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:257:45
|
Run playwright test:
tests/code/crud.spec.ts#L636
2) code/crud.spec.ts:628:1 › format text in code block ───────────────────────────────────────────
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": {
"--daffrk": "#000000",
"line-v2-edgeless-note-white": "#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": "3",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "const aaa = 1000;"
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/format-text-in-code-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-format-text-in-code-block/format-text-in-code-block-init-actual.json
634 | await type(page, 'const aaa = 1000;');
635 |
> 636 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
637 | `${testInfo.title}_init.json`
638 | );
639 |
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:636:45
|
Run playwright test:
tests/code/crud.spec.ts#L636
2) code/crud.spec.ts:628:1 › format text in code block ───────────────────────────────────────────
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": {
"--daffrk": "#000000",
"line-v2-edgeless-note-white": "#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": "3",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "const aaa = 1000;"
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/format-text-in-code-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-format-text-in-code-block-retry1/format-text-in-code-block-init-actual.json
634 | await type(page, 'const aaa = 1000;');
635 |
> 636 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
637 | `${testInfo.title}_init.json`
638 | );
639 |
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:636:45
|
Run playwright test:
tests/code/crud.spec.ts#L636
2) code/crud.spec.ts:628:1 › format text in code block ───────────────────────────────────────────
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": {
"--daffrk": "#000000",
"line-v2-edgeless-note-white": "#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": "3",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "const aaa = 1000;"
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/format-text-in-code-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-format-text-in-code-block-retry2/format-text-in-code-block-init-actual.json
634 | await type(page, 'const aaa = 1000;');
635 |
> 636 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
637 | `${testInfo.title}_init.json`
638 | );
639 |
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:636:45
|
Run playwright test:
tests/code/crud.spec.ts#L636
2) code/crud.spec.ts:628:1 › format text in code block ───────────────────────────────────────────
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": {
"--daffrk": "#000000",
"line-v2-edgeless-note-white": "#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": "3",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "const aaa = 1000;"
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/format-text-in-code-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-format-text-in-code-block-retry3/format-text-in-code-block-init-actual.json
634 | await type(page, 'const aaa = 1000;');
635 |
> 636 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
637 | `${testInfo.title}_init.json`
638 | );
639 |
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:636:45
|
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
code/crud.spec.ts:246:1 › delete code block in more menu ───────────────────────────────────────
code/crud.spec.ts:628:1 › format text in code block ────────────────────────────────────────────
4 skipped
43 passed (59.2s)
|
Loading