Skip to content

fix: Parsing priority for custom inline content and styles #6126

fix: Parsing priority for custom inline content and styles

fix: Parsing priority for custom inline content and styles #6126

Triggered via pull request October 20, 2025 13:09
Status Failure
Total duration 8m 11s
Artifacts 3

build.yml

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

Annotations

12 errors and 3 notices
Build
Process completed with exit code 130.
src/unit/core/formatConversion/parse/runTests.test.ts > Parse tests (HTML) > googleDocs: tests/src/unit/shared/formatConversion/parse/parseTestExecutors.ts#L21
Error: Snapshot `Parse tests (HTML) > googleDocs 1` mismatched - Expected + Received @@ -2,10 +2,11 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "bold": true, "textColor": "rgb(0, 0, 0)", }, "text": "Heading 1", "type": "text", @@ -24,10 +25,11 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "bold": true, "textColor": "rgb(0, 0, 0)", }, "text": "Heading 2", "type": "text", @@ -46,10 +48,11 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "bold": true, "textColor": "rgb(0, 0, 0)", }, "text": "Heading 3", "type": "text", @@ -68,10 +71,11 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "bold": true, "textColor": "rgb(0, 0, 0)", }, "text": "Heading 4", "type": "text", @@ -90,10 +94,11 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "bold": true, "textColor": "rgb(0, 0, 0)", }, "text": "Heading 5", "type": "text", @@ -112,10 +117,11 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "bold": true, "textColor": "rgb(0, 0, 0)", }, "text": "Heading 6", "type": "text", @@ -134,10 +140,11 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "textColor": "rgb(0, 0, 0)", }, "text": "Paragraph 1", "type": "text", }, @@ -153,10 +160,11 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "textColor": "rgb(0, 0, 0)", }, "text": "Paragraph 2", "type": "text", }, @@ -172,10 +180,11 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "textColor": "rgb(0, 0, 0)", }, "text": "Paragraph 3", "type": "text", }, @@ -191,10 +200,11 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "textColor": "rgb(0, 0, 0)", }, "text": "Paragraph With Hard Break", "type": "text", @@ -211,55 +221,62 @@ { "children": [], "content": [ { "styles": { + "backgroundColor": "transparent", "bold": true, "textColor": "rgb(0, 0, 0)", }, "text": "Bold", "type": "text", }, { "styles": { + "backgroundColor": "transparent", "textColor": "rgb(0, 0, 0)", }, "text": " ", "type": "text", }, { "styles": { + "backgroundColor": "transparent", "italic": true, "textColor": "rgb(0, 0, 0)", }, "text": "Italic", "type": "text", }, { "styles": { + "backgroundColor": "transparent", "textColor": "rgb(0, 0, 0)", }, "text": " Underline ", "type": "text", }, { "styles": { + "backgroundColor": "transparent", "strike": true, "textColor": "rgb(0, 0, 0)", }, "text": "Strikethrough", "type": "text", }, { "styles": { + "backgroundColor": "transparent",
src/unit/core/schema/runTests.test.ts > Schema test > Style specs test: tests/src/unit/core/schema/runTests.test.ts#L25
Error: Snapshot `Schema test > Style specs test 1` mismatched - Expected + Received @@ -12,66 +12,128 @@ "addAttributes": [Function], "addMarkView": [Function], "addOptions": [Function], "name": "backgroundColor", "parseHTML": [Function], - "renderHTML": [Function], + "priority": 121, + "renderHTML": [Function], + }, + "name": "backgroundColor", + "parent": _Mark { + "child": [Circular], + "config": { + "addAttributes": [Function], + "addMarkView": [Function], + "name": "backgroundColor", + "parseHTML": [Function], + "renderHTML": [Function], - }, + }, - "name": "backgroundColor", + "name": "backgroundColor", - "parent": null, + "parent": null, + "type": "mark", + }, "type": "mark", }, "config": { "addAttributes": [Function], "addMarkView": [Function], "name": "backgroundColor", "parseHTML": [Function], + "priority": 121, "renderHTML": [Function], }, "name": "backgroundColor", - "parent": null, - "type": "mark", - }, - "render": [Function], - "toExternalHTML": [Function], - }, - }, - "bold": { - "config": { - "propSchema": "boolean", - "type": "bold", - }, - "implementation": { - "mark": _Mark { - "child": _Mark { - "child": null, + "parent": _Mark { + "child": [Circular], + "config": { + "addAttributes": [Function], + "addMarkView": [Function], + "name": "backgroundColor", + "parseHTML": [Function], + "renderHTML": [Function], + }, + "name": "backgroundColor", + "parent": null, + "type": "mark", + }, + "type": "mark", + }, + "parse": [Function], + "render": [Function], + "runsBefore": [ + "default", + ], + "toExternalHTML": [Function], + }, + }, + "bold": { + "config": { + "propSchema": "boolean", + "type": "bold", + }, + "implementation": { + "mark": _Mark { + "child": _Mark { + "child": null, + "config": { + "addCommands": [Function], + "addInputRules": [Function], + "addKeyboardShortcuts": [Function], + "addOptions": [Function], + "addPasteRules": [Function], + "name": "bold", + "parseHTML": [Function], + "priority": 101, + "renderHTML": [Function], + }, + "name": "bold", + "parent": _Mark { + "child": [Circular], - "config": { + "config": { - "addCommands": [Function], + "addCommands": [Function], - "addInputRules": [Function], + "addInputRules": [Function], - "addKeyboardShortcuts": [Function], + "addKeyboardShortcuts": [Function], - "addOptions": [Function], + "addOptions": [Function], - "addPasteRules": [Function], + "addPasteRules": [Function], - "name": "bold", + "name": "bold", - "parseHTML": [Function], + "parseHTML": [Function], - "renderHTML": [Function], + "renderHTML": [Function], - }, + }, - "name": "bold", + "name": "bold", - "parent": null, + "parent": null, - "type": "mark", - }, + "type": "mark", + }, + "type": "mark", + }, + "config": { + "addCommands": [Function], + "addInputRules": [Function], +
src/unit/core/schema/runTests.test.ts > Schema test > Inline content specs test: tests/src/unit/core/schema/runTests.test.ts#L19
Error: Snapshot `Schema test > Inline content specs test 1` mismatched - Expected + Received @@ -27,36 +27,80 @@ "draggable": undefined, "group": "inline", "inline": true, "name": "mention", "parseHTML": [Function], - "renderHTML": [Function], + "priority": 121, + "renderHTML": [Function], + "selectable": false, + }, + "name": "mention", + "parent": _Node { + "child": [Circular], + "config": { + "addAttributes": [Function], + "addKeyboardShortcuts": [Function], + "addNodeView": [Function], + "atom": true, + "content": "", + "draggable": undefined, + "group": "inline", + "inline": true, + "name": "mention", + "parseHTML": [Function], + "renderHTML": [Function], - "selectable": false, + "selectable": false, - }, + }, - "name": "mention", + "name": "mention", - "parent": null, + "parent": null, - "type": "node", + "type": "node", + }, + "type": "node", + }, + "config": { + "addAttributes": [Function], + "addKeyboardShortcuts": [Function], + "addNodeView": [Function], + "atom": true, + "content": "", + "draggable": undefined, + "group": "inline", + "inline": true, + "name": "mention", + "parseHTML": [Function], + "priority": 121, + "renderHTML": [Function], + "selectable": false, }, - "config": { + "name": "mention", + "parent": _Node { + "child": [Circular], + "config": { - "addAttributes": [Function], + "addAttributes": [Function], - "addKeyboardShortcuts": [Function], + "addKeyboardShortcuts": [Function], - "addNodeView": [Function], + "addNodeView": [Function], - "atom": true, + "atom": true, - "content": "", + "content": "", - "draggable": undefined, + "draggable": undefined, - "group": "inline", + "group": "inline", - "inline": true, + "inline": true, - "name": "mention", + "name": "mention", - "parseHTML": [Function], + "parseHTML": [Function], - "renderHTML": [Function], + "renderHTML": [Function], - "selectable": false, + "selectable": false, - }, + }, - "name": "mention", + "name": "mention", - "parent": null, + "parent": null, - "type": "node", - }, - "render": [Function], + "type": "node", + }, + "type": "node", + }, + "parse": [Function], + "render": [Function], + "runsBefore": [ + "default", + ], "toExternalHTML": [Function], }, }, "tag": { "config": { @@ -78,15 +122,35 @@ "draggable": undefined, "group": "inline", "inline": true, "name": "tag", "parseHTML": [Function], + "priority": 121, "renderHTML": [Function], "selectable": true, }, "name": "tag", - "parent": null, + "parent": _Node { + "child": [Circular], + "config": { + "addAttributes": [Function], + "addKeyboardShortcuts": [Function], + "addNodeView": [Function], + "atom": false, + "content": "inline*", + "draggable": undefined, + "group": "inline", + "inline": true, + "name": "tag",
[firefox] › src/end-to-end/slashmenu/slashmenu.test.ts:117:7 › Check SlashMenu Functionality › Should be able to create complex documents that match snapshots: tests/src/utils/editor.ts#L47
4) [firefox] › src/end-to-end/slashmenu/slashmenu.test.ts:117:7 › Check SlashMenu Functionality › Should be able to create complex documents that match snapshots Error: expect(string).toMatchSnapshot(expected) @@ -38,11 +38,11 @@ "type": "heading", "attrs": { "backgroundColor": "default", "textColor": "default", "textAlignment": "left", - "level": 2, + "level": 1, "isToggleable": false }, "content": [ { "type": "text", Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-firefox-linux.json Received: /__w/BlockNote/BlockNote/tests/test-results/slashmenu-slashmenu-Check--f99af-uments-that-match-snapshots-firefox/docStructureSnapshot-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/slashmenu/slashmenu.test.ts:141:5
[firefox] › src/end-to-end/slashmenu/slashmenu.test.ts:42:7 › Check SlashMenu Functionality › Should be able to create h3: tests/src/utils/editor.ts#L11
3) [firefox] › src/end-to-end/slashmenu/slashmenu.test.ts:42:7 › Check SlashMenu Functionality › Should be able to create h3 TimeoutError: locator.waitFor: Timeout 1000ms exceeded. Call log: - waiting for locator('.bn-editor').locator('[data-content-type=heading][data-level="3"]') at ../utils/editor.ts:11 9 | export async function waitForSelectorInEditor(page: Page, selector: string) { 10 | const editor = page.locator(EDITOR_SELECTOR); > 11 | await editor.locator(selector).waitFor({ | ^ 12 | state: "attached", 13 | timeout: 1000, 14 | }); at waitForSelectorInEditor (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:11:34) at /__w/BlockNote/BlockNote/tests/src/end-to-end/slashmenu/slashmenu.test.ts:46:34
[firefox] › src/end-to-end/slashmenu/slashmenu.test.ts:36:7 › Check SlashMenu Functionality › Should be able to create h2: tests/src/utils/editor.ts#L11
2) [firefox] › src/end-to-end/slashmenu/slashmenu.test.ts:36:7 › Check SlashMenu Functionality › Should be able to create h2 TimeoutError: locator.waitFor: Timeout 1000ms exceeded. Call log: - waiting for locator('.bn-editor').locator('[data-content-type=heading][data-level="2"]') at ../utils/editor.ts:11 9 | export async function waitForSelectorInEditor(page: Page, selector: string) { 10 | const editor = page.locator(EDITOR_SELECTOR); > 11 | await editor.locator(selector).waitFor({ | ^ 12 | state: "attached", 13 | timeout: 1000, 14 | }); at waitForSelectorInEditor (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:11:34) at /__w/BlockNote/BlockNote/tests/src/end-to-end/slashmenu/slashmenu.test.ts:40:34
[firefox] › src/end-to-end/draghandle/draghandle.test.ts:143:7 › Check Draghandle functionality › Delete button should delete correct block: tests/src/end-to-end/draghandle/draghandle.test.ts#L151
1) [firefox] › src/end-to-end/draghandle/draghandle.test.ts:143:7 › Check Draghandle functionality › Delete button should delete correct block Error: page.hover: Target page, context or browser has been closed Call log: - waiting for locator('[data-content-type=heading][data-level="2"]') 149 | await page.keyboard.type("This is h3"); 150 | > 151 | await page.hover(H_TWO_BLOCK_SELECTOR); | ^ 152 | await page.click(DRAG_HANDLE_SELECTOR); 153 | await page.click("text=Delete"); 154 | await page.waitForSelector(H_ONE_BLOCK_SELECTOR); at /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts:151:16
[firefox] › src/end-to-end/draghandle/draghandle.test.ts:143:7 › Check Draghandle functionality › Delete button should delete correct block: tests/src/end-to-end/draghandle/draghandle.test.ts#L0
1) [firefox] › src/end-to-end/draghandle/draghandle.test.ts:143:7 › Check Draghandle functionality › Delete button should delete correct block Test timeout of 30000ms exceeded.
[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
2) [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
2) [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/ariakit/ariakit.test.ts:28:7 › Check Ariakit UI › Check link toolbar: tests/src/end-to-end/ariakit/ariakit.test.ts#L41
1) [webkit] › src/end-to-end/ariakit/ariakit.test.ts:28:7 › Check Ariakit UI › Check link toolbar Error: expect(Buffer).toMatchSnapshot(expected) 1007 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-webkit-linux.png Received: /__w/BlockNote/BlockNote/tests/test-results/ariakit-ariakit-Check-Ariakit-UI-Check-link-toolbar-webkit/ariakit-link-toolbar-actual.png Diff: /__w/BlockNote/BlockNote/tests/test-results/ariakit-ariakit-Check-Ariakit-UI-Check-link-toolbar-webkit/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
🎭 Playwright Run Summary
1 skipped 94 passed (2.2m)
🎭 Playwright Run Summary
4 flaky [firefox] › src/end-to-end/draghandle/draghandle.test.ts:143:7 › Check Draghandle functionality › Delete button should delete correct block [firefox] › src/end-to-end/slashmenu/slashmenu.test.ts:36:7 › Check SlashMenu Functionality › Should be able to create h2 [firefox] › src/end-to-end/slashmenu/slashmenu.test.ts:42:7 › Check SlashMenu Functionality › Should be able to create h3 [firefox] › src/end-to-end/slashmenu/slashmenu.test.ts:117:7 › Check SlashMenu Functionality › Should be able to create complex documents that match snapshots 11 skipped 80 passed (3.5m)
🎭 Playwright Run Summary
2 flaky [webkit] › src/end-to-end/ariakit/ariakit.test.ts:28:7 › Check Ariakit UI › Check link toolbar ─ [webkit] › src/end-to-end/basics/basicblocks.test.ts:11:7 › Check basic text block appearance › Check basic text block appearance 9 skipped 84 passed (3.7m)

Artifacts

Produced during runtime
Name Size Digest
playwright-report-chromium Expired
263 KB
sha256:ba812d82487d7b3a223abf0c0044e6ec94a313ccac221ae582339578427022d7
playwright-report-firefox Expired
2.14 MB
sha256:dd2d517e818876ee0f66fe7d8ea070396eded5ce79b3845a5e74c4ee4743570f
playwright-report-webkit Expired
2.27 MB
sha256:cf326b9fbac1b8fef6a9b67c9fc43c9586ee4f60c30063656e8be3d612f9d107