feat(edgeless): store real color values in edgeless #9108
Annotations
10 errors, 1 warning, and 1 notice
Run playwright test:
tests/hotkey/bracket.spec.ts#L59
1) hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works ─────────────────────
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": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "he"
},
{
"insert": "llo",
"attributes": {
"code": true
}
},
{
"insert": " world"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/bracket.spec.ts/should-bracket-complete-with-backtick-works.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-bracket-should-bracket-complete-with-backtick-works/should-bracket-complete-with-backtick-works-actual.json
57 | await resetHistory(page);
58 | await type(page, '`');
> 59 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
60 | `${testInfo.title}.json`
61 | );
62 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/bracket.spec.ts:59:45
|
Run playwright test:
tests/hotkey/bracket.spec.ts#L59
1) hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works ─────────────────────
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": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "he"
},
{
"insert": "llo",
"attributes": {
"code": true
}
},
{
"insert": " world"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/bracket.spec.ts/should-bracket-complete-with-backtick-works.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-bracket-should-bracket-complete-with-backtick-works-retry1/should-bracket-complete-with-backtick-works-actual.json
57 | await resetHistory(page);
58 | await type(page, '`');
> 59 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
60 | `${testInfo.title}.json`
61 | );
62 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/bracket.spec.ts:59:45
|
Run playwright test:
tests/hotkey/bracket.spec.ts#L59
1) hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works ─────────────────────
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": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "he"
},
{
"insert": "llo",
"attributes": {
"code": true
}
},
{
"insert": " world"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/bracket.spec.ts/should-bracket-complete-with-backtick-works.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-bracket-should-bracket-complete-with-backtick-works-retry2/should-bracket-complete-with-backtick-works-actual.json
57 | await resetHistory(page);
58 | await type(page, '`');
> 59 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
60 | `${testInfo.title}.json`
61 | );
62 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/bracket.spec.ts:59:45
|
Run playwright test:
tests/hotkey/bracket.spec.ts#L59
1) hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works ─────────────────────
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": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "he"
},
{
"insert": "llo",
"attributes": {
"code": true
}
},
{
"insert": " world"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/bracket.spec.ts/should-bracket-complete-with-backtick-works.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-bracket-should-bracket-complete-with-backtick-works-retry3/should-bracket-complete-with-backtick-works-actual.json
57 | await resetHistory(page);
58 | await type(page, '`');
> 59 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
60 | `${testInfo.title}.json`
61 | );
62 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/bracket.spec.ts:59:45
|
Run playwright test:
tests/hotkey/hotkey.spec.ts#L86
2) hotkey/hotkey.spec.ts:79:1 › type character jump out code node ────────────────────────────────
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": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Hello",
"attributes": {
"code": true
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/type-character-jump-out-code-node-1.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-type-character-jump-out-code-node/type-character-jump-out-code-node-1-actual.json
84 | await setInlineRangeInSelectedRichText(page, 0, 5);
85 | await inlineCode(page);
> 86 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
87 | `${testInfo.title}_1.json`
88 | );
89 | await focusRichText(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:86:45
|
Run playwright test:
tests/hotkey/hotkey.spec.ts#L86
2) hotkey/hotkey.spec.ts:79:1 › type character jump out code node ────────────────────────────────
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": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Hello",
"attributes": {
"code": true
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/type-character-jump-out-code-node-1.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-type-character-jump-out-code-node-retry1/type-character-jump-out-code-node-1-actual.json
84 | await setInlineRangeInSelectedRichText(page, 0, 5);
85 | await inlineCode(page);
> 86 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
87 | `${testInfo.title}_1.json`
88 | );
89 | await focusRichText(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:86:45
|
Run playwright test:
tests/hotkey/hotkey.spec.ts#L86
2) hotkey/hotkey.spec.ts:79:1 › type character jump out code node ────────────────────────────────
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": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Hello",
"attributes": {
"code": true
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/type-character-jump-out-code-node-1.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-type-character-jump-out-code-node-retry2/type-character-jump-out-code-node-1-actual.json
84 | await setInlineRangeInSelectedRichText(page, 0, 5);
85 | await inlineCode(page);
> 86 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
87 | `${testInfo.title}_1.json`
88 | );
89 | await focusRichText(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:86:45
|
Run playwright test:
tests/hotkey/hotkey.spec.ts#L86
2) hotkey/hotkey.spec.ts:79:1 › type character jump out code node ────────────────────────────────
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": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Hello",
"attributes": {
"code": true
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/type-character-jump-out-code-node-1.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-type-character-jump-out-code-node-retry3/type-character-jump-out-code-node-1-actual.json
84 | await setInlineRangeInSelectedRichText(page, 0, 5);
85 | await inlineCode(page);
> 86 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
87 | `${testInfo.title}_1.json`
88 | );
89 | await focusRichText(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:86:45
|
Run playwright test:
tests/hotkey/hotkey.spec.ts#L136
3) hotkey/hotkey.spec.ts:118:1 › use formatted cursor with hotkey ────────────────────────────────
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": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "aaa"
},
{
"insert": "bbb",
"attributes": {
"italic": true
}
},
{
"insert": "ccc",
"attributes": {
"italic": true,
"bold": true
}
},
{
"insert": "ddd",
"attributes": {
"bold": true
}
},
{
"insert": "eee"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/use-formatted-cursor-with-hotkey-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-use-formatted-cursor-with-hotkey/use-formatted-cursor-with-hotkey-init-actual.json
134 | await type(page, 'eee');
135 |
> 136 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
137 | `${testInfo.title}_init.json`
138 | );
139 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:136:45
|
Run playwright test:
tests/hotkey/hotkey.spec.ts#L136
3) hotkey/hotkey.spec.ts:118:1 › use formatted cursor with hotkey ────────────────────────────────
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": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "aaa"
},
{
"insert": "bbb",
"attributes": {
"italic": true
}
},
{
"insert": "ccc",
"attributes": {
"italic": true,
"bold": true
}
},
{
"insert": "ddd",
"attributes": {
"bold": true
}
},
{
"insert": "eee"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/use-formatted-cursor-with-hotkey-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-use-formatted-cursor-with-hotkey-retry1/use-formatted-cursor-with-hotkey-init-actual.json
134 | await type(page, 'eee');
135 |
> 136 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
137 | `${testInfo.title}_init.json`
138 | );
139 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:136: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
11 failed
hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works ──────────────────────
hotkey/hotkey.spec.ts:79:1 › type character jump out code node ─────────────────────────────────
hotkey/hotkey.spec.ts:118:1 › use formatted cursor with hotkey ─────────────────────────────────
hotkey/hotkey.spec.ts:165:1 › use formatted cursor with hotkey at empty line ───────────────────
hotkey/hotkey.spec.ts:181:1 › should single line format hotkey work ────────────────────────────
hotkey/hotkey.spec.ts:219:1 › should hotkey work in paragraph ──────────────────────────────────
hotkey/hotkey.spec.ts:274:1 › should cut work single line ──────────────────────────────────────
hotkey/hotkey.spec.ts:457:1 › Enter key should as expected after setting heading by shortkey ───
hotkey/multiline.spec.ts:33:1 › should multiple line format hotkey work ────────────────────────
hotkey/multiline.spec.ts:72:1 › multi line rich-text inline code hotkey ────────────────────────
hotkey/multiline.spec.ts:100:1 › should cut work multiple line ─────────────────────────────────
38 passed (2.0m)
|
Loading