Skip to content

fix(tests): stabilize webkit keyboard handler tests with programmatic cursor positioning #7838

fix(tests): stabilize webkit keyboard handler tests with programmatic cursor positioning

fix(tests): stabilize webkit keyboard handler tests with programmatic cursor positioning #7838

Triggered via pull request May 14, 2026 06:29
Status Success
Total duration 5m 14s
Artifacts 15

build.yml

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

Annotations

1 error, 1 warning, and 7 notices
[chromium] › src/end-to-end/copypaste/copypaste.test.ts:40:7 › Check Copy/Paste Functionality › Headings should keep formatting: tests/src/utils/editor.ts#L47
1) [chromium] › src/end-to-end/copypaste/copypaste.test.ts:40:7 › Check Copy/Paste Functionality › Headings should keep formatting Error: expect(string).toMatchSnapshot(expected) @@ -77,11 +77,11 @@ ] }, { "type": "blockContainer", "attrs": { - "id": "4" + "id": "5" }, "content": [ { "type": "heading", "attrs": { @@ -92,20 +92,25 @@ "isToggleable": false }, "content": [ { "type": "text", + "marks": [ + { + "type": "bold" + } + ], "text": "Heading" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "5" + "id": "6" }, "content": [ { "type": "heading", "attrs": { @@ -116,20 +121,25 @@ "isToggleable": false }, "content": [ { "type": "text", + "marks": [ + { + "type": "bold" + } + ], "text": "Heading" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "6" + "id": "7" }, "content": [ { "type": "heading", "attrs": { @@ -140,15 +150,36 @@ "isToggleable": false }, "content": [ { "type": "text", + "marks": [ + { + "type": "bold" + } + ], "text": "Heading" } ] } ] + }, + { + "type": "blockContainer", + "attrs": { + "id": "8" + }, + "content": [ + { + "type": "paragraph", + "attrs": { + "backgroundColor": "default", + "textColor": "default", + "textAlignment": "left" + } + } + ] } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/headings-json-chromium-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/copypaste-copypaste-Check--b9797-ings-should-keep-formatting-chromium/headings-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 | 50 | /** 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:54: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/
Build
{ "workflowData": { "owner": "TypeCellOS", "repo": "BlockNote", "sha": "4eaad896a351891b85ff94f97e9bacea077c6eaf", "ref": "2746", "headBranch": "fix/webkit-keyboard-handler-flaky-tests" }, "key": "Hv8Zx4tOew", "runId": 25845580111, "webhookDebug": { "action": "requested", "head_branch": "fix/webkit-keyboard-handler-flaky-tests", "head_repository_full_name": "TypeCellOS/BlockNote", "full_name": "TypeCellOS/BlockNote", "isPullRequest": true, "prNumber": 2746, "prNumberType": "number", "isNewPullRequest": true, "isOldPullRequest": false, "prKey": "TypeCellOS/BlockNote:fix/webkit-keyboard-handler-flaky-tests", "oldPrDataHash": "or7zMCByIK", "lookupKey": "TypeCellOS/BlockNote:fix/webkit-keyboard-handler-flaky-tests", "data": { "owner": "TypeCellOS", "repo": "BlockNote", "sha": "4eaad896a351891b85ff94f97e9bacea077c6eaf", "ref": "2746", "headBranch": "fix/webkit-keyboard-handler-flaky-tests" } }, "currentCursor": { "sha": "4eaad896a351891b85ff94f97e9bacea077c6eaf", "timestamp": 25844806472 }, "pkgPrNewVersion": "0.0.72" }
🎭 Playwright Run Summary
1 skipped 42 passed (46.1s)
🎭 Playwright Run Summary
43 passed (36.1s)
🎭 Playwright Run Summary
43 passed (1.0m)
🎭 Playwright Run Summary
1 flaky [chromium] › src/end-to-end/copypaste/copypaste.test.ts:40:7 › Check Copy/Paste Functionality › Headings should keep formatting 2 skipped 91 passed (1.4m)
🎭 Playwright Run Summary
16 skipped 78 passed (1.5m)
🎭 Playwright Run Summary
12 skipped 82 passed (2.0m)

Artifacts

Produced during runtime
Name Size Digest
blob-report-chromium-1 Expired
2.2 MB
sha256:49279af881a3de7bac59c4056b34dbb193291c1412d5932f7ffedfe35e933745
blob-report-chromium-2 Expired
52.5 KB
sha256:a25caee8a7b7590cf542658bf43274dd8d00657d1d5db8a50305789b0ffa3c27
blob-report-firefox-1 Expired
113 KB
sha256:98af3ae64566b14fbca2d4854233e69111dbefaf358bf76fb80c8e6d149b1ca5
blob-report-firefox-2 Expired
52.2 KB
sha256:3a215b4707a968e3aaf2417953784dd40d3b39d255673e9b05ade12cfece1721
blob-report-webkit-1 Expired
121 KB
sha256:be1482ef2d5b533c7c419fae02321b9bbbe6eb0044a1c9589b1ba9efe3d88039
blob-report-webkit-2 Expired
53.1 KB
sha256:7e746f7af5a8c78acfe89e42eac9d64414206d26e1b7ef44a50ddb22006fb7c8
playwright-build Expired
21.2 MB
sha256:199940b2acbb3b7deeceab6a9d8cde349276ebf752462d25302200cf1343987d
playwright-report-chromium-1 Expired
2.7 MB
sha256:f67cdfc6c7a0c6cabba12c801050647aa04d047d69dfb7b056bc05213b53d3b5
playwright-report-chromium-2 Expired
210 KB
sha256:c194d0537af811ab045fd0665978eff75dcb50e5aac2ba576219c878c58038f9
playwright-report-firefox-1 Expired
250 KB
sha256:6a0aed2be1c6e4abb6f93b60b891b01ee066a0d27ca9dc7de61820521b6f5043
playwright-report-firefox-2 Expired
209 KB
sha256:c7111ffcbfcd50dffa8be967b69510f8730ec19d1cf0fef53b02e1c17c75f96f
playwright-report-merged Expired
2.77 MB
sha256:b89e13c990c8014fc965535bab412beb5685332e313303d2a8fc07937bbb56a7
playwright-report-webkit-1 Expired
256 KB
sha256:a032a05a9b25c1f0601aeaa1dab600f01b6d01b8e3a368e936ed2f378bfd890c
playwright-report-webkit-2 Expired
210 KB
sha256:de2e56516f9f6758f1b4899f747f6ccdbc989e543c696cd9ba49ee47860c21ed
relative-ci-artifacts-editor
44.8 KB
sha256:17a99c37a1d3a9855a84c026c1f1ee5a612b36f61354fe576ef0983fd991f8f8