feat(ai): SDK 5, tool calling, custom backends [render preview] #5924
Annotations
7 errors and 4 notices
[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
5) [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
4) [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
3) [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:161:7 › Check Draghandle functionality › Deleting block with children should delete all children:
tests/src/end-to-end/draghandle/draghandle.test.ts#L175
2) [firefox] › src/end-to-end/draghandle/draghandle.test.ts:161:7 › Check Draghandle functionality › Deleting block with children should delete all children
Error: page.hover: Target page, context or browser has been closed
Call log:
- waiting for locator('[data-content-type=heading][data-level="2"]')
173 | await page.keyboard.type("This is h3");
174 |
> 175 | await page.hover(H_TWO_BLOCK_SELECTOR);
| ^
176 | await page.click(DRAG_HANDLE_SELECTOR);
177 | await page.click("text=Delete");
178 | await page.waitForSelector(H_ONE_BLOCK_SELECTOR);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts:175:16
|
[firefox] › src/end-to-end/draghandle/draghandle.test.ts:161:7 › Check Draghandle functionality › Deleting block with children should delete all children:
tests/src/end-to-end/draghandle/draghandle.test.ts#L0
2) [firefox] › src/end-to-end/draghandle/draghandle.test.ts:161:7 › Check Draghandle functionality › Deleting block with children should delete all children
Test timeout of 30000ms exceeded.
|
[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.
|
Build
{
"workflowData": {
"owner": "TypeCellOS",
"repo": "BlockNote",
"sha": "0112171a649cd9fafa2b942be6f148b46b1c2d89",
"ref": "2007"
},
"key": "mfkVcgcWTn",
"runId": 18133046734,
"webhookDebug": {
"action": "requested",
"head_branch": "feature/ai-sdk-tools",
"head_repository_full_name": "TypeCellOS/BlockNote",
"full_name": "TypeCellOS/BlockNote",
"isPullRequest": true,
"prNumber": 2007,
"prNumberType": "number",
"isNewPullRequest": true,
"isOldPullRequest": false,
"prKey": "TypeCellOS/BlockNote:feature/ai-sdk-tools",
"oldPrDataHash": "QXfVl63Yly",
"lookupKey": "TypeCellOS/BlockNote:feature/ai-sdk-tools",
"data": {
"owner": "TypeCellOS",
"repo": "BlockNote",
"sha": "0112171a649cd9fafa2b942be6f148b46b1c2d89",
"ref": "2007"
}
}
}
|
🎭 Playwright Run Summary
1 skipped
93 passed (2.2m)
|
🎭 Playwright Run Summary
9 skipped
85 passed (3.0m)
|
🎭 Playwright Run Summary
5 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/draghandle/draghandle.test.ts:161:7 › Check Draghandle functionality › Deleting block with children should delete all children
[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
78 passed (4.0m)
|
Artifacts
Produced during runtime
Name | Size | Digest | |
---|---|---|---|
playwright-report-chromium
|
261 KB |
sha256:4e28a48644da50e2a56a9d64b94976599055d923751a26adabe0e623ad662186
|
|
playwright-report-firefox
|
2.32 MB |
sha256:7804a341f95562ad4a8fa2cae9640e785ceb36e895af4254182ea8c8ae857fe3
|
|
playwright-report-webkit
|
258 KB |
sha256:7e4d0eb8f67ef5da0bb0ede55336ff755f39fdb49a1e7d71c1449176b3d79687
|
|
relative-ci-artifacts-editor
|
46.9 KB |
sha256:aa423a02696f6f6ce69625b56cab64c1fcd021c5ce4b0c5b6526d3d9c9a54481
|
|