Skip to content

fix(core): trigger codeblock input rule on Enter and place cursor inside #7556

fix(core): trigger codeblock input rule on Enter and place cursor inside

fix(core): trigger codeblock input rule on Enter and place cursor inside #7556

Triggered via pull request April 29, 2026 12:54
Status Success
Total duration 6m 21s
Artifacts 15

build.yml

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

Annotations

1 error, 1 warning, and 7 notices
[webkit] › 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
1) [webkit] › 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) @@ -17,26 +17,10 @@ "textColor": "default", "textAlignment": "left", "level": 1, "isToggleable": false } - } - ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } }, { "type": "blockGroup", "content": [ { @@ -55,19 +39,41 @@ "isToggleable": false }, "content": [ { "type": "text", - "text": "Heading" + "text": "Hea" } ] } ] }, { "type": "blockContainer", "attrs": { + "id": "4" + }, + "content": [ + { + "type": "paragraph", + "attrs": { + "backgroundColor": "default", + "textColor": "default", + "textAlignment": "left" + }, + "content": [ + { + "type": "text", + "text": "ding" + } + ] + } + ] + }, + { + "type": "blockContainer", + "attrs": { "id": "2" }, "content": [ { "type": "heading", Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-webkit-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-5461c-sted-blocks-for-empty-block-webkit/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) at /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:95:5
Build
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/upload-artifact@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
🎭 Playwright Run Summary
42 passed (36.2s)
🎭 Playwright Run Summary
42 passed (47.8s)
🎭 Playwright Run Summary
2 skipped 88 passed (1.3m)
Build
{ "workflowData": { "owner": "TypeCellOS", "repo": "BlockNote", "sha": "79614ef557de864cabd74e384a8244f9c628187d", "ref": "2686" }, "key": "bQc24PhGqL", "runId": 25110049277, "webhookDebug": { "action": "requested", "head_branch": "feat/fix-codeblock-input-rule", "head_repository_full_name": "TypeCellOS/BlockNote", "full_name": "TypeCellOS/BlockNote", "isPullRequest": true, "prNumber": 2686, "prNumberType": "number", "isNewPullRequest": true, "isOldPullRequest": false, "prKey": "TypeCellOS/BlockNote:feat/fix-codeblock-input-rule", "oldPrDataHash": "OgItT2KttB", "lookupKey": "TypeCellOS/BlockNote:feat/fix-codeblock-input-rule", "data": { "owner": "TypeCellOS", "repo": "BlockNote", "sha": "79614ef557de864cabd74e384a8244f9c628187d", "ref": "2686" } } }
🎭 Playwright Run Summary
42 passed (1.1m)
🎭 Playwright Run Summary
14 skipped 76 passed (1.6m)
🎭 Playwright Run Summary
1 flaky [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:77:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves nested blocks for empty block 10 skipped 79 passed (2.3m)

Artifacts

Produced during runtime
Name Size Digest
blob-report-chromium-1 Expired
124 KB
sha256:b5a3dfc7801344608cd4142ee25d1c82bb81886f6de46d2cccf2d728f72bffd6
blob-report-chromium-2 Expired
50.9 KB
sha256:1b71a9cb6f8f64e7d263d3476b8ad170778c85359cbd2524dd5294e36ea753bb
blob-report-firefox-1 Expired
112 KB
sha256:ae0f8d71ce520b9e8ebc0c5eab12ec7752a7e8409deae7186e15b80213e1abe8
blob-report-firefox-2 Expired
51.8 KB
sha256:ac78b0fbc7213d33c2989e039450052de48227253047070c74677aa5330ca7ea
blob-report-webkit-1 Expired
5.31 MB
sha256:f00db1852ab4c5ab0a2151a435647df78e4a668c9c606bc47e86d77e06cefbe6
blob-report-webkit-2 Expired
52 KB
sha256:24ee2b2cf3bea9eea91e3a97983bb3c78f668bd21ce9d7ea9e6724ce73512ae9
playwright-build Expired
21.5 MB
sha256:2fed5b791d566c954f1d10e70b398ad7b0d0608bc9bd6b4c26c7d4d9bab14b9c
playwright-report-chromium-1 Expired
258 KB
sha256:7b781a27a3baf137bceee75e9b2a64a93ed7bf370cdf978b0233121c48a0927c
playwright-report-chromium-2 Expired
208 KB
sha256:8f592b03d6fa07f643a0e5316df9f75d2332d5b4464166cc5495c3bf3a059fe4
playwright-report-firefox-1 Expired
249 KB
sha256:2680a544ac0e36129678902907ebed64baae245cc7ebd99ba905946d68d3477b
playwright-report-firefox-2 Expired
209 KB
sha256:fe3817f2415b94602e0371752ebec593a4633558c840d45a4586e8ee5e15c9d2
playwright-report-merged Expired
5.89 MB
sha256:589970fc8da219a7b4953c6a754f673e512ab68a7498761a6318d234af2b2305
playwright-report-webkit-1 Expired
5.82 MB
sha256:dae559097ffd36a500e39751e714933b4a7303c5d2f5231484e0e54da1aefeb1
playwright-report-webkit-2 Expired
209 KB
sha256:e8b47f70f87447394fb1a0469cd0bd14fc12cfa1e773c3baced751a3e02152aa
relative-ci-artifacts-editor
48.4 KB
sha256:f14a0fea36972c6a4a269ed947bd5b42e3309a0c9224346785f6cc8d1cf8fa8c