Skip to content

fix: Allow adding block above table when it is the first block #7974

fix: Allow adding block above table when it is the first block

fix: Allow adding block above table when it is the first block #7974

Re-run triggered May 26, 2026 06:07
Status Failure
Total duration 7m 32s
Artifacts 15

build.yml

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

Annotations

12 errors, 1 warning, and 7 notices
Playwright Tests - chromium (1/2)
Process completed with exit code 1.
[chromium] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/utils/editor.ts#L47
1) [chromium] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(string).toMatchSnapshot(expected) @@ -5,50 +5,50 @@ "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { - "id": "0" + "id": "1" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 1, - "isToggleable": false + "level": 2, + "isToggleable": true }, "content": [ { "type": "text", - "text": "Hover over this text" + "text": "This is an h2" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "1" + "id": "0" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 2, - "isToggleable": true + "level": 1, + "isToggleable": false }, "content": [ { "type": "text", - "text": "This is an h2" + "text": "Hover over this text" } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/draghandle-draghandle-Chec-08661-ton-should-create-new-block-chromium-retry2/draghandleadd-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/draghandle/draghandle.test.ts:102:5
[chromium] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/utils/editor.ts#L47
1) [chromium] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(string).toMatchSnapshot(expected) @@ -5,50 +5,50 @@ "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { - "id": "0" + "id": "1" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 1, - "isToggleable": false + "level": 2, + "isToggleable": true }, "content": [ { "type": "text", - "text": "Hover over this text" + "text": "This is an h2" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "1" + "id": "0" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 2, - "isToggleable": true + "level": 1, + "isToggleable": false }, "content": [ { "type": "text", - "text": "This is an h2" + "text": "Hover over this text" } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/draghandle-draghandle-Chec-08661-ton-should-create-new-block-chromium-retry1/draghandleadd-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/draghandle/draghandle.test.ts:102:5
[chromium] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/utils/editor.ts#L47
1) [chromium] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block Error: expect(string).toMatchSnapshot(expected) @@ -5,50 +5,50 @@ "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { - "id": "0" + "id": "1" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 1, - "isToggleable": false + "level": 2, + "isToggleable": true }, "content": [ { "type": "text", - "text": "Hover over this text" + "text": "This is an h2" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "1" + "id": "0" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 2, - "isToggleable": true + "level": 1, + "isToggleable": false }, "content": [ { "type": "text", - "text": "This is an h2" + "text": "Hover over this text" } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/draghandle-draghandle-Chec-08661-ton-should-create-new-block-chromium/draghandleadd-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/draghandle/draghandle.test.ts:102:5
Playwright Tests - firefox (1/2)
Process completed with exit code 1.
[firefox] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/utils/editor.ts#L47
1) [firefox] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(string).toMatchSnapshot(expected) @@ -5,50 +5,50 @@ "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { - "id": "0" + "id": "1" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 1, - "isToggleable": false + "level": 2, + "isToggleable": true }, "content": [ { "type": "text", - "text": "Hover over this text" + "text": "This is an h2" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "1" + "id": "0" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 2, - "isToggleable": true + "level": 1, + "isToggleable": false }, "content": [ { "type": "text", - "text": "This is an h2" + "text": "Hover over this text" } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/draghandle-draghandle-Chec-08661-ton-should-create-new-block-firefox-retry2/draghandleadd-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/draghandle/draghandle.test.ts:102:5
[firefox] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/utils/editor.ts#L47
1) [firefox] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(string).toMatchSnapshot(expected) @@ -5,50 +5,50 @@ "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { - "id": "0" + "id": "1" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 1, - "isToggleable": false + "level": 2, + "isToggleable": true }, "content": [ { "type": "text", - "text": "Hover over this text" + "text": "This is an h2" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "1" + "id": "0" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 2, - "isToggleable": true + "level": 1, + "isToggleable": false }, "content": [ { "type": "text", - "text": "This is an h2" + "text": "Hover over this text" } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/draghandle-draghandle-Chec-08661-ton-should-create-new-block-firefox-retry1/draghandleadd-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/draghandle/draghandle.test.ts:102:5
[firefox] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/utils/editor.ts#L47
1) [firefox] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block Error: expect(string).toMatchSnapshot(expected) @@ -5,50 +5,50 @@ "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { - "id": "0" + "id": "1" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 1, - "isToggleable": false + "level": 2, + "isToggleable": true }, "content": [ { "type": "text", - "text": "Hover over this text" + "text": "This is an h2" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "1" + "id": "0" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 2, - "isToggleable": true + "level": 1, + "isToggleable": false }, "content": [ { "type": "text", - "text": "This is an h2" + "text": "Hover over this text" } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/draghandle-draghandle-Chec-08661-ton-should-create-new-block-firefox/draghandleadd-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/draghandle/draghandle.test.ts:102:5
Playwright Tests - webkit (1/2)
Process completed with exit code 1.
[webkit] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/utils/editor.ts#L47
1) [webkit] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(string).toMatchSnapshot(expected) @@ -5,50 +5,50 @@ "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { - "id": "0" + "id": "1" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 1, - "isToggleable": false + "level": 2, + "isToggleable": true }, "content": [ { "type": "text", - "text": "Hover over this text" + "text": "This is an h2" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "1" + "id": "0" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 2, - "isToggleable": true + "level": 1, + "isToggleable": false }, "content": [ { "type": "text", - "text": "This is an h2" + "text": "Hover over this text" } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/draghandle-draghandle-Chec-08661-ton-should-create-new-block-webkit-retry2/draghandleadd-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/draghandle/draghandle.test.ts:102:5
[webkit] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/utils/editor.ts#L47
1) [webkit] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(string).toMatchSnapshot(expected) @@ -5,50 +5,50 @@ "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { - "id": "0" + "id": "1" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 1, - "isToggleable": false + "level": 2, + "isToggleable": true }, "content": [ { "type": "text", - "text": "Hover over this text" + "text": "This is an h2" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "1" + "id": "0" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 2, - "isToggleable": true + "level": 1, + "isToggleable": false }, "content": [ { "type": "text", - "text": "This is an h2" + "text": "Hover over this text" } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/draghandle-draghandle-Chec-08661-ton-should-create-new-block-webkit-retry1/draghandleadd-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/draghandle/draghandle.test.ts:102:5
[webkit] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/utils/editor.ts#L47
1) [webkit] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block Error: expect(string).toMatchSnapshot(expected) @@ -5,50 +5,50 @@ "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { - "id": "0" + "id": "1" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 1, - "isToggleable": false + "level": 2, + "isToggleable": true }, "content": [ { "type": "text", - "text": "Hover over this text" + "text": "This is an h2" } ] } ] }, { "type": "blockContainer", "attrs": { - "id": "1" + "id": "0" }, "content": [ { "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 2, - "isToggleable": true + "level": 1, + "isToggleable": false }, "content": [ { "type": "text", - "text": "This is an h2" + "text": "Hover over this text" } ] } ] } Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/draghandle-draghandle-Chec-08661-ton-should-create-new-block-webkit/draghandleadd-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/draghandle/draghandle.test.ts:102: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
43 passed (35.3s)
🎭 Playwright Run Summary
1 skipped 42 passed (46.0s)
Build
{ "workflowData": { "owner": "TypeCellOS", "repo": "BlockNote", "sha": "8f8b65e63529a5556abccb2a401822ab3de7675e", "ref": "2784", "headBranch": null }, "key": "gPjNt1mtNf", "runId": 26426378931, "webhookDebug": { "action": "in_progress", "head_branch": "fix/table-first-block-add-above", "head_repository_full_name": "mkcash/BlockNote", "full_name": "TypeCellOS/BlockNote", "isPullRequest": true, "prNumber": 2784, "prNumberType": "number", "isNewPullRequest": true, "isOldPullRequest": false, "prKey": "mkcash/BlockNote:fix/table-first-block-add-above", "oldPrDataHash": "ppHff6SkNF", "lookupKey": "mkcash/BlockNote:fix/table-first-block-add-above", "data": { "owner": "TypeCellOS", "repo": "BlockNote", "sha": "8f8b65e63529a5556abccb2a401822ab3de7675e", "ref": "2784", "headBranch": null } }, "currentCursor": null, "pkgPrNewVersion": "0.0.75" }
🎭 Playwright Run Summary
43 passed (1.0m)
🎭 Playwright Run Summary
1 failed [chromium] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block 2 skipped 93 passed (1.4m)
🎭 Playwright Run Summary
1 failed [firefox] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block 16 skipped 79 passed (1.6m)
🎭 Playwright Run Summary
1 failed [webkit] › src/end-to-end/draghandle/draghandle.test.ts:94:7 › Check Draghandle functionality › Clicking add button should create new block 12 skipped 83 passed (2.2m)

