Skip to content

fix: backslash newlines when copying from a code block #7804

fix: backslash newlines when copying from a code block

fix: backslash newlines when copying from a code block #7804

Triggered via pull request May 13, 2026 08:44
Status Failure
Total duration 6m 46s
Artifacts 14

build.yml

on: pull_request
Matrix: playwright
Merge Playwright Reports
48s
Merge Playwright Reports
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 6 notices
Build
Process completed with exit code 1.
[firefox] › src/end-to-end/customblocks/customblocks.test.ts:10:7 › Check custom block functionality › Should be able to interactively update vanilla custom blocks: tests/src/end-to-end/customblocks/customblocks.test.ts#L19
1) [firefox] › src/end-to-end/customblocks/customblocks.test.ts:10:7 › Check custom block functionality › Should be able to interactively update vanilla custom blocks Error: expect(Buffer).toMatchSnapshot(expected) 9207 pixels (ratio 0.01 of all image pixels) are different. Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanilla-interactivity-firefox-linux.png Received: /__w/BlockNote/BlockNote/tests/test-results/customblocks-customblocks--8679c-pdate-vanilla-custom-blocks-firefox/vanilla-interactivity-actual.png Diff: /__w/BlockNote/BlockNote/tests/test-results/customblocks-customblocks--8679c-pdate-vanilla-custom-blocks-firefox/vanilla-interactivity-diff.png 17 | 18 | await compareDocToSnapshot(page, "vanillaInteractivity"); > 19 | expect(await page.screenshot()).toMatchSnapshot( | ^ 20 | "vanilla-interactivity.png", 21 | ); 22 | }); at /__w/BlockNote/BlockNote/tests/src/end-to-end/customblocks/customblocks.test.ts:19:37
Playwright Tests - webkit (1/2)
Process completed with exit code 1.
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:275:7 › Check Keyboard Handlers' Behaviour › Check Delete end of block with multiple children: tests/src/utils/editor.ts#L47
3) [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:275:7 › Check Keyboard Handlers' Behaviour › Check Delete end of block with multiple children Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(string).toMatchSnapshot(expected) @@ -18,21 +18,21 @@ "textAlignment": "left" }, "content": [ { "type": "text", - "text": "ParagraphParagraph" + "text": "Paragraph" } ] }, { "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { "type": "paragraph", "attrs": { @@ -41,11 +41,11 @@ "textAlignment": "left" }, "content": [ { "type": "text", - "text": "Paragraph" + "text": "ParagraphParagraph" } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-webkit-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-14f97-lock-with-multiple-children-webkit-retry2/deleteMultipleChildren-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:288:5
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:193:7 › Check Keyboard Handlers' Behaviour › Check Delete before inline content block: tests/src/utils/editor.ts#L47
2) [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:193:7 › Check Keyboard Handlers' Behaviour › Check Delete before inline content block Error: expect(string).toMatchSnapshot(expected) @@ -18,15 +18,37 @@ "textAlignment": "left" }, "content": [ { "type": "text", - "text": "ParagraphParagraph" + "text": "Paragraph" } ] } ] + }, + { + "type": "blockContainer", + "attrs": { + "id": "1" + }, + "content": [ + { + "type": "paragraph", + "attrs": { + "backgroundColor": "default", + "textColor": "default", + "textAlignment": "left" + }, + "content": [ + { + "type": "text", + "text": "Paragraph" + } + ] + } + ] } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-webkit-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-7f47c-before-inline-content-block-webkit/deleteInlineContent-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:202:5
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block: tests/src/utils/editor.ts#L47
1) [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(string).toMatchSnapshot(expected) @@ -41,19 +41,41 @@ "textAlignment": "left" }, "content": [ { "type": "text", - "text": "ParagraphParagraph" + "text": "Paragrah" } ] } ] } ] } ] + }, + { + "type": "blockContainer", + "attrs": { + "id": "2" + }, + "content": [ + { + "type": "paragraph", + "attrs": { + "backgroundColor": "default", + "textColor": "default", + "textAlignment": "left" + }, + "content": [ + { + "type": "text", + "text": "Paragraph" + } + ] + } + ] } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-webkit-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-9a661-lete-before-shallower-block-webkit-retry1/deleteShallowerBlock-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:319:5
🎭 Playwright Run Summary
43 passed (36.0s)
🎭 Playwright Run Summary
1 skipped 42 passed (45.5s)
🎭 Playwright Run Summary
43 passed (1.1m)
🎭 Playwright Run Summary
2 skipped 92 passed (1.3m)
🎭 Playwright Run Summary
1 flaky [firefox] › src/end-to-end/customblocks/customblocks.test.ts:10:7 › Check custom block functionality › Should be able to interactively update vanilla custom blocks 16 skipped 77 passed (1.6m)
🎭 Playwright Run Summary
1 failed [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block 2 flaky [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:193:7 › Check Keyboard Handlers' Behaviour › Check Delete before inline content block [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:275:7 › Check Keyboard Handlers' Behaviour › Check Delete end of block with multiple children 12 skipped 12 did not run 67 passed (2.6m)

Artifacts

Produced during runtime
Name Size Digest
blob-report-chromium-1 Expired
127 KB
sha256:cc2680e6b1fc7576e414ee72d2e9750e7d06d9b74d27c73145666f393c51669a
blob-report-chromium-2 Expired
52.5 KB
sha256:d3b66f04daafb428af39487817cd4324c756b4099dcfd3b4031059455013a2d4
blob-report-firefox-1 Expired
322 KB
sha256:5b056e27f222b867262617e146a36c13ed3df8fc131479219dcc4e0d55476b60
blob-report-firefox-2 Expired
52.3 KB
sha256:9f5d8786b87425bca4d1e03dd6bb814ed6ecc80bfd4b8610d8e15c10c31b3b6a
blob-report-webkit-1 Expired
3.88 MB
sha256:04f2490470b44b43295c49b9da7e4d9aaaa852df111841d61ce13dd20f0b91f1
blob-report-webkit-2 Expired
53 KB
sha256:32206cda09e8cdb8b587232e71d46fa0960674acc1f269d50dd09ff88747cc37
playwright-build Expired
21.2 MB
sha256:4c8021ca072751bd8e33d837c150aa432bd8ba64be5c4cb8dd2962f54fbe7a61
playwright-report-chromium-1 Expired
260 KB
sha256:1bf88b42ec12a3be28fd19f2fa692d29a3ba63b6840cc8dfd7f81d7575808c45
playwright-report-chromium-2 Expired
210 KB
sha256:eaaf182d92150beba2163530ad57581c173113d501124b8faa3e73b4d100ba03
playwright-report-firefox-1 Expired
843 KB
sha256:af5f7ec9834325bb204f2c1ae3e22b6df9d3fc83e67c8fcf425f7366f2061e19
playwright-report-firefox-2 Expired
209 KB
sha256:9e6186ee3d2e253ac9223ea43587992a14ace567344a592367a99f1b16f3dee5
playwright-report-merged Expired
4.63 MB
sha256:88a584db31cc19c1230a7bfd7ec04aba4c892e9c0bbe10df5220858938a2e7ce
playwright-report-webkit-1 Expired
4.36 MB
sha256:69165db4f898022f7722606fd6d942f5a5a9b31886a910b0ad43200f61553c85
playwright-report-webkit-2 Expired
210 KB
sha256:d973d3cae9acbc418f99835ceed8106d79afc145e2e54e19e6c26e0228c96c7b