feat(edgeless): store real color values in edgeless #9107
Annotations
6 errors, 1 warning, and 1 notice
Run playwright test:
tests/selection/native.spec.ts#L1135
1) selection/native.spec.ts:1109:1 › indent native multi-selection 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:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#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"
}
]
},
"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": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "012"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/selection/native.spec.ts/indent-native-multi-selection-block-after-tab.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/selection-native-indent-native-multi-selection-block/indent-native-multi-selection-block-after-tab-actual.json
1133 | await assertTextSelection(page, from,
|
Run playwright test:
tests/selection/native.spec.ts#L1135
1) selection/native.spec.ts:1109:1 › indent native multi-selection 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:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#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"
}
]
},
"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": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "012"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/selection/native.spec.ts/indent-native-multi-selection-block-after-tab.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/selection-native-indent-native-multi-selection-block-retry1/ind
|
Run playwright test:
tests/selection/native.spec.ts#L1135
1) selection/native.spec.ts:1109:1 › indent native multi-selection 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:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#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"
}
]
},
"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": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "012"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/selection/native.spec.ts/indent-native-multi-selection-block-after-tab.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/selection-native-indent-native-multi-selection-block-retry2/ind
|
Run playwright test:
tests/selection/native.spec.ts#L1135
1) selection/native.spec.ts:1109:1 › indent native multi-selection 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:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#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"
}
]
},
"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": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "012"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/selection/native.spec.ts/indent-native-multi-selection-block-after-tab.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/selection-native-indent-native-multi-selection-block-retry3/ind
|
Run playwright test:
tests/selection/native.spec.ts#L295
2) selection/native.spec.ts:266:1 › cursor move to up and down with children block ───────────────
Error: expect(received).toBeGreaterThanOrEqual(expected)
Expected: >= 12
Received: -1
293 | const textTwo = await getInlineSelectionText(page);
294 | expect(textTwo).toBe('arrow down test 1');
> 295 | expect(indexTwo).toBeGreaterThanOrEqual(12);
| ^
296 | expect(indexTwo).toBeLessThanOrEqual(17);
297 | await page.keyboard.press('ArrowDown');
298 | const textThree = await getInlineSelectionText(page);
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:295:20
|
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
1 failed
selection/native.spec.ts:1109:1 › indent native multi-selection block ──────────────────────────
1 flaky
selection/native.spec.ts:266:1 › cursor move to up and down with children block ────────────────
47 passed (1.1m)
|
Loading