Artifacts

Produced during runtime
Name Size Digest
blob-report-chromium-1
691 KB
sha256:7d1efb3c07cff66a5acc8cd98ac23d5036136bbfaccc59c094bc09a8bb52f12e
blob-report-chromium-2
52.5 KB
sha256:6ca601848a5d8765e8ffbaab38ce43c35be76149049c13032057bda4c4db9aa9
blob-report-firefox-1
346 KB
sha256:3ef1af9c8f43810dd56bbc87a62dfe2d9498d13f9e88ee689e034ee9a736cfbb
blob-report-firefox-2
52.1 KB
sha256:818858e0620e3a48bbc0a274aee619bd2ed9e132d9e2f983dd820ae93fd046bb
blob-report-webkit-1
694 KB
sha256:09169d7b91dc6d64325fc4d77a347663cbc9a9ea60db41d062a278ca49bd01f0
blob-report-webkit-2
53.3 KB
sha256:6fb9c976cbe8c1e4b6dedc0dade864d8c42dd2c5e3cfd26fd4c74b82ea94a9b6
playwright-build
21.2 MB
sha256:5003ecfae240c95242a1a6a3ac807c4266ea563978998218228e956f138d49cd
playwright-report-chromium-1
1.16 MB
sha256:9b2f5ee71d985739dc50a8060eff2d35487f83cea47c30159c6135561688ca19
playwright-report-chromium-2
210 KB
sha256:6a9f699af9bee5bb3bd9f93dde994831b89aebd31af7d363eac1c47198c9d718
playwright-report-firefox-1
837 KB
sha256:e652e1c081a699df9e02fca7e95bffa04e4c45ca94f65216d5770093d15a17d3
playwright-report-firefox-2
209 KB
sha256:3ef41bcf4ed9a00a083b7bf658c7b5d1351a8a6de8e7728eb82e2a7eefdb8d31
playwright-report-merged
1.89 MB
sha256:ffa3b29f3cb87a68c8c3919e8220c41c5232208981044a94a73ff3ed1a320d1d
playwright-report-webkit-1
1.12 MB
sha256:ff6797a1e16d30da7565e1d0cf7c0892ca32fd860eb0ef513a449126d873c17f
playwright-report-webkit-2
210 KB
sha256:826f3c81b8fa7bf86362a8ffc5f865e4fcd392b015ffd1bc644e8342dc37db81
relative-ci-artifacts-editor
44.8 KB
sha256:3796599844e90167108e928ddd751c02f7a778cb550b5965257329ac8847e4ba