fix: handle pasting into table cells better, by collapsing their content to inline #2410 #6933
Annotations
1 error and 4 notices
|
[chromium] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:76: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:76: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
|
|
Build
{
"workflowData": {
"owner": "TypeCellOS",
"repo": "BlockNote",
"sha": "b172c84c09ad73f085534442b4e5924bc09cb07a",
"ref": "2449"
},
"key": "24UHIz6n5n",
"runId": 22229316927,
"webhookDebug": {
"action": "requested",
"head_branch": "fix/2410",
"head_repository_full_name": "TypeCellOS/BlockNote",
"full_name": "TypeCellOS/BlockNote",
"isPullRequest": true,
"prNumber": 2449,
"prNumberType": "number",
"isNewPullRequest": true,
"isOldPullRequest": false,
"prKey": "TypeCellOS/BlockNote:fix/2410",
"oldPrDataHash": "cA6xlldOQm",
"lookupKey": "TypeCellOS/BlockNote:fix/2410",
"data": {
"owner": "TypeCellOS",
"repo": "BlockNote",
"sha": "b172c84c09ad73f085534442b4e5924bc09cb07a",
"ref": "2449"
}
}
}
|
|
🎭 Playwright Run Summary
1 flaky
[chromium] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:76:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves nested blocks for empty block
1 skipped
102 passed (2.5m)
|
|
🎭 Playwright Run Summary
11 skipped
93 passed (2.9m)
|
|
🎭 Playwright Run Summary
9 skipped
95 passed (3.4m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report-chromium
Expired
|
3.37 MB |
sha256:39a3635808b310cd17cdc95a56af092e9cb0680319867edb6007fcca0523d4ee
|
|
|
playwright-report-firefox
Expired
|
261 KB |
sha256:4706757bc2b58c66d894f018d50ad973f181fc8a25d80143d7a47e1fbb90f782
|
|
|
playwright-report-webkit
Expired
|
265 KB |
sha256:434415e688631b25e34c6d1eb5c9a27359a962fd6e17f0915c77c362d0f37516
|
|
|
relative-ci-artifacts-editor
|
46.7 KB |
sha256:de02278c284506b80318cef67b60e261021955df967fac8907817281c3f1e9ae
|
|