feat(edgeless): store real color values in edgeless #9104
Annotations
10 errors, 1 warning, and 1 notice
Run playwright test:
tests/link.spec.ts#L421
1) link.spec.ts:398:1 › convert link to card ─────────────────────────────────────────────────────
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"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "a"
},
{
"insert": "linkText",
"attributes": {
"link": "http://example.com"
}
},
{
"insert": "a"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/link.spec.ts/convert-link-to-card.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/link-convert-link-to-card/convert-link-to-card-actual.json
419 | await focusRichText(page, 1);
420 |
> 421 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
422 | `${testInfo.title}.json`
423 | );
424 |
at /home/runner/work/blocksuite/blocksuite/tests/link.spec.ts:421:45
|
Run playwright test:
tests/link.spec.ts#L421
1) link.spec.ts:398:1 › convert link to card ─────────────────────────────────────────────────────
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"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "a"
},
{
"insert": "linkText",
"attributes": {
"link": "http://example.com"
}
},
{
"insert": "a"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/link.spec.ts/convert-link-to-card.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/link-convert-link-to-card-retry1/convert-link-to-card-actual.json
419 | await focusRichText(page, 1);
420 |
> 421 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
422 | `${testInfo.title}.json`
423 | );
424 |
at /home/runner/work/blocksuite/blocksuite/tests/link.spec.ts:421:45
|
Run playwright test:
tests/link.spec.ts#L421
1) link.spec.ts:398:1 › convert link to card ─────────────────────────────────────────────────────
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": "aaa"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "a"
},
{
"insert": "linkText",
"attributes": {
"link": "http://example.com"
}
},
{
"insert": "a"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/link.spec.ts/convert-link-to-card.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/link-convert-link-to-card-retry2/convert-link-to-card-actual.json
419 | await focusRichText(page, 1);
420 |
> 421 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
422 | `${testInfo.title}.json`
423 | );
424 |
at /home/runner/work/blocksuite/blocksuite/tests/link.spec.ts:421:45
|
Run playwright test:
tests/link.spec.ts#L421
1) link.spec.ts:398:1 › convert link to card ─────────────────────────────────────────────────────
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": "aaa"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "a"
},
{
"insert": "linkText",
"attributes": {
"link": "http://example.com"
}
},
{
"insert": "a"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/link.spec.ts/convert-link-to-card.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/link-convert-link-to-card-retry3/convert-link-to-card-actual.json
419 | await focusRichText(page, 1);
420 |
> 421 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
422 | `${testInfo.title}.json`
423 | );
424 |
at /home/runner/work/blocksuite/blocksuite/tests/link.spec.ts:421:45
|
Run playwright test:
tests/linked-page.spec.ts#L78
2) linked-page.spec.ts:69:3 › multiple page › should create and switch page work ─────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "title0"
}
]
}
},
"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": "page0"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/linked-page.spec.ts/should-create-and-switch-page-work-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/linked-page-multiple-page-should-create-and-switch-page-work/should-create-and-switch-page-work-init-actual.json
76 | await assertRichTexts(page, ['page0']);
77 |
> 78 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
79 | `${testInfo.title}_init.json`
80 | );
81 |
at /home/runner/work/blocksuite/blocksuite/tests/linked-page.spec.ts:78:47
|
Run playwright test:
tests/linked-page.spec.ts#L78
2) linked-page.spec.ts:69:3 › multiple page › should create and switch page work ─────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "title0"
}
]
}
},
"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": "page0"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/linked-page.spec.ts/should-create-and-switch-page-work-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/linked-page-multiple-page-should-create-and-switch-page-work-retry1/should-create-and-switch-page-work-init-actual.json
76 | await assertRichTexts(page, ['page0']);
77 |
> 78 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
79 | `${testInfo.title}_init.json`
80 | );
81 |
at /home/runner/work/blocksuite/blocksuite/tests/linked-page.spec.ts:78:47
|
Run playwright test:
tests/linked-page.spec.ts#L78
2) linked-page.spec.ts:69:3 › multiple page › should create and switch page work ─────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "title0"
}
]
}
},
"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": "page0"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/linked-page.spec.ts/should-create-and-switch-page-work-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/linked-page-multiple-page-should-create-and-switch-page-work-retry2/should-create-and-switch-page-work-init-actual.json
76 | await assertRichTexts(page, ['page0']);
77 |
> 78 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
79 | `${testInfo.title}_init.json`
80 | );
81 |
at /home/runner/work/blocksuite/blocksuite/tests/linked-page.spec.ts:78:47
|
Run playwright test:
tests/linked-page.spec.ts#L78
2) linked-page.spec.ts:69:3 › multiple page › should create and switch page work ─────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "title0"
}
]
}
},
"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": "page0"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/linked-page.spec.ts/should-create-and-switch-page-work-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/linked-page-multiple-page-should-create-and-switch-page-work-retry3/should-create-and-switch-page-work-init-actual.json
76 | await assertRichTexts(page, ['page0']);
77 |
> 78 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
79 | `${testInfo.title}_init.json`
80 | );
81 |
at /home/runner/work/blocksuite/blocksuite/tests/linked-page.spec.ts:78:47
|
Run playwright test:
tests/linked-page.spec.ts#L472
3) linked-page.spec.ts:460:3 › reference node › can create linked page and jump ──────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "page0"
}
]
}
},
"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": " ",
"attributes": {
"reference": {
"type": "LinkedPage",
"pageId": "3"
}
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/linked-page.spec.ts/can-create-linked-page-and-jump-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/linked-page-reference-node-can-create-linked-page-and-jump/can-create-linked-page-and-jump-init-actual.json
470 |
471 | await assertTitle(page, 'page1');
> 472 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
473 | `${testInfo.title}_init.json`
474 | );
475 | await focusRichText(page);
at /home/runner/work/blocksuite/blocksuite/tests/linked-page.spec.ts:472:47
|
Run playwright test:
tests/linked-page.spec.ts#L472
3) linked-page.spec.ts:460:3 › reference node › can create linked page and jump ──────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "page0"
}
]
}
},
"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": " ",
"attributes": {
"reference": {
"type": "LinkedPage",
"pageId": "3"
}
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/linked-page.spec.ts/can-create-linked-page-and-jump-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/linked-page-reference-node-can-create-linked-page-and-jump-retry1/can-create-linked-page-and-jump-init-actual.json
470 |
471 | await assertTitle(page, 'page1');
> 472 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
473 | `${testInfo.title}_init.json`
474 | );
475 | await focusRichText(page);
at /home/runner/work/blocksuite/blocksuite/tests/linked-page.spec.ts:472:47
|
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
link.spec.ts:398:1 › convert link to card ──────────────────────────────────────────────────────
linked-page.spec.ts:69:3 › multiple page › should create and switch page work ──────────────────
linked-page.spec.ts:460:3 › reference node › can create linked page and jump ───────────────────
linked-page.spec.ts:713:3 › linked page with clipboard › paste linked page should paste as linked page
linked-page.spec.ts:732:3 › linked page with clipboard › duplicated linked page should paste as linked page
list.spec.ts:111:1 › convert nested paragraph to list ──────────────────────────────────────────
list.spec.ts:253:1 › nested list blocks ────────────────────────────────────────────────────────
list.spec.ts:306:1 › basic indent and unindent ─────────────────────────────────────────────────
list.spec.ts:333:1 › should indent todo block preserve todo status ─────────────────────────────
list.spec.ts:356:1 › enter list block with empty text ──────────────────────────────────────────
2 skipped
37 passed (1.6m)
|
Loading