feat(edgeless): store real color values in edgeless #9109
Annotations
10 errors, 1 warning, and 1 notice
Run playwright test:
tests/format-bar.spec.ts#L217
1) format-bar.spec.ts:186:1 › should format quick bar be able to format text ─────────────────────
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": "123"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456",
"attributes": {
"code": true,
"strike": true,
"underline": true,
"italic": true,
"bold": true
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/should-format-quick-bar-be-able-to-format-text-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-should-format-quick-bar-be-able-to-format-text/should-format-quick-bar-be-able-to-format-text-init-actual.json
215 | await expect(codeBtn).toHaveAttribute('active', '');
216 |
> 217 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
218 | `${testInfo.title}_init.json`
219 | );
220 |
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:217:45
|
Run playwright test:
tests/format-bar.spec.ts#L217
1) format-bar.spec.ts:186:1 › should format quick bar be able to format text ─────────────────────
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": "123"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456",
"attributes": {
"code": true,
"strike": true,
"underline": true,
"italic": true,
"bold": true
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/should-format-quick-bar-be-able-to-format-text-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-should-format-quick-bar-be-able-to-format-text-retry1/should-format-quick-bar-be-able-to-format-text-init-actual.json
215 | await expect(codeBtn).toHaveAttribute('active', '');
216 |
> 217 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
218 | `${testInfo.title}_init.json`
219 | );
220 |
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:217:45
|
Run playwright test:
tests/format-bar.spec.ts#L217
1) format-bar.spec.ts:186:1 › should format quick bar be able to format text ─────────────────────
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": "123"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456",
"attributes": {
"code": true,
"strike": true,
"underline": true,
"italic": true,
"bold": true
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/should-format-quick-bar-be-able-to-format-text-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-should-format-quick-bar-be-able-to-format-text-retry2/should-format-quick-bar-be-able-to-format-text-init-actual.json
215 | await expect(codeBtn).toHaveAttribute('active', '');
216 |
> 217 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
218 | `${testInfo.title}_init.json`
219 | );
220 |
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:217:45
|
Run playwright test:
tests/format-bar.spec.ts#L217
1) format-bar.spec.ts:186:1 › should format quick bar be able to format text ─────────────────────
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": "123"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456",
"attributes": {
"code": true,
"strike": true,
"underline": true,
"italic": true,
"bold": true
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/should-format-quick-bar-be-able-to-format-text-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-should-format-quick-bar-be-able-to-format-text-retry3/should-format-quick-bar-be-able-to-format-text-init-actual.json
215 | await expect(codeBtn).toHaveAttribute('active', '');
216 |
> 217 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
218 | `${testInfo.title}_init.json`
219 | );
220 |
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:217:45
|
Run playwright test:
tests/format-bar.spec.ts#L262
2) format-bar.spec.ts:239:1 › should format quick bar be able to change background color ─────────
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": "123"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456",
"attributes": {
"color": "var(--affine-text-highlight-foreground-red)"
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/should-format-quick-bar-be-able-to-change-background-color-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-should-format-q-4ba8b--to-change-background-color/should-format-quick-bar-be-e7f39--background-color-init-actual.json
260 | );
261 |
> 262 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
263 | `${testInfo.title}_init.json`
264 | );
265 |
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:262:45
|
Run playwright test:
tests/format-bar.spec.ts#L262
2) format-bar.spec.ts:239:1 › should format quick bar be able to change background color ─────────
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": "123"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456",
"attributes": {
"color": "var(--affine-text-highlight-foreground-red)"
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/should-format-quick-bar-be-able-to-change-background-color-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-should-format-q-4ba8b--to-change-background-color-retry1/should-format-quick-bar-be-e7f39--background-color-init-actual.json
260 | );
261 |
> 262 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
263 | `${testInfo.title}_init.json`
264 | );
265 |
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:262:45
|
Run playwright test:
tests/format-bar.spec.ts#L262
2) format-bar.spec.ts:239:1 › should format quick bar be able to change background color ─────────
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": "123"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456",
"attributes": {
"color": "var(--affine-text-highlight-foreground-red)"
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/should-format-quick-bar-be-able-to-change-background-color-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-should-format-q-4ba8b--to-change-background-color-retry2/should-format-quick-bar-be-e7f39--background-color-init-actual.json
260 | );
261 |
> 262 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
263 | `${testInfo.title}_init.json`
264 | );
265 |
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:262:45
|
Run playwright test:
tests/format-bar.spec.ts#L262
2) format-bar.spec.ts:239:1 › should format quick bar be able to change background color ─────────
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": "123"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456",
"attributes": {
"color": "var(--affine-text-highlight-foreground-red)"
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/should-format-quick-bar-be-able-to-change-background-color-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-should-format-q-4ba8b--to-change-background-color-retry3/should-format-quick-bar-be-e7f39--background-color-init-actual.json
260 | );
261 |
> 262 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
263 | `${testInfo.title}_init.json`
264 | );
265 |
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:262:45
|
Run playwright test:
tests/format-bar.spec.ts#L298
3) format-bar.spec.ts:284:1 › should format quick bar be able to format text when select multiple line
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": "123",
"attributes": {
"bold": true
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456",
"attributes": {
"bold": true
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789",
"attributes": {
"bold": true
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/should-format-quick-bar-be-able-to-format-text-when-select-multiple-line-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-should-format-q-f995f-t-when-select-multiple-line/should-format-quick-bar-be-14273-ect-multiple-line-init-actual.json
296 | // The bold button should be active after click
297 | await expect(boldBtn).toHaveAttribute('active', '');
> 298 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
299 | `${testInfo.title}_init.json`
300 | );
301 |
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:298:45
|
Run playwright test:
tests/format-bar.spec.ts#L298
3) format-bar.spec.ts:284:1 › should format quick bar be able to format text when select multiple line
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": "123",
"attributes": {
"bold": true
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456",
"attributes": {
"bold": true
}
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789",
"attributes": {
"bold": true
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/format-bar.spec.ts/should-format-quick-bar-be-able-to-format-text-when-select-multiple-line-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/format-bar-should-format-q-f995f-t-when-select-multiple-line-retry1/should-format-quick-bar-be-14273-ect-multiple-line-init-actual.json
296 | // The bold button should be active after click
297 | await expect(boldBtn).toHaveAttribute('active', '');
> 298 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
299 | `${testInfo.title}_init.json`
300 | );
301 |
at /home/runner/work/b
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run playwright test
10 failed
format-bar.spec.ts:186:1 › should format quick bar be able to format text ──────────────────────
format-bar.spec.ts:239:1 › should format quick bar be able to change background color ──────────
format-bar.spec.ts:284:1 › should format quick bar be able to format text when select multiple line
format-bar.spec.ts:309:1 › should format quick bar be able to link text ────────────────────────
format-bar.spec.ts:346:1 › should format quick bar be able to change to heading paragraph type ─
format-bar.spec.ts:514:1 › should format quick bar work in single block selection ──────────────
format-bar.spec.ts:565:1 › should format quick bar work in multiple block selection ────────────
format-bar.spec.ts:614:1 › should format quick bar with block selection works when update block type
format-bar.spec.ts:658:1 › should format quick bar show after convert to code block ────────────
format-bar.spec.ts:930:1 › create linked doc from block selection with format bar ──────────────
1 skipped
38 passed (1.9m)
|
Loading