feat(edgeless): store real color values in edgeless #9107
Annotations
5 errors, 1 warning, and 1 notice
Run playwright test:
tests/slash-menu.spec.ts#L981
1) slash-menu.spec.ts:963:1 › delete block by slash menu should remove children ──────────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "123"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/slash-menu.spec.ts/delete-block-by-slash-menu-should-remove-children.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/slash-menu-delete-block-by-slash-menu-should-remove-children/delete-block-by-slash-menu-should-remove-children-actual.json
979 | await expect(slashItems).toHaveCount(1);
980 | await pressEnter(page);
> 981 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
982 | `${testInfo.title}.json`
983 | );
984 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:981:45
|
Run playwright test:
tests/slash-menu.spec.ts#L981
1) slash-menu.spec.ts:963:1 › delete block by slash menu should remove children ──────────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "123"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/slash-menu.spec.ts/delete-block-by-slash-menu-should-remove-children.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/slash-menu-delete-block-by-slash-menu-should-remove-children-retry1/delete-block-by-slash-menu-should-remove-children-actual.json
979 | await expect(slashItems).toHaveCount(1);
980 | await pressEnter(page);
> 981 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
982 | `${testInfo.title}.json`
983 | );
984 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:981:45
|
Run playwright test:
tests/slash-menu.spec.ts#L981
1) slash-menu.spec.ts:963:1 › delete block by slash menu should remove children ──────────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "123"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/slash-menu.spec.ts/delete-block-by-slash-menu-should-remove-children.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/slash-menu-delete-block-by-slash-menu-should-remove-children-retry2/delete-block-by-slash-menu-should-remove-children-actual.json
979 | await expect(slashItems).toHaveCount(1);
980 | await pressEnter(page);
> 981 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
982 | `${testInfo.title}.json`
983 | );
984 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:981:45
|
Run playwright test:
tests/slash-menu.spec.ts#L981
1) slash-menu.spec.ts:963:1 › delete block by slash menu should remove children ──────────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "123"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/slash-menu.spec.ts/delete-block-by-slash-menu-should-remove-children.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/slash-menu-delete-block-by-slash-menu-should-remove-children-retry3/delete-block-by-slash-menu-should-remove-children-actual.json
979 | await expect(slashItems).toHaveCount(1);
980 | await pressEnter(page);
> 981 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
982 | `${testInfo.title}.json`
983 | );
984 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:981: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
1 failed
slash-menu.spec.ts:963:1 › delete block by slash menu should remove children ───────────────────
3 skipped
45 passed (46.5s)
|
Loading