fix: remove dependency array from comments re-rendering #6290
Annotations
10 errors and 3 notices
|
Build
Process completed with exit code 1.
|
|
Unhandled error:
packages/core/src/editor/BlockNoteEditor.ts#L1090
Error: [tiptap error]: The editor view is not available. Cannot access view['dom']. The editor may not be mounted yet.
❯ Object.get ../node_modules/.pnpm/@tiptap[email protected]_@[email protected]/node_modules/@tiptap/core/src/Editor.ts:335:17
❯ Timeout._onTimeout ../packages/core/src/editor/BlockNoteEditor.ts:1090:45
❯ listOnTimeout node:internal/timers:594:17
❯ processTimers node:internal/timers:529:7
This error originated in "src/unit/react/formatConversion/export/runTests.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "src/unit/react/formatConversion/export/runTests.test.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Unhandled error:
packages/core/src/editor/BlockNoteEditor.ts#L1090
Error: [tiptap error]: The editor view is not available. Cannot access view['dom']. The editor may not be mounted yet.
❯ Object.get ../node_modules/.pnpm/@tiptap[email protected]_@[email protected]/node_modules/@tiptap/core/src/Editor.ts:335:17
❯ Timeout._onTimeout ../packages/core/src/editor/BlockNoteEditor.ts:1090:45
❯ listOnTimeout node:internal/timers:594:17
❯ processTimers node:internal/timers:529:7
This error originated in "src/unit/react/formatConversion/export/runTests.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "reactFile/button". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Unhandled error:
packages/core/src/editor/BlockNoteEditor.ts#L1090
Error: [tiptap error]: The editor view is not available. Cannot access view['dom']. The editor may not be mounted yet.
❯ Object.get ../node_modules/.pnpm/@tiptap[email protected]_@[email protected]/node_modules/@tiptap/core/src/Editor.ts:335:17
❯ Timeout._onTimeout ../packages/core/src/editor/BlockNoteEditor.ts:1090:45
❯ listOnTimeout node:internal/timers:594:17
❯ processTimers node:internal/timers:529:7
This error originated in "src/unit/react/formatConversion/exportParseEquality/runTests.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "src/unit/react/formatConversion/exportParseEquality/runTests.test.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Unhandled error:
packages/core/src/editor/BlockNoteEditor.ts#L1090
Error: [tiptap error]: The editor view is not available. Cannot access view['dom']. The editor may not be mounted yet.
❯ Object.get ../node_modules/.pnpm/@tiptap[email protected]_@[email protected]/node_modules/@tiptap/core/src/Editor.ts:335:17
❯ Timeout._onTimeout ../packages/core/src/editor/BlockNoteEditor.ts:1090:45
❯ listOnTimeout node:internal/timers:594:17
❯ processTimers node:internal/timers:529:7
This error originated in "src/unit/react/formatConversion/exportParseEquality/runTests.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "src/unit/react/formatConversion/exportParseEquality/runTests.test.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
[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.
|
|
🎭 Playwright Run Summary
1 skipped
94 passed (2.2m)
|
|
🎭 Playwright Run Summary
9 skipped
86 passed (3.0m)
|
|
🎭 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)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report-chromium
|
263 KB |
sha256:fa4f1475ab51af832c95416277fec77d438cef83a7e5967dbe1d4e20a75d6563
|
|
|
playwright-report-firefox
|
2.15 MB |
sha256:6e72d13022fb8529f504f6638d5902bf08cd3e20fb10d7face5a44426ce147f9
|
|
|
playwright-report-webkit
|
260 KB |
sha256:ca72702e7e8f1d4628ed5fbd104c7d91134da19b7260abe1f1fd59a655f7e6bb
|
|