fix: use <details>/<summary> for toggle block HTML export #6992
Annotations
3 errors and 4 notices
|
[chromium] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:77:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves nested blocks for empty block:
tests/src/utils/editor.ts#L47
1) [chromium] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:77:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves nested blocks for empty block
Error: expect(string).toMatchSnapshot(expected)
@@ -23,91 +23,22 @@
]
},
{
"type": "blockContainer",
"attrs": {
- "id": "4"
+ "id": "1"
},
"content": [
{
"type": "paragraph",
"attrs": {
"backgroundColor": "default",
"textColor": "default",
"textAlignment": "left"
}
- },
- {
- "type": "blockGroup",
- "content": [
- {
- "type": "blockContainer",
- "attrs": {
- "id": "1"
- },
- "content": [
- {
- "type": "heading",
- "attrs": {
- "backgroundColor": "default",
- "textColor": "default",
- "textAlignment": "left",
- "level": 2,
- "isToggleable": false
- },
- "content": [
- {
- "type": "text",
- "text": "Heading"
- }
- ]
- }
- ]
- },
- {
- "type": "blockContainer",
- "attrs": {
- "id": "2"
- },
- "content": [
- {
- "type": "heading",
- "attrs": {
- "backgroundColor": "default",
- "textColor": "default",
- "textAlignment": "left",
- "level": 3,
- "isToggleable": false
- },
- "content": [
- {
- "type": "text",
- "text": "Heading"
- }
- ]
- }
- ]
- }
- ]
}
]
- },
- {
- "type": "blockContainer",
- "attrs": {
- "id": "3"
- },
- "content": [
- {
- "type": "paragraph",
- "attrs": {
- "backgroundColor": "default",
- "textColor": "default",
- "textAlignment": "left"
- }
- }
- ]
}
]
}
]
}
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-chromium-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-5461c-sted-blocks-for-empty-block-chromium/enterPreservesNestedBlocksEmpty-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 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
a
|
|
[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
1) [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
1) [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.
|
|
Build
{
"workflowData": {
"owner": "TypeCellOS",
"repo": "BlockNote",
"sha": "f94dff8f7702258f538297b06edac19b685f2af1",
"ref": "2524"
},
"key": "Sg8HLwHcoo",
"runId": 22774384228,
"webhookDebug": {
"action": "requested",
"head_branch": "fix/blo-936-toggle-block-details-summary",
"head_repository_full_name": "TypeCellOS/BlockNote",
"full_name": "TypeCellOS/BlockNote",
"isPullRequest": true,
"prNumber": 2524,
"prNumberType": "number",
"isNewPullRequest": true,
"isOldPullRequest": false,
"prKey": "TypeCellOS/BlockNote:fix/blo-936-toggle-block-details-summary",
"oldPrDataHash": "fyZRzVWskX",
"lookupKey": "TypeCellOS/BlockNote:fix/blo-936-toggle-block-details-summary",
"data": {
"owner": "TypeCellOS",
"repo": "BlockNote",
"sha": "60184702d0a61aff928b458b90a84a4cb898241c",
"ref": "2524"
}
}
}
|
|
🎭 Playwright Run Summary
1 flaky
[chromium] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:77:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves nested blocks for empty block
1 skipped
120 passed (2.9m)
|
|
🎭 Playwright Run Summary
11 skipped
111 passed (3.2m)
|
|
🎭 Playwright Run Summary
1 flaky
[webkit] › src/end-to-end/basics/basicblocks.test.ts:11:7 › Check basic text block appearance › Check basic text block appearance
9 skipped
112 passed (4.2m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report-chromium
Expired
|
5.87 MB |
sha256:88abd9a53f7bf9ad4c1c51c5d9bf61e6f5c3e77f83f7f2ebf3e2163fa9f24b53
|
|
|
playwright-report-firefox
Expired
|
275 KB |
sha256:0886475476c8b38634c5c6fd7db3d38d548a6916e80c2d205f8a9483df908b81
|
|
|
playwright-report-webkit
Expired
|
2.27 MB |
sha256:822d3503d659dd3a323b0f1a4dacb37ce1db7bc00d9c5a5b1a236b28a2e96ec4
|
|
|
relative-ci-artifacts-editor
|
46.8 KB |
sha256:ec1352130df4b5061c7c1351fbbfb1ba749ece2df5f76f6e50c40243b9716f9c
|
|