fix: saving-loading meta info #376
Merged
Annotations
8 errors, 5 warnings, and 1 notice
tests/utils/editor.ts#L37
1) [chromium] › copypaste/copypaste.test.ts:36:7 › Check Copy/Paste Functionality › Headings should keep formatting
Error: Snapshot comparison failed:
{
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "heading",
"attrs": {
"textAlignment": "left",
"level": 1
},
"content": [
{
"type": "text",
"text": "Heading"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "heading",
"attrs": {
"textAlignment": "left",
"level": 2
},
"content": [
{
"type": "text",
"text": "Heading"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "2",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "heading",
"attrs": {
"textAlignment": "left",
"level": 3
},
"content": [
{
"type": "text",
"text": "Heading"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "3",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "paragraph",
"attrs": {
"textAlignment": "left"
}
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "5",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "heading",
"attrs": {
"textAlignment": "left",
"level": 1
},
"content": [
{
"type": "text",
"marks": [
{
"type": "bold"
}
],
"text": "Heading"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "6",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "heading",
"attrs": {
"textAlignment": "left",
"level": 2
},
|
tests/utils/editor.ts#L37
2) [chromium] › keyboardhandlers/keyboardhandlers.test.ts:40:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves marks
Error: Snapshot comparison failed:
{
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "heading",
"attrs": {
"textAlignment": "left",
"level": 1
},
"content": [
{
"type": "text",
"marks": [
{
"type": "italic"
}
],
"text": "H"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "2",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "paragraphheading",
"attrs": {
"textAlignment": "left"
},
"content": [
{
"type": "text",
"marks": [
{
"type": "italic"
}
],
"text": "eading"
}
],
"level": 1
}
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "paragraph",
"attrs": {
"textAlignment": "left"
}
}
]
}
]
}
]
}
Expected: /home/runner/work/BlockNote/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json
Received: /home/runner/work/BlockNote/BlockNote/test-results/keyboardhandlers-keyboardhandlers-Check-Keyboard-Handlers-Behaviour-Check-Enter-preserves-marks-chromium/enterPreservesMarks-json-actual.json
at ../utils/editor.ts:37
35 | // Remove id from docs
36 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 37 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
38 | }
39 |
at compareDocToSnapshot (/home/runner/work/BlockNote/BlockNote/tests/utils/editor.ts:37:15)
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:55:5
|
tests/end-to-end/colors/colors.test.ts#L40
3) [webkit] › colors/colors.test.ts:20:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark
Error: Screenshot comparison failed:
12027 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/BlockNote/BlockNote/tests/end-to-end/colors/colors.test.ts-snapshots/textColorMark-webkit-linux.png
Received: /home/runner/work/BlockNote/BlockNote/test-results/colors-colors-Check-Background-Text-Color-Functionality-Should-be-able-to-apply-a-text-color-mark-webkit/textColorMark-actual.png
Diff: /home/runner/work/BlockNote/BlockNote/test-results/colors-colors-Check-Background-Text-Color-Functionality-Should-be-able-to-apply-a-text-color-mark-webkit/textColorMark-diff.png
38 | await page.waitForTimeout(500);
39 |
> 40 | expect(await page.screenshot()).toMatchSnapshot("textColorMark.png");
| ^
41 | });
42 | test("Should be able to apply a background color mark", async ({ page }) => {
43 | await focusOnEditor(page);
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/colors/colors.test.ts:40:37
|
tests/end-to-end/colors/colors.test.ts#L62
4) [webkit] › colors/colors.test.ts:42:7 › Check Background & Text Color Functionality › Should be able to apply a background color mark
Error: Screenshot comparison failed:
12027 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/BlockNote/BlockNote/tests/end-to-end/colors/colors.test.ts-snapshots/backgroundColorMark-webkit-linux.png
Received: /home/runner/work/BlockNote/BlockNote/test-results/colors-colors-Check-Background-Text-Color-Func-56edd-Should-be-able-to-apply-a-background-color-mark-webkit/backgroundColorMark-actual.png
Diff: /home/runner/work/BlockNote/BlockNote/test-results/colors-colors-Check-Background-Text-Color-Func-56edd-Should-be-able-to-apply-a-background-color-mark-webkit/backgroundColorMark-diff.png
60 | await page.waitForTimeout(500);
61 |
> 62 | expect(await page.screenshot()).toMatchSnapshot("backgroundColorMark.png");
| ^
63 | });
64 | test("Should be able to set block text color", async ({ page }) => {
65 | await focusOnEditor(page);
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/colors/colors.test.ts:62:37
|
tests/end-to-end/draghandle/draghandle.test.ts#L58
5) [webkit] › draghandle/draghandle.test.ts:49:7 › Check Draghandle functionality › Draghandle should display next to correct block
Error: expect(received).toBeTruthy()
Received: false
56 | const h3y = await getDragHandleYCoord(page, H_THREE_BLOCK_SELECTOR);
57 |
> 58 | expect(h1y < h2y && h1y < h3y && h2y < h3y).toBeTruthy();
| ^
59 | });
60 |
61 | test("Draghandle should display next to correct nested block", async () => {
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/draghandle/draghandle.test.ts:58:49
|
tests/utils/editor.ts#L37
6) [webkit] › keyboardhandlers/keyboardhandlers.test.ts:18:7 › Check Keyboard Handlers' Behaviour › Check Enter when selection is not empty
Error: Snapshot comparison failed:
{
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "heading",
"attrs": {
"textAlignment": "left",
"level": 1
},
"content": [
{
"type": "text",
"text": "H"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "3",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "paragraph",
"attrs": {
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "eading"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "heading",
"attrs": {
"textAlignment": "left",
"level": 2
},
"content": [
{
"type": "text",
"text": "Heading"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "2",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "paragraph",
"attrs": {
"textAlignment": "left"
}
}
]
}
]
}
]
}
Expected: /home/runner/work/BlockNote/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json
Received: /home/runner/work/BlockNote/BlockNote/test-results/keyboardhandlers-keyboardhandlers-Check-Keyboa-50885-haviour-Check-Enter-when-selection-is-not-empty-webkit/enterSelectionNotEmpty-json-actual.json
at ../utils/editor.ts:37
35 | // Remove id from docs
36 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 37 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
38 | }
39 |
at compareDocToSnapshot (/home/runner/work/BlockNote/BlockNote/tests/utils/editor.ts:37:15)
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:38:5
|
tests/utils/editor.ts#L37
7) [webkit] › keyboardhandlers/keyboardhandlers.test.ts:40:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves marks
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
{
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "heading",
"attrs": {
"textAlignment": "left",
"level": 1
},
"content": [
{
"type": "text",
"marks": [
{
"type": "italic"
}
],
"text": "H"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "2",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "paragraphheading",
"attrs": {
"textAlignment": "left"
},
"content": [
{
"type": "text",
"marks": [
{
"type": "italic"
}
],
"text": "eading"
}
],
"level": 1
}
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "paragraph",
"attrs": {
"textAlignment": "left"
}
}
]
}
]
}
]
}
Expected: /home/runner/work/BlockNote/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-webkit-linux.json
Received: /home/runner/work/BlockNote/BlockNote/test-results/keyboardhandlers-keyboardhandlers-Check-Keyboard-Handlers-Behaviour-Check-Enter-preserves-marks-webkit-retry2/enterPreservesMarks-json-actual.json
at ../utils/editor.ts:37
35 | // Remove id from docs
36 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 37 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
38 | }
39 |
at compareDocToSnapshot (/home/runner/work/BlockNote/BlockNote/tests/utils/editor.ts:37:15)
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:55:5
|
tests/utils/editor.ts#L37
8) [webkit] › keyboardhandlers/keyboardhandlers.test.ts:85:7 › Check Keyboard Handlers' Behaviour › Check Backspace preserves marks
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
{
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "paragraph",
"attrs": {
"textAlignment": "left"
},
"content": [
{
"type": "text",
"text": "ParagraphPa"
},
{
"type": "text",
"marks": [
{
"type": "italic"
}
],
"text": "ragra"
},
{
"type": "text",
"text": "ph"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "2",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "paragraph",
"attrs": {
"textAlignment": "left"
}
}
]
}
]
}
]
}
Expected: /home/runner/work/BlockNote/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json
Received: /home/runner/work/BlockNote/BlockNote/test-results/keyboardhandlers-keyboardhandlers-Check-Keyboard-Handlers-Behaviour-Check-Backspace-preserves-marks-webkit-retry1/backspacePreservesMarks-json-actual.json
at ../utils/editor.ts:37
35 | // Remove id from docs
36 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 37 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
38 | }
39 |
at compareDocToSnapshot (/home/runner/work/BlockNote/BlockNote/tests/utils/editor.ts:37:15)
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:108:5
|
[webkit] › draghandle/draghandle.test.ts#L1
[webkit] › draghandle/draghandle.test.ts took 33.5s
|
[webkit] › colors/colors.test.ts#L1
[webkit] › colors/colors.test.ts took 31.7s
|
[webkit] › keyboardhandlers/keyboardhandlers.test.ts#L1
[webkit] › keyboardhandlers/keyboardhandlers.test.ts took 29.0s
|
[webkit] › slashmenu/slashmenu.test.ts#L1
[webkit] › slashmenu/slashmenu.test.ts took 23.5s
|
[webkit] › images/images.test.ts#L1
[webkit] › images/images.test.ts took 23.1s
|
8 flaky
[chromium] › copypaste/copypaste.test.ts:36:7 › Check Copy/Paste Functionality › Headings should keep formatting
[chromium] › keyboardhandlers/keyboardhandlers.test.ts:40:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves marks
[webkit] › colors/colors.test.ts:20:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark
[webkit] › colors/colors.test.ts:42:7 › Check Background & Text Color Functionality › Should be able to apply a background color mark
[webkit] › draghandle/draghandle.test.ts:49:7 › Check Draghandle functionality › Draghandle should display next to correct block
[webkit] › keyboardhandlers/keyboardhandlers.test.ts:18:7 › Check Keyboard Handlers' Behaviour › Check Enter when selection is not empty
[webkit] › keyboardhandlers/keyboardhandlers.test.ts:40:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves marks
[webkit] › keyboardhandlers/keyboardhandlers.test.ts:85:7 › Check Keyboard Handlers' Behaviour › Check Backspace preserves marks
19 skipped
162 passed (7.6m)
|
The logs for this run have expired and are no longer available.
Loading