feat(edgeless): store real color values in edgeless #9107
Annotations
9 errors, 1 warning, and 1 notice
Run playwright test:
tests/drag.spec.ts#L192
1) drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting ──────────────
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:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "A"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "B"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "C"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "D"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "7",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text
|
Run playwright test:
tests/drag.spec.ts#L192
1) drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting ──────────────
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:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "A"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "B"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "C"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "D"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "7",
"flavour": "affine:list",
"version": 1,
"props": {
|
Run playwright test:
tests/drag.spec.ts#L192
1) drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting ──────────────
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:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "A"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "B"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "C"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "D"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "7",
"flavour": "affine:list",
"version": 1,
"props": {
|
Run playwright test:
tests/drag.spec.ts#L192
1) drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting ──────────────
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:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "A"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "B"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "C"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "D"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "7",
"flavour": "affine:list",
"version": 1,
"props": {
|
Run playwright test:
tests/utils/asserts.ts#L1086
2) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:162:7
|
Run playwright test:
tests/utils/asserts.ts#L1086
2) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:162:7
|
Run playwright test:
tests/utils/asserts.ts#L1086
2) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:162:7
|
Run playwright test:
tests/utils/asserts.ts#L1086
2) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:162:7
|
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
drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting ───────────────
edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
6 skipped
41 passed (1.6m)
|
Loading