feat(edgeless): store real color values in edgeless #9108
test.yml
on: pull_request
Install Dependencies
42s
Build & Test
0s
Annotations
147 errors, 33 warnings, and 20 notices
Build
Process completed with exit code 1.
|
slash-menu.spec.ts:963:1 › delete block by slash menu should remove children:
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
|
slash-menu.spec.ts:963:1 › delete block by slash menu should remove children:
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
|
slash-menu.spec.ts:963:1 › delete block by slash menu should remove children:
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
|
slash-menu.spec.ts:963:1 › delete block by slash menu should remove children:
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
|
slash-menu.spec.ts:378:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow:
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
|
E2E Test (20)
Process completed with exit code 1.
|
selection/native.spec.ts:1109:1 › indent native multi-selection block:
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,
|
selection/native.spec.ts:1109:1 › indent native multi-selection block:
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
|
selection/native.spec.ts:1109:1 › indent native multi-selection block:
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
|
selection/native.spec.ts:1109:1 › indent native multi-selection block:
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
|
E2E Test (19)
Process completed with exit code 1.
|
code/crud.spec.ts:246:1 › delete code block in more menu:
tests/code/crud.spec.ts#L257
1) code/crud.spec.ts:246:1 › delete code block in more menu ──────────────────────────────────────
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": []
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/delete-code-block-in-more-menu-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-delete-code-block-in-more-menu/delete-code-block-in-more-menu-final-actual.json
255 | await moreMenu.deleteButton.click();
256 |
> 257 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
258 | `${testInfo.title}_final.json`
259 | );
260 | });
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:257:45
|
code/crud.spec.ts:246:1 › delete code block in more menu:
tests/code/crud.spec.ts#L257
1) code/crud.spec.ts:246:1 › delete code block in more menu ──────────────────────────────────────
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": []
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/delete-code-block-in-more-menu-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-delete-code-block-in-more-menu-retry1/delete-code-block-in-more-menu-final-actual.json
255 | await moreMenu.deleteButton.click();
256 |
> 257 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
258 | `${testInfo.title}_final.json`
259 | );
260 | });
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:257:45
|
code/crud.spec.ts:246:1 › delete code block in more menu:
tests/code/crud.spec.ts#L257
1) code/crud.spec.ts:246:1 › delete code block in more menu ──────────────────────────────────────
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": []
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/delete-code-block-in-more-menu-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-delete-code-block-in-more-menu-retry2/delete-code-block-in-more-menu-final-actual.json
255 | await moreMenu.deleteButton.click();
256 |
> 257 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
258 | `${testInfo.title}_final.json`
259 | );
260 | });
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:257:45
|
code/crud.spec.ts:246:1 › delete code block in more menu:
tests/code/crud.spec.ts#L257
1) code/crud.spec.ts:246:1 › delete code block in more menu ──────────────────────────────────────
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": []
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/delete-code-block-in-more-menu-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-delete-code-block-in-more-menu-retry3/delete-code-block-in-more-menu-final-actual.json
255 | await moreMenu.deleteButton.click();
256 |
> 257 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
258 | `${testInfo.title}_final.json`
259 | );
260 | });
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:257:45
|
code/crud.spec.ts:628:1 › format text in code block:
tests/code/crud.spec.ts#L636
2) code/crud.spec.ts:628:1 › format text in code 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": {
"--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:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "const aaa = 1000;"
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/format-text-in-code-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-format-text-in-code-block/format-text-in-code-block-init-actual.json
634 | await type(page, 'const aaa = 1000;');
635 |
> 636 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
637 | `${testInfo.title}_init.json`
638 | );
639 |
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:636:45
|
code/crud.spec.ts:628:1 › format text in code block:
tests/code/crud.spec.ts#L636
2) code/crud.spec.ts:628:1 › format text in code 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": {
"--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:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "const aaa = 1000;"
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/format-text-in-code-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-format-text-in-code-block-retry1/format-text-in-code-block-init-actual.json
634 | await type(page, 'const aaa = 1000;');
635 |
> 636 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
637 | `${testInfo.title}_init.json`
638 | );
639 |
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:636:45
|
code/crud.spec.ts:628:1 › format text in code block:
tests/code/crud.spec.ts#L636
2) code/crud.spec.ts:628:1 › format text in code 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": {
"--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:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "const aaa = 1000;"
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/format-text-in-code-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-format-text-in-code-block-retry2/format-text-in-code-block-init-actual.json
634 | await type(page, 'const aaa = 1000;');
635 |
> 636 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
637 | `${testInfo.title}_init.json`
638 | );
639 |
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:636:45
|
code/crud.spec.ts:628:1 › format text in code block:
tests/code/crud.spec.ts#L636
2) code/crud.spec.ts:628:1 › format text in code 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": {
"--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:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "const aaa = 1000;"
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/code/crud.spec.ts/format-text-in-code-block-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/code-crud-format-text-in-code-block-retry3/format-text-in-code-block-init-actual.json
634 | await type(page, 'const aaa = 1000;');
635 |
> 636 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
637 | `${testInfo.title}_init.json`
638 | );
639 |
at /home/runner/work/blocksuite/blocksuite/tests/code/crud.spec.ts:636:45
|
E2E Test (3)
Process completed with exit code 1.
|
list.spec.ts:649:3 › toggle list › click toggle icon should collapsed list:
tests/list.spec.ts#L662
1) list.spec.ts:649:3 › toggle list › click toggle icon should collapsed list ────────────────────
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": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/list.spec.ts/click-toggle-icon-should-collapsed-list-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/list-toggle-list-click-toggle-icon-should-collapsed-list/click-toggle-icon-should-collapsed-list-init-actual.json
660 | const parentPrefix = prefixes.nth(1);
661 |
> 662 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
663 | `${testInfo.title}_init.json`
664 | );
665 |
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:662:47
|
list.spec.ts:649:3 › toggle list › click toggle icon should collapsed list:
tests/list.spec.ts#L662
1) list.spec.ts:649:3 › toggle list › click toggle icon should collapsed list ────────────────────
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": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/list.spec.ts/click-toggle-icon-should-collapsed-list-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/list-toggle-list-click-toggle-icon-should-collapsed-list-retry1/click-toggle-icon-should-collapsed-list-init-actual.json
660 | const parentPrefix = prefixes.nth(1);
661 |
> 662 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
663 | `${testInfo.title}_init.json`
664 | );
665 |
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:662:47
|
list.spec.ts:649:3 › toggle list › click toggle icon should collapsed list:
tests/list.spec.ts#L662
1) list.spec.ts:649:3 › toggle list › click toggle icon should collapsed list ────────────────────
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": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/list.spec.ts/click-toggle-icon-should-collapsed-list-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/list-toggle-list-click-toggle-icon-should-collapsed-list-retry2/click-toggle-icon-should-collapsed-list-init-actual.json
660 | const parentPrefix = prefixes.nth(1);
661 |
> 662 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
663 | `${testInfo.title}_init.json`
664 | );
665 |
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:662:47
|
list.spec.ts:649:3 › toggle list › click toggle icon should collapsed list:
tests/list.spec.ts#L662
1) list.spec.ts:649:3 › toggle list › click toggle icon should collapsed list ────────────────────
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": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/list.spec.ts/click-toggle-icon-should-collapsed-list-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/list-toggle-list-click-toggle-icon-should-collapsed-list-retry3/click-toggle-icon-should-collapsed-list-init-actual.json
660 | const parentPrefix = prefixes.nth(1);
661 |
> 662 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
663 | `${testInfo.title}_init.json`
664 | );
665 |
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:662:47
|
list.spec.ts:693:3 › toggle list › indent item should expand toggle:
tests/list.spec.ts#L707
2) list.spec.ts:693:3 › toggle list › indent item should expand toggle ───────────────────────────
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": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
},
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "012"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/list.spec.ts/indent-item-should-expand-toggle-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/list-toggle-list-indent-item-should-expand-toggle/indent-
|
list.spec.ts:693:3 › toggle list › indent item should expand toggle:
tests/list.spec.ts#L707
2) list.spec.ts:693:3 › toggle list › indent item should expand toggle ───────────────────────────
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": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
},
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "012"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/list.spec.ts/indent-item-should-expand-toggle-init.json
Received: /home/runner/w
|
list.spec.ts:693:3 › toggle list › indent item should expand toggle:
tests/list.spec.ts#L707
2) list.spec.ts:693:3 › toggle list › indent item should expand toggle ───────────────────────────
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": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
},
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "012"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/list.spec.ts/indent-item-should-expand-toggle-init.json
Received: /home/runner/w
|
list.spec.ts:693:3 › toggle list › indent item should expand toggle:
tests/list.spec.ts#L707
2) list.spec.ts:693:3 › toggle list › indent item should expand toggle ───────────────────────────
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": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
},
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "012"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/list.spec.ts/indent-item-should-expand-toggle-init.json
Received: /home/runner/w
|
list.spec.ts:750:3 › readonly › can expand toggle in readonly mode:
tests/list.spec.ts#L769
3) list.spec.ts:750:3 › readonly › can expand toggle in readonly mode ────────────────────────────
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": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"checked": false,
"collapsed": true,
"order": null
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/list.spec.ts/can-expand-toggle-in-readonly-mode-before-readonly.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/list-readonly-can-expand-toggle-in-readonly-mode/can-expand-toggle-in-readonly-mode-before-readonly-actual.json
767 | await expect(listChildren).not.toBeVisible();
768 |
> 769 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
770 | `${testInfo.title}_before_readonly.json`
771 | );
772 |
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:769:47
|
list.spec.ts:750:3 › readonly › can expand toggle in readonly mode:
tests/list.spec.ts#L769
3) list.spec.ts:750:3 › readonly › can expand toggle in readonly mode ────────────────────────────
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": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"checked": false,
"collapsed": true,
"order": null
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "789"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/list.spec.ts/can-expand-toggle-in-readonly-mode-before-readonly.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/list-readonly-can-expand-toggle-in-readonly-mode-retry1/can-expand-toggle-in-readonly-mode-before-readonly-actual.json
767 | await expect(listChildren).not.toBeVisible();
768 |
> 769 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
770 | `${testInfo.title}_before_readonly.json`
771 | );
772 |
at /home/runner/work/blocksuite/blocksuite/tests/list.spec.ts:769:47
|
edgeless/note/note.spec.ts:299:1 › change note color:
tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ──────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:305:3
|
edgeless/note/note.spec.ts:299:1 › change note color:
tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ──────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:305:3
|
edgeless/note/note.spec.ts:299:1 › change note color:
tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ──────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:305:3
|
edgeless/note/note.spec.ts:299:1 › change note color:
tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ──────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:305:3
|
edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size:
tests/utils/asserts.ts#L888
2) edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ───────────────
Error: expect(received).toBeCloseTo(expected, precision)
Expected: 192
Received: 92
Expected precision: 0
Expected difference: < 0.5
Received difference: 100
at utils/asserts.ts:888
886 | expect(a.y).toBeCloseTo(b.y, 0);
887 | expect(a.w).toBeCloseTo(b.w, 0);
> 888 | expect(a.h).toBeCloseTo(b.h, 0);
| ^
889 | }
890 |
891 | export function assertDOMRectEqual(a: DOMRect, b: DOMRect) {
at assertRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:888:15)
at assertNoteRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:881:3)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/resize.spec.ts:188:3
|
E2E Test (10)
Process completed with exit code 1.
|
latex/block.spec.ts:12:1 › add latex block using slash menu:
tests/latex/block.spec.ts#L17
1) latex/block.spec.ts:12:1 › add latex block using slash menu ───────────────────────────────────
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": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-slash-menu-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-block-using-slash-menu/add-latex-block-using-slash-menu-init-actual.json
15 | await focusRichText(page);
16 |
> 17 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
18 | `${testInfo.title}_init.json`
19 | );
20 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:17:45
|
latex/block.spec.ts:12:1 › add latex block using slash menu:
tests/latex/block.spec.ts#L17
1) latex/block.spec.ts:12:1 › add latex block using slash menu ───────────────────────────────────
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": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-slash-menu-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-block-using-slash-menu-retry1/add-latex-block-using-slash-menu-init-actual.json
15 | await focusRichText(page);
16 |
> 17 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
18 | `${testInfo.title}_init.json`
19 | );
20 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:17:45
|
latex/block.spec.ts:12:1 › add latex block using slash menu:
tests/latex/block.spec.ts#L17
1) latex/block.spec.ts:12:1 › add latex block using slash menu ───────────────────────────────────
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": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-slash-menu-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-block-using-slash-menu-retry2/add-latex-block-using-slash-menu-init-actual.json
15 | await focusRichText(page);
16 |
> 17 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
18 | `${testInfo.title}_init.json`
19 | );
20 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:17:45
|
latex/block.spec.ts:12:1 › add latex block using slash menu:
tests/latex/block.spec.ts#L17
1) latex/block.spec.ts:12:1 › add latex block using slash menu ───────────────────────────────────
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": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-slash-menu-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-block-using-slash-menu-retry3/add-latex-block-using-slash-menu-init-actual.json
15 | await focusRichText(page);
16 |
> 17 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
18 | `${testInfo.title}_init.json`
19 | );
20 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:17:45
|
latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space:
tests/latex/block.spec.ts#L35
2) latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ─────────────────
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": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-space-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-b7605-arkdown-shortcut-with-space/add-latex-block-using-markdown-shortcut-with-space-init-actual.json
33 | await focusRichText(page);
34 |
> 35 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
36 | `${testInfo.title}_init.json`
37 | );
38 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:35:45
|
latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space:
tests/latex/block.spec.ts#L35
2) latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ─────────────────
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": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-space-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-b7605-arkdown-shortcut-with-space-retry1/add-latex-block-using-markdown-shortcut-with-space-init-actual.json
33 | await focusRichText(page);
34 |
> 35 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
36 | `${testInfo.title}_init.json`
37 | );
38 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:35:45
|
latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space:
tests/latex/block.spec.ts#L35
2) latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ─────────────────
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": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-space-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-b7605-arkdown-shortcut-with-space-retry2/add-latex-block-using-markdown-shortcut-with-space-init-actual.json
33 | await focusRichText(page);
34 |
> 35 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
36 | `${testInfo.title}_init.json`
37 | );
38 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:35:45
|
latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space:
tests/latex/block.spec.ts#L35
2) latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ─────────────────
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": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-space-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-b7605-arkdown-shortcut-with-space-retry3/add-latex-block-using-markdown-shortcut-with-space-init-actual.json
33 | await focusRichText(page);
34 |
> 35 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
36 | `${testInfo.title}_init.json`
37 | );
38 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:35:45
|
latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter:
tests/latex/block.spec.ts#L53
3) latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter ─────────────────
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": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-enter-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-e0ffb-arkdown-shortcut-with-enter/add-latex-block-using-markdown-shortcut-with-enter-init-actual.json
51 | await focusRichText(page);
52 |
> 53 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
54 | `${testInfo.title}_init.json`
55 | );
56 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:53:45
|
latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter:
tests/latex/block.spec.ts#L53
3) latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter ─────────────────
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": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-enter-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-e0ffb-arkdown-shortcut-with-enter-retry1/add-latex-block-using-markdown-shortcut-with-enter-init-actual.json
51 | await focusRichText(page);
52 |
> 53 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
54 | `${testInfo.title}_init.json`
55 | );
56 |
at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:53:45
|
paragraph.spec.ts:1057:1 › delete empty text paragraph block should keep children blocks when following custom blocks:
tests/paragraph.spec.ts#L1078
1) paragraph.spec.ts:1057:1 › delete empty text paragraph block should keep children blocks when following custom blocks
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:divider",
"version": 1,
"props": {},
"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": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "5",
"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/paragraph.spec.ts/delete-empty-text-paragraph-block-should-keep-children-blocks-when-following-custom-blocks-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/paragraph-delete-empty-tex-61cbf-hen-following-custom-blocks/delete-empty-text-paragrap-4a2b2-ing-custom-blocks-init-actual.json
1076 | await pressTab(page);
1077 |
> 1078 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
1079 | `${testInfo.title}_init.json`
1080 | );
1081 |
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1078:45
|
paragraph.spec.ts:1057:1 › delete empty text paragraph block should keep children blocks when following custom blocks:
tests/paragraph.spec.ts#L1078
1) paragraph.spec.ts:1057:1 › delete empty text paragraph block should keep children blocks when following custom blocks
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:divider",
"version": 1,
"props": {},
"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": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "5",
"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/paragraph.spec.ts/delete-empty-text-paragraph-block-should-keep-children-blocks-when-following-custom-blocks-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/paragraph-delete-empty-tex-61cbf-hen-following-custom-blocks-retry1/delete-empty-text-paragrap-4a2b2-ing-custom-blocks-init-actual.json
1076 | await pressTab(page);
1077 |
> 1078 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
1079 | `${testInfo.title}_init.json`
1080 | );
1081 |
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1078:45
|
paragraph.spec.ts:1057:1 › delete empty text paragraph block should keep children blocks when following custom blocks:
tests/paragraph.spec.ts#L1078
1) paragraph.spec.ts:1057:1 › delete empty text paragraph block should keep children blocks when following custom blocks
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:divider",
"version": 1,
"props": {},
"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": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "5",
"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/paragraph.spec.ts/delete-empty-text-paragraph-block-should-keep-children-blocks-when-following-custom-blocks-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/paragraph-delete-empty-tex-61cbf-hen-following-custom-blocks-retry2/delete-empty-text-paragrap-4a2b2-ing-custom-blocks-init-actual.json
1076 | await pressTab(page);
1077 |
> 1078 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
1079 | `${testInfo.title}_init.json`
1080 | );
1081 |
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1078:45
|
paragraph.spec.ts:1057:1 › delete empty text paragraph block should keep children blocks when following custom blocks:
tests/paragraph.spec.ts#L1078
1) paragraph.spec.ts:1057:1 › delete empty text paragraph block should keep children blocks when following custom blocks
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:divider",
"version": 1,
"props": {},
"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": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "456"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "5",
"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/paragraph.spec.ts/delete-empty-text-paragraph-block-should-keep-children-blocks-when-following-custom-blocks-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/paragraph-delete-empty-tex-61cbf-hen-following-custom-blocks-retry3/delete-empty-text-paragrap-4a2b2-ing-custom-blocks-init-actual.json
1076 | await pressTab(page);
1077 |
> 1078 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
1079 | `${testInfo.title}_init.json`
1080 | );
1081 |
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:1078:45
|
paragraph.spec.ts:1111:1 › paragraph indent and delete in line start:
tests/paragraph.spec.ts#L1136
2) paragraph.spec.ts:1111:1 › paragraph indent and delete in line start ──────────────────────────
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": "abc"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "efg"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "hij"
}
]
},
"collapsed": false
},
"children": []
}
]
},
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "klm"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "6",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
|
paragraph.spec.ts:1111:1 › paragraph indent and delete in line start:
tests/paragraph.spec.ts#L1136
2) paragraph.spec.ts:1111:1 › paragraph indent and delete in line start ──────────────────────────
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": "abc"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "efg"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "hij"
}
]
},
"collapsed": false
},
"children": []
}
]
},
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "klm"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "6",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text":
|
paragraph.spec.ts:1111:1 › paragraph indent and delete in line start:
tests/paragraph.spec.ts#L1136
2) paragraph.spec.ts:1111:1 › paragraph indent and delete in line start ──────────────────────────
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": "abc"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "efg"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "hij"
}
]
},
"collapsed": false
},
"children": []
}
]
},
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "klm"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "6",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text":
|
paragraph.spec.ts:1111:1 › paragraph indent and delete in line start:
tests/paragraph.spec.ts#L1136
2) paragraph.spec.ts:1111:1 › paragraph indent and delete in line start ──────────────────────────
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": "abc"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "efg"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "hij"
}
]
},
"collapsed": false
},
"children": []
}
]
},
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "klm"
}
]
},
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "6",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text":
|
selection/block.spec.ts:260:1 › should indent multi-selection block:
tests/selection/block.spec.ts#L277
3) selection/block.spec.ts:260:1 › should indent 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": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/selection/block.spec.ts/should-indent-multi-selection-block.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/selection-block-should-indent-multi-selection-block/should-indent-multi-selection-block-actual.json
275 | await page.keyboard.press('Tab');
276 |
> 277 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
278 | `${testInfo.title}.json`
279 | );
280 | });
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:277:45
|
selection/block.spec.ts:260:1 › should indent multi-selection block:
tests/selection/block.spec.ts#L277
3) selection/block.spec.ts:260:1 › should indent 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": []
}
]
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/selection/block.spec.ts/should-indent-multi-selection-block.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/selection-block-should-indent-multi-selection-block-retry1/should-indent-multi-selection-block-actual.json
275 | await page.keyboard.press('Tab');
276 |
> 277 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
278 | `${testInfo.title}.json`
279 | );
280 | });
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:277:45
|
edgeless/shape.spec.ts:184:1 › change shape stroke color:
tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke color ──────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:203:3
|
edgeless/shape.spec.ts:184:1 › change shape stroke color:
tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke color ──────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:203:3
|
edgeless/shape.spec.ts:184:1 › change shape stroke color:
tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke color ──────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:203:3
|
edgeless/shape.spec.ts:184:1 › change shape stroke color:
tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke color ──────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:203:3
|
edgeless/shape.spec.ts:542:1 › change shape style:
tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ─────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:563:3
|
edgeless/shape.spec.ts:542:1 › change shape style:
tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ─────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:563:3
|
edgeless/shape.spec.ts:542:1 › change shape style:
tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ─────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:563:3
|
edgeless/shape.spec.ts:542:1 › change shape style:
tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ─────────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: ""
at utils/asserts.ts:1120
1118 | ) {
1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor);
> 1120 | expect(themeColor).toBeTruthy();
| ^
1121 | const edgelessHexColor = toHex(themeColor);
1122 |
1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`);
at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:563:3
|
edgeless/selection/selection.spec.ts:206:1 › should auto panning when selection rectangle reaches viewport edges:
tests/edgeless/selection/selection.spec.ts#L370
3) edgeless/selection/selection.spec.ts:206:1 › should auto panning when selection rectangle reaches viewport edges
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.affine-edgeless-selected-rect')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.affine-edgeless-selected-rect')
368 | selectedRect = page.locator(selectedRectClass);
369 | await page.waitForTimeout(300);
> 370 | await expect(selectedRect).toBeVisible();
| ^
371 | });
372 |
373 | test('should also update dragging area when viewport changes', async ({
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/selection/selection.spec.ts:370:30
|
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing:
tests/utils/actions/edgeless.ts#L369
4) edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ─────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-slide-menu edgeless-tool-icon-button').filter({ hasText: 'Square' })
- locator resolved to <edgeless-tool-icon-button role="button">…</edgeless-tool-icon-button>
- attempting click action
2 × waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element was detached from the DOM, retrying
at utils/actions/edgeless.ts:369
367 | .locator('edgeless-slide-menu edgeless-tool-icon-button')
368 | .filter({ hasText: shape });
> 369 | await squareShapeButton.click();
| ^
370 | break;
371 | }
372 | }
at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:369:31)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137:3
|
drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting:
tests/drag.spec.ts#L192
1) drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting ──────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "A"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "B"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "C"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "D"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "7",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text
|
drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting:
tests/drag.spec.ts#L192
1) drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting ──────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "A"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "B"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "C"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "D"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "7",
"flavour": "affine:list",
"version": 1,
"props": {
|
drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting:
tests/drag.spec.ts#L192
1) drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting ──────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "A"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "B"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "C"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "D"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "7",
"flavour": "affine:list",
"version": 1,
"props": {
|
drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting:
tests/drag.spec.ts#L192
1) drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting ──────────────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "A"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "B"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "5",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "C"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": [
{
"type": "block",
"id": "6",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "D"
}
]
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
},
{
"type": "block",
"id": "7",
"flavour": "affine:list",
"version": 1,
"props": {
|
edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note:
tests/utils/asserts.ts#L1086
2) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:162:7
|
edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note:
tests/utils/asserts.ts#L1086
2) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:162:7
|
edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note:
tests/utils/asserts.ts#L1086
2) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:162:7
|
edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note:
tests/utils/asserts.ts#L1086
2) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "#ffffff"
Received: "rgb(255, 255, 255)"
at utils/asserts.ts:1086
1084 | });
1085 |
> 1086 | expect(backgroundColor).toEqual(color);
| ^
1087 | }
1088 |
1089 | function toHex(color: string) {
at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:27)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:162:7
|
E2E Test (5)
Process completed with exit code 1.
|
clipboard/clipboard.spec.ts:216:1 › auto identify url:
tests/clipboard/clipboard.spec.ts#L239
1) clipboard/clipboard.spec.ts:216:1 › auto identify url ─────────────────────────────────────────
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": "test "
},
{
"insert": "https://www.google.com",
"attributes": {
"link": "https://www.google.com"
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/clipboard/clipboard.spec.ts/auto-identify-url-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/clipboard-clipboard-auto-identify-url/auto-identify-url-final-actual.json
237 | { clipData }
238 | );
> 239 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
240 | `${testInfo.title}_final.json`
241 | );
242 | });
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/clipboard.spec.ts:239:45
|
clipboard/clipboard.spec.ts:216:1 › auto identify url:
tests/clipboard/clipboard.spec.ts#L239
1) clipboard/clipboard.spec.ts:216:1 › auto identify url ─────────────────────────────────────────
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": "test "
},
{
"insert": "https://www.google.com",
"attributes": {
"link": "https://www.google.com"
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/clipboard/clipboard.spec.ts/auto-identify-url-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/clipboard-clipboard-auto-identify-url-retry1/auto-identify-url-final-actual.json
237 | { clipData }
238 | );
> 239 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
240 | `${testInfo.title}_final.json`
241 | );
242 | });
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/clipboard.spec.ts:239:45
|
clipboard/clipboard.spec.ts:216:1 › auto identify url:
tests/clipboard/clipboard.spec.ts#L239
1) clipboard/clipboard.spec.ts:216:1 › auto identify url ─────────────────────────────────────────
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": "test "
},
{
"insert": "https://www.google.com",
"attributes": {
"link": "https://www.google.com"
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/clipboard/clipboard.spec.ts/auto-identify-url-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/clipboard-clipboard-auto-identify-url-retry2/auto-identify-url-final-actual.json
237 | { clipData }
238 | );
> 239 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
240 | `${testInfo.title}_final.json`
241 | );
242 | });
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/clipboard.spec.ts:239:45
|
clipboard/clipboard.spec.ts:216:1 › auto identify url:
tests/clipboard/clipboard.spec.ts#L239
1) clipboard/clipboard.spec.ts:216:1 › auto identify url ─────────────────────────────────────────
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": "test "
},
{
"insert": "https://www.google.com",
"attributes": {
"link": "https://www.google.com"
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/clipboard/clipboard.spec.ts/auto-identify-url-final.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/clipboard-clipboard-auto-identify-url-retry3/auto-identify-url-final-actual.json
237 | { clipData }
238 | );
> 239 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
240 | `${testInfo.title}_final.json`
241 | );
242 | });
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/clipboard.spec.ts:239:45
|
clipboard/list.spec.ts:382:1 › cut will delete all content:
tests/clipboard/list.spec.ts#L410
2) clipboard/list.spec.ts:382:1 › cut will delete all content, and copy will reappear content ────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/clipboard/list.spec.ts/cut-will-delete-all-content-and-copy-will-reappear-content-after-cut.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/clipboard-list-cut-will-de-04d7b--copy-will-reappear-content/cut-will-delete-all-conten-9f692-pear-content-after-cut-actual.json
408 | await cutByKeyboard(page);
409 | await waitNextFrame(page);
> 410 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
411 | `${testInfo.title}_after-cut.json`
412 | );
413 | await waitNextFrame(page);
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:410:45
|
clipboard/list.spec.ts:382:1 › cut will delete all content:
tests/clipboard/list.spec.ts#L410
2) clipboard/list.spec.ts:382:1 › cut will delete all content, and copy will reappear content ────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/clipboard/list.spec.ts/cut-will-delete-all-content-and-copy-will-reappear-content-after-cut.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/clipboard-list-cut-will-de-04d7b--copy-will-reappear-content-retry1/cut-will-delete-all-conten-9f692-pear-content-after-cut-actual.json
408 | await cutByKeyboard(page);
409 | await waitNextFrame(page);
> 410 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
411 | `${testInfo.title}_after-cut.json`
412 | );
413 | await waitNextFrame(page);
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:410:45
|
clipboard/list.spec.ts:382:1 › cut will delete all content:
tests/clipboard/list.spec.ts#L410
2) clipboard/list.spec.ts:382:1 › cut will delete all content, and copy will reappear content ────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/clipboard/list.spec.ts/cut-will-delete-all-content-and-copy-will-reappear-content-after-cut.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/clipboard-list-cut-will-de-04d7b--copy-will-reappear-content-retry2/cut-will-delete-all-conten-9f692-pear-content-after-cut-actual.json
408 | await cutByKeyboard(page);
409 | await waitNextFrame(page);
> 410 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
411 | `${testInfo.title}_after-cut.json`
412 | );
413 | await waitNextFrame(page);
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:410:45
|
clipboard/list.spec.ts:382:1 › cut will delete all content:
tests/clipboard/list.spec.ts#L410
2) clipboard/list.spec.ts:382:1 › cut will delete all content, and copy will reappear content ────
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": "3",
"flavour": "affine:list",
"version": 1,
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"checked": false,
"collapsed": false,
"order": null
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/clipboard/list.spec.ts/cut-will-delete-all-content-and-copy-will-reappear-content-after-cut.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/clipboard-list-cut-will-de-04d7b--copy-will-reappear-content-retry3/cut-will-delete-all-conten-9f692-pear-content-after-cut-actual.json
408 | await cutByKeyboard(page);
409 | await waitNextFrame(page);
> 410 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
411 | `${testInfo.title}_after-cut.json`
412 | );
413 | await waitNextFrame(page);
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:410:45
|
clipboard/list.spec.ts:423:1 › should copy and paste of database work:
tests/utils/asserts.ts#L742
3) clipboard/list.spec.ts:423:1 › should copy and paste of database work ─────────────────────────
Error: <affine:page>
<affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:note>
</affine:page>
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 6
@@ -1,8 +1,13 @@
<affine:page>
<affine:note
- prop:background="--affine-v2-edgeless-note-white"
+ prop:background={
+ Object {
+ "dark": "#000000",
+ "light": "#ffffff",
+ }
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:439:3
|
clipboard/list.spec.ts:423:1 › should copy and paste of database work:
tests/utils/asserts.ts#L742
3) clipboard/list.spec.ts:423:1 › should copy and paste of database work ─────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:page>
<affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:database
prop:columns="Array [2]"
prop:title="Database 1"
prop:views="Array [1]"
>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:database>
<affine:paragraph
prop:collapsed={false}
prop:type="text"
/>
</affine:note>
</affine:page>
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 6
@@ -1,8 +1,13 @@
<affine:page>
<affine:note
- prop:background="--affine-v2-edgeless-note-white"
+ prop:background={
+ Object {
+ "dark": "#000000",
+ "light": "#ffffff",
+ }
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:439:3
|
link.spec.ts:398:1 › convert link to card:
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
|
link.spec.ts:398:1 › convert link to card:
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
|
link.spec.ts:398:1 › convert link to card:
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
|
link.spec.ts:398:1 › convert link to card:
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
|
linked-page.spec.ts:69:3 › multiple page › should create and switch page work:
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
|
linked-page.spec.ts:69:3 › multiple page › should create and switch page work:
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
|
linked-page.spec.ts:69:3 › multiple page › should create and switch page work:
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
|
linked-page.spec.ts:69:3 › multiple page › should create and switch page work:
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
|
linked-page.spec.ts:460:3 › reference node › can create linked page and jump:
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
|
Lint
Process completed with exit code 1.
|
linked-page.spec.ts:460:3 › reference node › can create linked page and jump:
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
|
edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block:
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
|
edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block:
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
|
edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block:
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
|
edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block:
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
|
edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist:
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
|
edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist:
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
|
edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist:
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
|
edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist:
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
|
E2E Test (7)
Process completed with exit code 1.
|
edgeless/brush.spec.ts:77:1 › add brush element with color:
tests/utils/actions/edgeless.ts#L654
1) edgeless/brush.spec.ts:77:1 › add brush element with color ────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]')
at utils/actions/edgeless.ts:654
652 | .locator('edgeless-color-panel')
653 | .locator(`.color-unit[aria-label="${color}"]`);
> 654 | await colorButton.click();
| ^
655 | }
656 |
657 | export async function selectBrushSize(page: Page, size: string) {
at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:83:9
|
edgeless/brush.spec.ts:77:1 › add brush element with color:
tests/utils/actions/edgeless.ts#L654
1) edgeless/brush.spec.ts:77:1 › add brush element with color ────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]')
at utils/actions/edgeless.ts:654
652 | .locator('edgeless-color-panel')
653 | .locator(`.color-unit[aria-label="${color}"]`);
> 654 | await colorButton.click();
| ^
655 | }
656 |
657 | export async function selectBrushSize(page: Page, size: string) {
at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:83:9
|
edgeless/brush.spec.ts:77:1 › add brush element with color:
tests/utils/actions/edgeless.ts#L654
1) edgeless/brush.spec.ts:77:1 › add brush element with color ────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]')
at utils/actions/edgeless.ts:654
652 | .locator('edgeless-color-panel')
653 | .locator(`.color-unit[aria-label="${color}"]`);
> 654 | await colorButton.click();
| ^
655 | }
656 |
657 | export async function selectBrushSize(page: Page, size: string) {
at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:83:9
|
edgeless/brush.spec.ts:77:1 › add brush element with color:
tests/utils/actions/edgeless.ts#L654
1) edgeless/brush.spec.ts:77:1 › add brush element with color ────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]')
at utils/actions/edgeless.ts:654
652 | .locator('edgeless-color-panel')
653 | .locator(`.color-unit[aria-label="${color}"]`);
> 654 | await colorButton.click();
| ^
655 | }
656 |
657 | export async function selectBrushSize(page: Page, size: string) {
at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:83:9
|
edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush:
tests/utils/actions/edgeless.ts#L654
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ──────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]')
at utils/actions/edgeless.ts:654
652 | .locator('edgeless-color-panel')
653 | .locator(`.color-unit[aria-label="${color}"]`);
> 654 | await colorButton.click();
| ^
655 | }
656 |
657 | export async function selectBrushSize(page: Page, size: string) {
at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:103:9
|
edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush:
tests/utils/actions/edgeless.ts#L654
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ──────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]')
at utils/actions/edgeless.ts:654
652 | .locator('edgeless-color-panel')
653 | .locator(`.color-unit[aria-label="${color}"]`);
> 654 | await colorButton.click();
| ^
655 | }
656 |
657 | export async function selectBrushSize(page: Page, size: string) {
at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:103:9
|
edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush:
tests/utils/actions/edgeless.ts#L654
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ──────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]')
at utils/actions/edgeless.ts:654
652 | .locator('edgeless-color-panel')
653 | .locator(`.color-unit[aria-label="${color}"]`);
> 654 | await colorButton.click();
| ^
655 | }
656 |
657 | export async function selectBrushSize(page: Page, size: string) {
at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:103:9
|
edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush:
tests/utils/actions/edgeless.ts#L654
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ──────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]')
at utils/actions/edgeless.ts:654
652 | .locator('edgeless-color-panel')
653 | .locator(`.color-unit[aria-label="${color}"]`);
> 654 | await colorButton.click();
| ^
655 | }
656 |
657 | export async function selectBrushSize(page: Page, size: string) {
at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:103:9
|
edgeless/brush.spec.ts:121:1 › add brush element with different size:
tests/utils/actions/edgeless.ts#L654
3) edgeless/brush.spec.ts:121:1 › add brush element with different size ──────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]')
at utils/actions/edgeless.ts:654
652 | .locator('edgeless-color-panel')
653 | .locator(`.color-unit[aria-label="${color}"]`);
> 654 | await colorButton.click();
| ^
655 | }
656 |
657 | export async function selectBrushSize(page: Page, size: string) {
at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:128:9
|
edgeless/brush.spec.ts:121:1 › add brush element with different size:
tests/utils/actions/edgeless.ts#L654
3) edgeless/brush.spec.ts:121:1 › add brush element with different size ──────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]')
at utils/actions/edgeless.ts:654
652 | .locator('edgeless-color-panel')
653 | .locator(`.color-unit[aria-label="${color}"]`);
> 654 | await colorButton.click();
| ^
655 | }
656 |
657 | export async function selectBrushSize(page: Page, size: string) {
at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:128:9
|
format-bar.spec.ts:186:1 › should format quick bar be able to format text:
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
|
format-bar.spec.ts:186:1 › should format quick bar be able to format text:
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
|
format-bar.spec.ts:186:1 › should format quick bar be able to format text:
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
|
format-bar.spec.ts:186:1 › should format quick bar be able to format text:
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
|
format-bar.spec.ts:239:1 › should format quick bar be able to change background color:
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
|
format-bar.spec.ts:239:1 › should format quick bar be able to change background color:
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
|
format-bar.spec.ts:239:1 › should format quick bar be able to change background color:
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
|
format-bar.spec.ts:239:1 › should format quick bar be able to change background color:
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
|
format-bar.spec.ts:284:1 › should format quick bar be able to format text when select multiple line:
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
|
format-bar.spec.ts:284:1 › should format quick bar be able to format text when select multiple line:
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
|
hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works:
tests/hotkey/bracket.spec.ts#L59
1) hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works ─────────────────────
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": "he"
},
{
"insert": "llo",
"attributes": {
"code": true
}
},
{
"insert": " world"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/bracket.spec.ts/should-bracket-complete-with-backtick-works.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-bracket-should-bracket-complete-with-backtick-works/should-bracket-complete-with-backtick-works-actual.json
57 | await resetHistory(page);
58 | await type(page, '`');
> 59 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
60 | `${testInfo.title}.json`
61 | );
62 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/bracket.spec.ts:59:45
|
hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works:
tests/hotkey/bracket.spec.ts#L59
1) hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works ─────────────────────
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": "he"
},
{
"insert": "llo",
"attributes": {
"code": true
}
},
{
"insert": " world"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/bracket.spec.ts/should-bracket-complete-with-backtick-works.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-bracket-should-bracket-complete-with-backtick-works-retry1/should-bracket-complete-with-backtick-works-actual.json
57 | await resetHistory(page);
58 | await type(page, '`');
> 59 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
60 | `${testInfo.title}.json`
61 | );
62 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/bracket.spec.ts:59:45
|
hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works:
tests/hotkey/bracket.spec.ts#L59
1) hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works ─────────────────────
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": "he"
},
{
"insert": "llo",
"attributes": {
"code": true
}
},
{
"insert": " world"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/bracket.spec.ts/should-bracket-complete-with-backtick-works.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-bracket-should-bracket-complete-with-backtick-works-retry2/should-bracket-complete-with-backtick-works-actual.json
57 | await resetHistory(page);
58 | await type(page, '`');
> 59 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
60 | `${testInfo.title}.json`
61 | );
62 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/bracket.spec.ts:59:45
|
hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works:
tests/hotkey/bracket.spec.ts#L59
1) hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works ─────────────────────
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": "he"
},
{
"insert": "llo",
"attributes": {
"code": true
}
},
{
"insert": " world"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/bracket.spec.ts/should-bracket-complete-with-backtick-works.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-bracket-should-bracket-complete-with-backtick-works-retry3/should-bracket-complete-with-backtick-works-actual.json
57 | await resetHistory(page);
58 | await type(page, '`');
> 59 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
60 | `${testInfo.title}.json`
61 | );
62 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/bracket.spec.ts:59:45
|
hotkey/hotkey.spec.ts:79:1 › type character jump out code node:
tests/hotkey/hotkey.spec.ts#L86
2) hotkey/hotkey.spec.ts:79:1 › type character jump out code node ────────────────────────────────
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": "Hello",
"attributes": {
"code": true
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/type-character-jump-out-code-node-1.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-type-character-jump-out-code-node/type-character-jump-out-code-node-1-actual.json
84 | await setInlineRangeInSelectedRichText(page, 0, 5);
85 | await inlineCode(page);
> 86 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
87 | `${testInfo.title}_1.json`
88 | );
89 | await focusRichText(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:86:45
|
hotkey/hotkey.spec.ts:79:1 › type character jump out code node:
tests/hotkey/hotkey.spec.ts#L86
2) hotkey/hotkey.spec.ts:79:1 › type character jump out code node ────────────────────────────────
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": "Hello",
"attributes": {
"code": true
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/type-character-jump-out-code-node-1.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-type-character-jump-out-code-node-retry1/type-character-jump-out-code-node-1-actual.json
84 | await setInlineRangeInSelectedRichText(page, 0, 5);
85 | await inlineCode(page);
> 86 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
87 | `${testInfo.title}_1.json`
88 | );
89 | await focusRichText(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:86:45
|
hotkey/hotkey.spec.ts:79:1 › type character jump out code node:
tests/hotkey/hotkey.spec.ts#L86
2) hotkey/hotkey.spec.ts:79:1 › type character jump out code node ────────────────────────────────
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": "Hello",
"attributes": {
"code": true
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/type-character-jump-out-code-node-1.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-type-character-jump-out-code-node-retry2/type-character-jump-out-code-node-1-actual.json
84 | await setInlineRangeInSelectedRichText(page, 0, 5);
85 | await inlineCode(page);
> 86 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
87 | `${testInfo.title}_1.json`
88 | );
89 | await focusRichText(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:86:45
|
hotkey/hotkey.spec.ts:79:1 › type character jump out code node:
tests/hotkey/hotkey.spec.ts#L86
2) hotkey/hotkey.spec.ts:79:1 › type character jump out code node ────────────────────────────────
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": "Hello",
"attributes": {
"code": true
}
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/type-character-jump-out-code-node-1.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-type-character-jump-out-code-node-retry3/type-character-jump-out-code-node-1-actual.json
84 | await setInlineRangeInSelectedRichText(page, 0, 5);
85 | await inlineCode(page);
> 86 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
87 | `${testInfo.title}_1.json`
88 | );
89 | await focusRichText(page);
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:86:45
|
hotkey/hotkey.spec.ts:118:1 › use formatted cursor with hotkey:
tests/hotkey/hotkey.spec.ts#L136
3) hotkey/hotkey.spec.ts:118:1 › use formatted cursor with hotkey ────────────────────────────────
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"
},
{
"insert": "bbb",
"attributes": {
"italic": true
}
},
{
"insert": "ccc",
"attributes": {
"italic": true,
"bold": true
}
},
{
"insert": "ddd",
"attributes": {
"bold": true
}
},
{
"insert": "eee"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/use-formatted-cursor-with-hotkey-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-use-formatted-cursor-with-hotkey/use-formatted-cursor-with-hotkey-init-actual.json
134 | await type(page, 'eee');
135 |
> 136 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
137 | `${testInfo.title}_init.json`
138 | );
139 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:136:45
|
hotkey/hotkey.spec.ts:118:1 › use formatted cursor with hotkey:
tests/hotkey/hotkey.spec.ts#L136
3) hotkey/hotkey.spec.ts:118:1 › use formatted cursor with hotkey ────────────────────────────────
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"
},
{
"insert": "bbb",
"attributes": {
"italic": true
}
},
{
"insert": "ccc",
"attributes": {
"italic": true,
"bold": true
}
},
{
"insert": "ddd",
"attributes": {
"bold": true
}
},
{
"insert": "eee"
}
]
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/hotkey.spec.ts/use-formatted-cursor-with-hotkey-init.json
Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-hotkey-use-formatted-cursor-with-hotkey-retry1/use-formatted-cursor-with-hotkey-init-actual.json
134 | await type(page, 'eee');
135 |
> 136 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
| ^
137 | `${testInfo.title}_init.json`
138 | );
139 |
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:136:45
|
attachment.spec.ts:127:1 › can insert attachment from slash menu:
tests/utils/asserts.ts#L742
1) attachment.spec.ts:127:1 › can insert attachment from slash menu ──────────────────────────────
Error: <affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "light": "#ffffff",
- },
- }
- }"
+ }
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:143:3
|
attachment.spec.ts:127:1 › can insert attachment from slash menu:
tests/utils/asserts.ts#L742
1) attachment.spec.ts:127:1 › can insert attachment from slash menu ──────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "light": "#ffffff",
- },
- }
- }"
+ }
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:143:3
|
attachment.spec.ts:127:1 › can insert attachment from slash menu:
tests/attachment.spec.ts#L69
1) attachment.spec.ts:127:1 › can insert attachment from slash menu ──────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser"
=========================== logs ===========================
waiting for event "filechooser"
============================================================
67 | await expect(slashMenu).toBeVisible();
68 |
> 69 | const fileChooser = page.waitForEvent('filechooser');
| ^
70 | await pressEnter(page);
71 | await sleep(100);
72 | await (await fileChooser).setFiles(FILE_PATH);
at insertAttachment (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:69:30)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:135:3
|
attachment.spec.ts:127:1 › can insert attachment from slash menu:
tests/attachment.spec.ts#L69
1) attachment.spec.ts:127:1 › can insert attachment from slash menu ──────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser"
=========================== logs ===========================
waiting for event "filechooser"
============================================================
67 | await expect(slashMenu).toBeVisible();
68 |
> 69 | const fileChooser = page.waitForEvent('filechooser');
| ^
70 | await pressEnter(page);
71 | await sleep(100);
72 | await (await fileChooser).setFiles(FILE_PATH);
at insertAttachment (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:69:30)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:135:3
|
attachment.spec.ts:186:1 › should undo/redo works for attachment:
tests/utils/asserts.ts#L742
2) attachment.spec.ts:186:1 › should undo/redo works for attachment ──────────────────────────────
Error: <affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "light": "#ffffff",
- },
- }
- }"
+ }
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:198:3
|
attachment.spec.ts:186:1 › should undo/redo works for attachment:
tests/utils/asserts.ts#L742
2) attachment.spec.ts:186:1 › should undo/redo works for attachment ──────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "light": "#ffffff",
- },
- }
- }"
+ }
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:198:3
|
attachment.spec.ts:186:1 › should undo/redo works for attachment:
tests/utils/asserts.ts#L742
2) attachment.spec.ts:186:1 › should undo/redo works for attachment ──────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "light": "#ffffff",
- },
- }
- }"
+ }
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:198:3
|
attachment.spec.ts:186:1 › should undo/redo works for attachment:
tests/utils/asserts.ts#L742
2) attachment.spec.ts:186:1 › should undo/redo works for attachment ──────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:attachment
prop:embed={false}
prop:index="a0"
prop:lockedBySelf={false}
prop:name="test-card-1.png"
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:style="horizontalThin"
prop:type="image/png"
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "light": "#ffffff",
- },
- }
- }"
+ }
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:198:3
|
attachment.spec.ts:362:1 › should turn attachment to image works:
tests/utils/asserts.ts#L742
3) attachment.spec.ts:362:1 › should turn attachment to image works ──────────────────────────────
Error: <affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:image
prop:caption=""
prop:height={0}
prop:index="a0"
prop:lockedBySelf={false}
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:width={0}
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "light": "#ffffff",
- },
- }
- }"
+ }
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:375:3
|
attachment.spec.ts:362:1 › should turn attachment to image works:
tests/utils/asserts.ts#L742
3) attachment.spec.ts:362:1 › should turn attachment to image works ──────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: <affine:note
prop:background={
Object {
"dark": "#000000",
"light": "#ffffff",
}
}
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box",
},
}
}
prop:hidden={false}
prop:index="a0"
prop:lockedBySelf={false}
>
<affine:image
prop:caption=""
prop:height={0}
prop:index="a0"
prop:lockedBySelf={false}
prop:rotate={0}
prop:size={45801}
prop:sourceId="ejImogf-Tb7AuKY-v94uz1zuOJbClqK-tWBxVr_ksGA="
prop:width={0}
/>
</affine:note>
expect(received).toEqual(expected) // deep equality
- Expected - 7
+ Received + 5
@@ -1,14 +1,12 @@
<affine:note
- prop:background="{
+ prop:background={
Object {
- "style": Object {
- "dark": "#000000",
+ "dark": "#000000",
- "light": "#ffffff",
+ "light": "#ffffff",
- },
- }
- }"
+ }
+ }
prop:displayMode="both"
prop:edgeless={
Object {
"style": Object {
"borderRadius": 8,
at utils/asserts.ts:742
740 | printFunctionName: false,
741 | });
> 742 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart());
| ^
743 | }
744 |
745 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html';
at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:742:38)
at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:375:3
|
Build & Test
Process completed with exit code 1.
|
Install Dependencies
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (19)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (4)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (17)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (10)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (15)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (9)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (9)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit Test (4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (12)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (8)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (8)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (11)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (11)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
E2E Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (16)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (7)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (6)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (13)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (14)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
E2E Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Build & Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
🎭 Playwright Run Summary
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.5s)
|
🎭 Playwright Run Summary
1 failed
selection/native.spec.ts:1109:1 › indent native multi-selection block ──────────────────────────
48 passed (54.0s)
|
🎭 Playwright Run Summary
2 failed
code/crud.spec.ts:246:1 › delete code block in more menu ───────────────────────────────────────
code/crud.spec.ts:628:1 › format text in code block ────────────────────────────────────────────
4 skipped
43 passed (58.8s)
|
🎭 Playwright Run Summary
49 passed (52.9s)
|
🎭 Playwright Run Summary
6 failed
list.spec.ts:649:3 › toggle list › click toggle icon should collapsed list ─────────────────────
list.spec.ts:693:3 › toggle list › indent item should expand toggle ────────────────────────────
list.spec.ts:750:3 › readonly › can expand toggle in readonly mode ─────────────────────────────
paragraph.spec.ts:429:1 › should indent and unindent works with children ───────────────────────
paragraph.spec.ts:552:1 › paragraph with child block should work at enter ──────────────────────
paragraph.spec.ts:575:1 › should delete paragraph block child can hold cursor in correct position
43 passed (1.2m)
|
🎭 Playwright Run Summary
1 failed
edgeless/note/note.spec.ts:299:1 › change note color ───────────────────────────────────────────
1 flaky
edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ────────────────
2 skipped
45 passed (1.1m)
|
🎭 Playwright Run Summary
4 failed
latex/block.spec.ts:12:1 › add latex block using slash menu ────────────────────────────────────
latex/block.spec.ts:28:1 › add latex block using markdown shortcut with space ──────────────────
latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter ──────────────────
link.spec.ts:34:1 › basic link ─────────────────────────────────────────────────────────────────
1 skipped
44 passed (1.3m)
|
🎭 Playwright Run Summary
10 skipped
39 passed (1.4m)
|
🎭 Playwright Run Summary
7 failed
paragraph.spec.ts:1057:1 › delete empty text paragraph block should keep children blocks when following custom blocks
paragraph.spec.ts:1111:1 › paragraph indent and delete in line start ───────────────────────────
selection/block.spec.ts:260:1 › should indent multi-selection block ────────────────────────────
selection/block.spec.ts:282:1 › should unindent multi-selection block ──────────────────────────
selection/block.spec.ts:1094:1 › should not draw rect for sub selected blocks when entering tab key
selection/block.spec.ts:1176:1 › click bottom of page and if the last is embed block, editor should insert a new editable block
selection/native.spec.ts:85:1 › native range delete with indent ────────────────────────────────
42 passed (1.5m)
|
🎭 Playwright Run Summary
2 failed
edgeless/shape.spec.ts:184:1 › change shape stroke color ───────────────────────────────────────
edgeless/shape.spec.ts:542:1 › change shape style ──────────────────────────────────────────────
2 flaky
edgeless/selection/selection.spec.ts:206:1 › should auto panning when selection rectangle reaches viewport edges
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ──────────────────────────
3 skipped
42 passed (1.6m)
|
🎭 Playwright Run Summary
49 passed (1.6m)
|
🎭 Playwright Run Summary
1 skipped
48 passed (1.5m)
|
🎭 Playwright Run Summary
2 failed
drag.spec.ts:167:1 › move to the last block of each level in multi-level nesting ───────────────
edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note
6 skipped
41 passed (1.7m)
|
🎭 Playwright Run Summary
9 failed
clipboard/clipboard.spec.ts:216:1 › auto identify url ──────────────────────────────────────────
clipboard/list.spec.ts:382:1 › cut will delete all content, and copy will reappear content ─────
clipboard/list.spec.ts:423:1 › should copy and paste of database work ──────────────────────────
clipboard/list.spec.ts:567:1 › paste note block with background ────────────────────────────────
clipboard/list.spec.ts:609:1 › should keep paragraph block's type when pasting at the start of empty paragraph block except type text
code/copy-paste.spec.ts:107:1 › code block has content, click code block copy menu, copy whole code block
code/copy-paste.spec.ts:129:1 › code block is empty, click code block copy menu, copy the empty code block
code/crud.spec.ts:49:1 › use markdown syntax can create code block ─────────────────────────────
code/crud.spec.ts:203:1 › duplicate code block ─────────────────────────────────────────────────
1 skipped
39 passed (1.6m)
|
🎭 Playwright Run Summary
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)
|
🎭 Playwright Run Summary
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)
|
🎭 Playwright Run Summary
3 failed
edgeless/brush.spec.ts:77:1 › add brush element with color ─────────────────────────────────────
edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ───────────
edgeless/brush.spec.ts:121:1 › add brush element with different size ───────────────────────────
46 passed (1.8m)
|
🎭 Playwright Run Summary
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)
|
🎭 Playwright Run Summary
11 failed
hotkey/bracket.spec.ts:48:1 › should bracket complete with backtick works ──────────────────────
hotkey/hotkey.spec.ts:79:1 › type character jump out code node ─────────────────────────────────
hotkey/hotkey.spec.ts:118:1 › use formatted cursor with hotkey ─────────────────────────────────
hotkey/hotkey.spec.ts:165:1 › use formatted cursor with hotkey at empty line ───────────────────
hotkey/hotkey.spec.ts:181:1 › should single line format hotkey work ────────────────────────────
hotkey/hotkey.spec.ts:219:1 › should hotkey work in paragraph ──────────────────────────────────
hotkey/hotkey.spec.ts:274:1 › should cut work single line ──────────────────────────────────────
hotkey/hotkey.spec.ts:457:1 › Enter key should as expected after setting heading by shortkey ───
hotkey/multiline.spec.ts:33:1 › should multiple line format hotkey work ────────────────────────
hotkey/multiline.spec.ts:72:1 › multi line rich-text inline code hotkey ────────────────────────
hotkey/multiline.spec.ts:100:1 › should cut work multiple line ─────────────────────────────────
38 passed (2.0m)
|
🎭 Playwright Run Summary
12 failed
attachment.spec.ts:127:1 › can insert attachment from slash menu ───────────────────────────────
attachment.spec.ts:186:1 › should undo/redo works for attachment ───────────────────────────────
attachment.spec.ts:362:1 › should turn attachment to image works ───────────────────────────────
attachment.spec.ts:460:1 › should attachment can be deleted ────────────────────────────────────
bookmark.spec.ts:79:1 › create bookmark by slash menu ──────────────────────────────────────────
bookmark.spec.ts:86:1 › covert bookmark block to link text ─────────────────────────────────────
bookmark.spec.ts:119:1 › copy url to create bookmark in edgeless mode ──────────────────────────
bookmark.spec.ts:241:3 › embed card toolbar › copy bookmark url by copy button ─────────────────
bookmark.spec.ts:356:3 › embed youtube card › create youtube card by slash menu ────────────────
bookmark.spec.ts:364:3 › embed youtube card › change youtube card style ────────────────────────
bookmark.spec.ts:411:3 › embed figma card › create figma card by slash menu ────────────────────
bookmark.spec.ts:419:3 › embed figma card › change figma card style ────────────────────────────
1 flaky
attachment.spec.ts:708:1 › press backspace after bookmark block can select bookmark block ──────
2 skipped
34 passed (2.1m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-results-e2e-1
|
38.8 MB |
|
test-results-e2e-10
|
8.21 MB |
|
test-results-e2e-12
|
32.4 MB |
|
test-results-e2e-13
|
28.8 MB |
|
test-results-e2e-14
|
28.4 MB |
|
test-results-e2e-15
|
10.5 MB |
|
test-results-e2e-16
|
25.9 MB |
|
test-results-e2e-17
|
15.4 MB |
|
test-results-e2e-18
|
19.3 MB |
|
test-results-e2e-19
|
2.62 MB |
|
test-results-e2e-2
|
25.4 MB |
|
test-results-e2e-20
|
5.81 MB |
|
test-results-e2e-3
|
5.09 MB |
|
test-results-e2e-5
|
8.4 MB |
|
test-results-e2e-6
|
10.8 MB |
|
test-results-e2e-7
|
6.37 MB |
|