feat(edgeless): store real color values in edgeless #9111
Annotations
6 errors, 1 warning, and 1 notice
Run playwright test:
tests/slash-menu.spec.ts#L981
1) slash-menu.spec.ts:963:1 › delete block by slash menu should remove children ──────────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "123"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/slash-menu.spec.ts/delete-block-by-slash-menu-should-remove-children.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/slash-menu-delete-block-by-slash-menu-should-remove-children/delete-block-by-slash-menu-should-remove-children-actual.json
979 | await expect(slashItems).toHaveCount(1);
980 | await pressEnter(page);
> 981 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
982 | `${testInfo.title}.json`
983 | );
984 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:981:45
|
Run playwright test:
tests/slash-menu.spec.ts#L981
1) slash-menu.spec.ts:963:1 › delete block by slash menu should remove children ──────────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "123"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/slash-menu.spec.ts/delete-block-by-slash-menu-should-remove-children.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/slash-menu-delete-block-by-slash-menu-should-remove-children-retry1/delete-block-by-slash-menu-should-remove-children-actual.json
979 | await expect(slashItems).toHaveCount(1);
980 | await pressEnter(page);
> 981 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
982 | `${testInfo.title}.json`
983 | );
984 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:981:45
|
Run playwright test:
tests/slash-menu.spec.ts#L981
1) slash-menu.spec.ts:963:1 › delete block by slash menu should remove children ──────────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "123"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/slash-menu.spec.ts/delete-block-by-slash-menu-should-remove-children.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/slash-menu-delete-block-by-slash-menu-should-remove-children-retry2/delete-block-by-slash-menu-should-remove-children-actual.json
979 | await expect(slashItems).toHaveCount(1);
980 | await pressEnter(page);
> 981 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
982 | `${testInfo.title}.json`
983 | );
984 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:981:45
|
Run playwright test:
tests/slash-menu.spec.ts#L981
1) slash-menu.spec.ts:963:1 › delete block by slash menu should remove children ──────────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "123"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/slash-menu.spec.ts/delete-block-by-slash-menu-should-remove-children.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/slash-menu-delete-block-by-slash-menu-should-remove-children-retry3/delete-block-by-slash-menu-should-remove-children-actual.json
979 | await expect(slashItems).toHaveCount(1);
980 | await pressEnter(page);
> 981 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
982 | `${testInfo.title}.json`
983 | );
984 |
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:981:45
|
Run playwright test:
tests/slash-menu.spec.ts#L401
2) slash-menu.spec.ts:378:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow, Enter, Esc keys
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.slash-menu[data-testid=sub-menu-0]').locator('icon-button').nth(4)
Expected string: "true"
Received string: "false"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.slash-menu[data-testid=sub-menu-0]').locator('icon-button').nth(4)
9 × locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
399 | await type(page, '/');
400 | await pressArrowDown(page, 4);
> 401 | await expect(slashItems.nth(4)).toHaveAttribute('hover', 'true');
| ^
402 | await expect(slashItems.nth(4).locator('.text')).toHaveText([
403 | 'Other Headings',
404 | ]);
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:401:37
|
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
slash-menu.spec.ts:963:1 › delete block by slash menu should remove children ───────────────────
1 flaky
slash-menu.spec.ts:378:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow, Enter, Esc keys
3 skipped
44 passed (50.9s)
|
Loading