fix(core): preserve whitespace edge cases but collapse html formatting newlines (BLO-1065) #7005
Annotations
25 errors and 4 notices
|
Playwright Tests - chromium
Process completed with exit code 1.
|
|
[chromium] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image:
tests/src/utils/editor.ts#L47
3) [chromium] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -17,11 +17,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 154
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--cb35f-uld-be-able-to-resize-image-chromium-retry2/resizeImage-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:101:5
|
|
[chromium] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image:
tests/src/utils/editor.ts#L47
3) [chromium] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -17,11 +17,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 154
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--cb35f-uld-be-able-to-resize-image-chromium-retry1/resizeImage-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:101:5
|
|
[chromium] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image:
tests/src/utils/editor.ts#L47
3) [chromium] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
Error: expect(string).toMatchSnapshot(expected)
@@ -17,11 +17,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 154
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--cb35f-uld-be-able-to-resize-image-chromium/resizeImage-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:101:5
|
|
[chromium] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/src/end-to-end/images/images.test.ts#L61
2) [chromium] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(Buffer).toMatchSnapshot(expected)
34510 pixels (ratio 0.04 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/embed-image-chromium-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-chromium-retry2/embed-image-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-chromium-retry2/embed-image-diff.png
59 | await page.waitForTimeout(500);
60 | await compareDocToSnapshot(page, "embedImage");
> 61 | expect(await page.screenshot()).toMatchSnapshot("embed-image.png");
| ^
62 | });
63 | test("Should be able to resize image", async ({ page }) => {
64 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:61:37
|
|
[chromium] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/src/end-to-end/images/images.test.ts#L61
2) [chromium] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(Buffer).toMatchSnapshot(expected)
34510 pixels (ratio 0.04 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/embed-image-chromium-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-chromium-retry1/embed-image-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-chromium-retry1/embed-image-diff.png
59 | await page.waitForTimeout(500);
60 | await compareDocToSnapshot(page, "embedImage");
> 61 | expect(await page.screenshot()).toMatchSnapshot("embed-image.png");
| ^
62 | });
63 | test("Should be able to resize image", async ({ page }) => {
64 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:61:37
|
|
[chromium] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/src/end-to-end/images/images.test.ts#L61
2) [chromium] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Error: expect(Buffer).toMatchSnapshot(expected)
34510 pixels (ratio 0.04 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/embed-image-chromium-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-chromium/embed-image-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-chromium/embed-image-diff.png
59 | await page.waitForTimeout(500);
60 | await compareDocToSnapshot(page, "embedImage");
> 61 | expect(await page.screenshot()).toMatchSnapshot("embed-image.png");
| ^
62 | });
63 | test("Should be able to resize image", async ({ page }) => {
64 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:61:37
|
|
[chromium] › src/end-to-end/copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props:
tests/src/utils/editor.ts#L47
1) [chromium] › src/end-to-end/copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -39,11 +39,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 154
}
}
]
},
{
@@ -75,11 +75,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 154
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/copypaste-copypaste-Check--8319b-ty-Images-should-keep-props-chromium-retry2/images-json-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/copypaste/copypaste.test.ts:189:5
|
|
[chromium] › src/end-to-end/copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props:
tests/src/utils/editor.ts#L47
1) [chromium] › src/end-to-end/copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -39,11 +39,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 154
}
}
]
},
{
@@ -75,11 +75,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 154
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/copypaste-copypaste-Check--8319b-ty-Images-should-keep-props-chromium-retry1/images-json-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/copypaste/copypaste.test.ts:189:5
|
|
[chromium] › src/end-to-end/copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props:
tests/src/utils/editor.ts#L47
1) [chromium] › src/end-to-end/copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props
Error: expect(string).toMatchSnapshot(expected)
@@ -39,11 +39,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 154
}
}
]
},
{
@@ -75,11 +75,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 154
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/copypaste-copypaste-Check--8319b-ty-Images-should-keep-props-chromium/images-json-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/copypaste/copypaste.test.ts:189:5
|
|
Playwright Tests - firefox
Process completed with exit code 1.
|
|
[firefox] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image:
tests/src/utils/editor.ts#L47
2) [firefox] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -17,11 +17,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 138
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--cb35f-uld-be-able-to-resize-image-firefox-retry2/resizeImage-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:101:5
|
|
[firefox] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image:
tests/src/utils/editor.ts#L47
2) [firefox] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -17,11 +17,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 138
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--cb35f-uld-be-able-to-resize-image-firefox-retry1/resizeImage-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:101:5
|
|
[firefox] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image:
tests/src/utils/editor.ts#L47
2) [firefox] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
Error: expect(string).toMatchSnapshot(expected)
@@ -17,11 +17,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 138
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--cb35f-uld-be-able-to-resize-image-firefox/resizeImage-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:101:5
|
|
[firefox] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/src/end-to-end/images/images.test.ts#L61
1) [firefox] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(Buffer).toMatchSnapshot(expected)
33892 pixels (ratio 0.04 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/embed-image-firefox-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-firefox-retry2/embed-image-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-firefox-retry2/embed-image-diff.png
59 | await page.waitForTimeout(500);
60 | await compareDocToSnapshot(page, "embedImage");
> 61 | expect(await page.screenshot()).toMatchSnapshot("embed-image.png");
| ^
62 | });
63 | test("Should be able to resize image", async ({ page }) => {
64 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:61:37
|
|
[firefox] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/src/end-to-end/images/images.test.ts#L61
1) [firefox] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(Buffer).toMatchSnapshot(expected)
33892 pixels (ratio 0.04 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/embed-image-firefox-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-firefox-retry1/embed-image-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-firefox-retry1/embed-image-diff.png
59 | await page.waitForTimeout(500);
60 | await compareDocToSnapshot(page, "embedImage");
> 61 | expect(await page.screenshot()).toMatchSnapshot("embed-image.png");
| ^
62 | });
63 | test("Should be able to resize image", async ({ page }) => {
64 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:61:37
|
|
[firefox] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/src/end-to-end/images/images.test.ts#L61
1) [firefox] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Error: expect(Buffer).toMatchSnapshot(expected)
33892 pixels (ratio 0.04 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/embed-image-firefox-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-firefox/embed-image-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-firefox/embed-image-diff.png
59 | await page.waitForTimeout(500);
60 | await compareDocToSnapshot(page, "embedImage");
> 61 | expect(await page.screenshot()).toMatchSnapshot("embed-image.png");
| ^
62 | });
63 | test("Should be able to resize image", async ({ page }) => {
64 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:61:37
|
|
Playwright Tests - webkit
Process completed with exit code 1.
|
|
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:18:7 › Check Keyboard Handlers' Behaviour › Check Enter when selection is not empty:
tests/src/utils/editor.ts#L47
3) [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:18:7 › Check Keyboard Handlers' Behaviour › Check Enter when selection is not empty
Error: expect(string).toMatchSnapshot(expected)
@@ -38,17 +38,11 @@
"type": "paragraph",
"attrs": {
"backgroundColor": "default",
"textColor": "default",
"textAlignment": "left"
- },
- "content": [
- {
- "type": "text",
- "text": "g"
- }
- ]
+ }
}
]
},
{
"type": "blockContainer",
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-50885-when-selection-is-not-empty-webkit/enterSelectionNotEmpty-json-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:37:5
|
|
[webkit] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image:
tests/src/utils/editor.ts#L47
2) [webkit] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -17,11 +17,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 143
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--cb35f-uld-be-able-to-resize-image-webkit-retry2/resizeImage-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:101:5
|
|
[webkit] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image:
tests/src/utils/editor.ts#L47
2) [webkit] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -17,11 +17,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 143
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--cb35f-uld-be-able-to-resize-image-webkit-retry1/resizeImage-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:101:5
|
|
[webkit] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image:
tests/src/utils/editor.ts#L47
2) [webkit] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
Error: expect(string).toMatchSnapshot(expected)
@@ -17,11 +17,11 @@
"backgroundColor": "default",
"name": "jk-placeholder-image.jpg",
"url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg",
"caption": "",
"showPreview": true,
- "previewWidth": 573
+ "previewWidth": 143
}
}
]
},
{
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--cb35f-uld-be-able-to-resize-image-webkit/resizeImage-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:101:5
|
|
[webkit] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/src/end-to-end/images/images.test.ts#L61
1) [webkit] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(Buffer).toMatchSnapshot(expected)
131176 pixels (ratio 0.04 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/embed-image-webkit-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-webkit-retry2/embed-image-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-webkit-retry2/embed-image-diff.png
59 | await page.waitForTimeout(500);
60 | await compareDocToSnapshot(page, "embedImage");
> 61 | expect(await page.screenshot()).toMatchSnapshot("embed-image.png");
| ^
62 | });
63 | test("Should be able to resize image", async ({ page }) => {
64 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:61:37
|
|
[webkit] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/src/end-to-end/images/images.test.ts#L61
1) [webkit] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(Buffer).toMatchSnapshot(expected)
131176 pixels (ratio 0.04 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/embed-image-webkit-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-webkit-retry1/embed-image-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-webkit-retry1/embed-image-diff.png
59 | await page.waitForTimeout(500);
60 | await compareDocToSnapshot(page, "embedImage");
> 61 | expect(await page.screenshot()).toMatchSnapshot("embed-image.png");
| ^
62 | });
63 | test("Should be able to resize image", async ({ page }) => {
64 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:61:37
|
|
[webkit] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/src/end-to-end/images/images.test.ts#L61
1) [webkit] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Error: expect(Buffer).toMatchSnapshot(expected)
131176 pixels (ratio 0.04 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/embed-image-webkit-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-webkit/embed-image-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-webkit/embed-image-diff.png
59 | await page.waitForTimeout(500);
60 | await compareDocToSnapshot(page, "embedImage");
> 61 | expect(await page.screenshot()).toMatchSnapshot("embed-image.png");
| ^
62 | });
63 | test("Should be able to resize image", async ({ page }) => {
64 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:61:37
|
|
Build
{
"workflowData": {
"owner": "TypeCellOS",
"repo": "BlockNote",
"sha": "0747ee6b417b2b7fc83f4616c3590698b67ecfc6",
"ref": "2551"
},
"key": "PPUS9GPSKp",
"runId": 22920156997,
"webhookDebug": {
"action": "requested",
"head_branch": "copy-paste-from-ms-word-is-broken-blo-1065",
"head_repository_full_name": "TypeCellOS/BlockNote",
"full_name": "TypeCellOS/BlockNote",
"isPullRequest": true,
"prNumber": 2551,
"prNumberType": "number",
"isNewPullRequest": true,
"isOldPullRequest": false,
"prKey": "TypeCellOS/BlockNote:copy-paste-from-ms-word-is-broken-blo-1065",
"oldPrDataHash": "eGxqwIDv0r",
"lookupKey": "TypeCellOS/BlockNote:copy-paste-from-ms-word-is-broken-blo-1065",
"data": {
"owner": "TypeCellOS",
"repo": "BlockNote",
"sha": "7014fd017d4a90cc174d4d9f5db6c26d5829b6c3",
"ref": "2551"
}
}
}
|
|
🎭 Playwright Run Summary
3 failed
[chromium] › src/end-to-end/copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props
[chromium] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
[chromium] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
1 skipped
118 passed (3.4m)
|
|
🎭 Playwright Run Summary
2 failed
[firefox] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
[firefox] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
11 skipped
109 passed (3.8m)
|
|
🎭 Playwright Run Summary
2 failed
[webkit] › src/end-to-end/images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image
[webkit] › src/end-to-end/images/images.test.ts:63:7 › Check Image Block and Toolbar functionality › Should be able to resize image
1 flaky
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:18:7 › Check Keyboard Handlers' Behaviour › Check Enter when selection is not empty
9 skipped
110 passed (4.3m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report-chromium
|
3.28 MB |
sha256:a336d7814403466e034d5ec7d95236bf5c82fb7ea1d09973c1e467f5c746ba37
|
|
|
playwright-report-firefox
|
1.52 MB |
sha256:491120e4d91f9e9f6ea86bdfa3269bafd57d2e1726cea3dc621a288fbbb4b133
|
|
|
playwright-report-webkit
|
7.01 MB |
sha256:6105968abd254895a9d422ffb7a91b36fc205b35d23845efa8c6a42ea6f0866a
|
|
|
relative-ci-artifacts-editor
|
46.8 KB |
sha256:f4f1d4bb48f36358b1e315637e5ff29d32cd482dce83fbd245044315c3e9888e
|
|