Skip to content

refactor: unified drop cursor extension #7001

refactor: unified drop cursor extension

refactor: unified drop cursor extension #7001

Triggered via pull request March 10, 2026 18:08
@nperez0111nperez0111
synchronize #2550
dnd-fixes
Status Failure
Total duration 9m 21s
Artifacts 3

build.yml

on: pull_request
Matrix: playwright
Fit to window
Zoom out
Zoom in

Annotations

28 errors and 3 notices
Build
Process completed with exit code 1.
[chromium] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:77:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves nested blocks for empty block: tests/src/utils/editor.ts#L47
4) [chromium] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:77:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves nested blocks for empty block Error: expect(string).toMatchSnapshot(expected) @@ -23,91 +23,22 @@ ] }, { "type": "blockContainer", "attrs": { - "id": "4" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left" } - }, - { - "type": "blockGroup", - "content": [ - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "heading", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left", - "level": 2, - "isToggleable": false - }, - "content": [ - { - "type": "text", - "text": "Heading" - } - ] - } - ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "heading", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left", - "level": 3, - "isToggleable": false - }, - "content": [ - { - "type": "text", - "text": "Heading" - } - ] - } - ] - } - ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-chromium-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-5461c-sted-blocks-for-empty-block-chromium/enterPreservesNestedBlocksEmpty-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) a
[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/ariakit/ariakit.test.ts:28:7 › Check Ariakit UI › Check link toolbar: tests/src/end-to-end/ariakit/ariakit.test.ts#L41
3) [firefox] › src/end-to-end/ariakit/ariakit.test.ts:28:7 › Check Ariakit UI › Check link toolbar Error: expect(Buffer).toMatchSnapshot(expected) 228 pixels (ratio 0.01 of all image pixels) are different. Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-link-toolbar-firefox-linux.png Received: /__w/BlockNote/BlockNote/tests/test-results/ariakit-ariakit-Check-Ariakit-UI-Check-link-toolbar-firefox/ariakit-link-toolbar-actual.png Diff: /__w/BlockNote/BlockNote/tests/test-results/ariakit-ariakit-Check-Ariakit-UI-Check-link-toolbar-firefox/ariakit-link-toolbar-diff.png 39 | 40 | await page.waitForTimeout(500); > 41 | expect(await page.screenshot()).toMatchSnapshot("ariakit-link-toolbar.png"); | ^ 42 | }); 43 | test("Check slash menu", async ({ page }) => { 44 | await focusOnEditor(page); at /__w/BlockNote/BlockNote/tests/src/end-to-end/ariakit/ariakit.test.ts:41:37
[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/basics/basicblocks.test.ts:11:7 › Check basic text block appearance › Check basic text block appearance: tests/src/end-to-end/basics/basicblocks.test.ts#L19
3) [webkit] › src/end-to-end/basics/basicblocks.test.ts:11:7 › Check basic text block appearance › Check basic text block appearance Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('[data-content-type="video"] .bn-file-caption') 17 | await page.waitForTimeout(500); 18 | > 19 | await page.locator(`[data-content-type="video"] .bn-file-caption`).click(); | ^ 20 | await page.keyboard.press("Backspace"); 21 | await page.waitForTimeout(500); 22 | at /__w/BlockNote/BlockNote/tests/src/end-to-end/basics/basicblocks.test.ts:19:72
[webkit] › src/end-to-end/basics/basicblocks.test.ts:11:7 › Check basic text block appearance › Check basic text block appearance: tests/src/end-to-end/basics/basicblocks.test.ts#L0
3) [webkit] › src/end-to-end/basics/basicblocks.test.ts:11:7 › Check basic text block appearance › Check basic text block appearance Test timeout of 30000ms exceeded.
[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
🎭 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 flaky [chromium] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:77:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves nested blocks for empty block 1 skipped 117 passed (3.5m)
🎭 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 1 flaky [firefox] › src/end-to-end/ariakit/ariakit.test.ts:28:7 › Check Ariakit UI › Check link toolbar 11 skipped 108 passed (3.9m)
🎭 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/basics/basicblocks.test.ts:11:7 › Check basic text block appearance › Check basic text block appearance 9 skipped 110 passed (4.8m)

Artifacts

Produced during runtime
Name Size Digest
playwright-report-chromium Expired
8.38 MB
sha256:75df353c4200f7b1e1e4889f360fa8c40e06d2dd65a5f32130fd2f2f8abe48ac
playwright-report-firefox Expired
1.67 MB
sha256:2cfd97bb94febb4c51587e3eee42471cec63e9d04e202c0c1c0496ee2b940aa0
playwright-report-webkit Expired
3.38 MB
sha256:142dd89d749f59de5c571c9fc73c9c64b7dc52707d087873d2924498ea19cfab