feat(edgeless): store real color values in edgeless #9104
Annotations
9 errors, 1 warning, and 1 notice
Run playwright test:
tests/edgeless/edgeless-text.spec.ts#L379
1) edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed 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:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:edgeless-text",
"version": 1,
"props": {
"xywh": "[-25,-25,50,26]",
"index": "a1",
"lockedBySelf": false,
"color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"rotate": 0,
"hasMaxWidth": false
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
},
{
"type": "block",
"id": "2",
"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:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/min-width-limit-for-embed-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-edg-a6ff1-width-limit-for-embed-block/min-width-limit-for-embed-block-init-actual.json
377 | await waitNextFrame(page);
378 |
> 379 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
380 | `${testInfo.title}_init.json`
381 | );
382 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:379:47
|
Run playwright test:
tests/edgeless/edgeless-text.spec.ts#L379
1) edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed 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:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:edgeless-text",
"version": 1,
"props": {
"xywh": "[-25,-25,50,26]",
"index": "a1",
"lockedBySelf": false,
"color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"rotate": 0,
"hasMaxWidth": false
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
},
{
"type": "block",
"id": "2",
"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:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/min-width-limit-for-embed-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-edg-a6ff1-width-limit-for-embed-block-retry1/min-width-limit-for-embed-block-init-actual.json
377 | await waitNextFrame(page);
378 |
> 379 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
380 | `${testInfo.title}_init.json`
381 | );
382 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:379:47
|
Run playwright test:
tests/edgeless/edgeless-text.spec.ts#L379
1) edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed 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:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:edgeless-text",
"version": 1,
"props": {
"xywh": "[-25,-25,50,26]",
"index": "a1",
"lockedBySelf": false,
"color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"rotate": 0,
"hasMaxWidth": false
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
},
{
"type": "block",
"id": "2",
"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:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/min-width-limit-for-embed-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-edg-a6ff1-width-limit-for-embed-block-retry2/min-width-limit-for-embed-block-init-actual.json
377 | await waitNextFrame(page);
378 |
> 379 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
380 | `${testInfo.title}_init.json`
381 | );
382 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:379:47
|
Run playwright test:
tests/edgeless/edgeless-text.spec.ts#L379
1) edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed 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:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:edgeless-text",
"version": 1,
"props": {
"xywh": "[-25,-25,50,26]",
"index": "a1",
"lockedBySelf": false,
"color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"rotate": 0,
"hasMaxWidth": false
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
},
{
"type": "block",
"id": "2",
"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:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/min-width-limit-for-embed-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-edg-a6ff1-width-limit-for-embed-block-retry3/min-width-limit-for-embed-block-init-actual.json
377 | await waitNextFrame(page);
378 |
> 379 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
380 | `${testInfo.title}_init.json`
381 | );
382 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:379:47
|
Run playwright test:
tests/edgeless/edgeless-text.spec.ts#L580
2) edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist
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:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:edgeless-text",
"version": 1,
"props": {
"xywh": "[-25,-25,50,26]",
"index": "a1",
"lockedBySelf": false,
"color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"rotate": 0,
"hasMaxWidth": true
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "aaa"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
},
{
"type": "block",
"id": "2",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,48]",
"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/edgeless/edgeless-text.spec.ts/press-backspace-at-the-start-of-first-line-when-edgeless-text-exist-note-empty.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-pre-86361-ne-when-edgeless-text-exist/press-backspace-at-the-sta-93c64--text-exist-note-empty-actual.json
578 | await switchEditorMode(page);
579 |
> 580 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
581 | `${testInfo.title}_note_empty.json`
582 | );
583 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:580:45
|
Run playwright test:
tests/edgeless/edgeless-text.spec.ts#L580
2) edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist
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:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:edgeless-text",
"version": 1,
"props": {
"xywh": "[-25,-25,50,26]",
"index": "a1",
"lockedBySelf": false,
"color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"rotate": 0,
"hasMaxWidth": true
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "aaa"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
},
{
"type": "block",
"id": "2",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,48]",
"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/edgeless/edgeless-text.spec.ts/press-backspace-at-the-start-of-first-line-when-edgeless-text-exist-note-empty.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-pre-86361-ne-when-edgeless-text-exist-retry1/press-backspace-at-the-sta-93c64--text-exist-note-empty-actual.json
578 | await switchEditorMode(page);
579 |
> 580 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
581 | `${testInfo.title}_note_empty.json`
582 | );
583 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:580:45
|
Run playwright test:
tests/edgeless/edgeless-text.spec.ts#L580
2) edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist
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:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:edgeless-text",
"version": 1,
"props": {
"xywh": "[-25,-25,50,26]",
"index": "a1",
"lockedBySelf": false,
"color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"rotate": 0,
"hasMaxWidth": true
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "aaa"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
},
{
"type": "block",
"id": "2",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,48]",
"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/edgeless/edgeless-text.spec.ts/press-backspace-at-the-start-of-first-line-when-edgeless-text-exist-note-empty.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-pre-86361-ne-when-edgeless-text-exist-retry2/press-backspace-at-the-sta-93c64--text-exist-note-empty-actual.json
578 | await switchEditorMode(page);
579 |
> 580 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
581 | `${testInfo.title}_note_empty.json`
582 | );
583 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:580:45
|
Run playwright test:
tests/edgeless/edgeless-text.spec.ts#L580
2) edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist
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:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:edgeless-text",
"version": 1,
"props": {
"xywh": "[-25,-25,50,26]",
"index": "a1",
"lockedBySelf": false,
"color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"rotate": 0,
"hasMaxWidth": true
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "aaa"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
},
{
"type": "block",
"id": "2",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,48]",
"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/edgeless/edgeless-text.spec.ts/press-backspace-at-the-start-of-first-line-when-edgeless-text-exist-note-empty.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-pre-86361-ne-when-edgeless-text-exist-retry3/press-backspace-at-the-sta-93c64--text-exist-note-empty-actual.json
578 | await switchEditorMode(page);
579 |
> 580 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
581 | `${testInfo.title}_note_empty.json`
582 | );
583 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:580: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
edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block ───
edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist
1 skipped
46 passed (1.6m)
|
Loading