feat: Argument to select moved block in moveBlocksUp/Down (BLO-907)
#7790
build.yml
on: pull_request
Playwright Build
1m 9s
Build
3m 1s
Matrix: playwright
Merge Playwright Reports
45s
Annotations
12 errors and 6 notices
|
src/test/commands/moveBlocks.test.ts > Test moveBlocksDown > Selection starts outside, ends in second column:
packages/xl-multi-column/src/test/commands/moveBlocks.test.ts#L135
Error: Snapshot `Test moveBlocksDown > Selection starts outside, ends in second column 1` mismatched
- Expected
+ Received
@@ -162,17 +162,6 @@
"content": undefined,
"id": "column-list-0",
"props": {},
"type": "columnList",
},
- {
- "children": [],
- "content": [],
- "id": "trailing-paragraph",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
]
❯ src/test/commands/moveBlocks.test.ts:135:34
|
|
src/test/commands/moveBlocks.test.ts > Test moveBlocksDown > Selection starts outside, ends in column:
packages/xl-multi-column/src/test/commands/moveBlocks.test.ts#L127
Error: Snapshot `Test moveBlocksDown > Selection starts outside, ends in column 1` mismatched
- Expected
+ Received
@@ -162,17 +162,6 @@
"content": undefined,
"id": "column-list-0",
"props": {},
"type": "columnList",
},
- {
- "children": [],
- "content": [],
- "id": "trailing-paragraph",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
]
❯ src/test/commands/moveBlocks.test.ts:127:34
|
|
src/test/commands/moveBlocks.test.ts > Test moveBlocksDown > Selection across columns:
packages/xl-multi-column/src/test/commands/moveBlocks.test.ts#L119
Error: Snapshot `Test moveBlocksDown > Selection across columns 1` mismatched
- Expected
+ Received
@@ -134,17 +134,6 @@
"textAlignment": "left",
"textColor": "default",
},
"type": "paragraph",
},
- {
- "children": [],
- "content": [],
- "id": "trailing-paragraph",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
]
❯ src/test/commands/moveBlocks.test.ts:119:34
|
|
src/test/commands/moveBlocks.test.ts > Test moveBlocksDown > Selection spans column list:
packages/xl-multi-column/src/test/commands/moveBlocks.test.ts#L111
Error: Snapshot `Test moveBlocksDown > Selection spans column list 1` mismatched
- Expected
+ Received
@@ -34,21 +34,10 @@
},
"type": "paragraph",
},
{
"children": [],
- "content": [],
- "id": "trailing-paragraph",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
- {
- "children": [],
"content": [
{
"styles": {},
"text": "Paragraph 1",
"type": "text",
@@ -173,17 +162,6 @@
"textAlignment": "left",
"textColor": "default",
},
"type": "paragraph",
},
- {
- "children": [],
- "content": [],
- "id": "0",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
]
❯ src/test/commands/moveBlocks.test.ts:111:34
|
|
src/test/commands/moveBlocks.test.ts > Test moveBlocksUp > Selection starts in first column, ends outside:
packages/xl-multi-column/src/test/commands/moveBlocks.test.ts#L77
Error: Snapshot `Test moveBlocksUp > Selection starts in first column, ends outside 1` mismatched
- Expected
+ Received
@@ -134,17 +134,6 @@
"textAlignment": "left",
"textColor": "default",
},
"type": "paragraph",
},
- {
- "children": [],
- "content": [],
- "id": "trailing-paragraph",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
]
❯ src/test/commands/moveBlocks.test.ts:77:34
|
|
src/test/commands/moveBlocks.test.ts > Test moveBlocksUp > Selection starts in column, ends outside:
packages/xl-multi-column/src/test/commands/moveBlocks.test.ts#L69
Error: Snapshot `Test moveBlocksUp > Selection starts in column, ends outside 1` mismatched
- Expected
+ Received
@@ -134,17 +134,6 @@
"textAlignment": "left",
"textColor": "default",
},
"type": "paragraph",
},
- {
- "children": [],
- "content": [],
- "id": "trailing-paragraph",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
]
❯ src/test/commands/moveBlocks.test.ts:69:34
|
|
src/test/commands/moveBlocks.test.ts > Test moveBlocksUp > Selection starts outside, ends in second column:
packages/xl-multi-column/src/test/commands/moveBlocks.test.ts#L61
Error: Snapshot `Test moveBlocksUp > Selection starts outside, ends in second column 1` mismatched
- Expected
+ Received
@@ -162,17 +162,6 @@
"textAlignment": "left",
"textColor": "default",
},
"type": "paragraph",
},
- {
- "children": [],
- "content": [],
- "id": "trailing-paragraph",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
]
❯ src/test/commands/moveBlocks.test.ts:61:34
|
|
src/test/commands/moveBlocks.test.ts > Test moveBlocksUp > Selection starts outside, ends in column:
packages/xl-multi-column/src/test/commands/moveBlocks.test.ts#L53
Error: Snapshot `Test moveBlocksUp > Selection starts outside, ends in column 1` mismatched
- Expected
+ Received
@@ -162,17 +162,6 @@
"textAlignment": "left",
"textColor": "default",
},
"type": "paragraph",
},
- {
- "children": [],
- "content": [],
- "id": "trailing-paragraph",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
]
❯ src/test/commands/moveBlocks.test.ts:53:34
|
|
src/test/commands/moveBlocks.test.ts > Test moveBlocksUp > Selection across columns:
packages/xl-multi-column/src/test/commands/moveBlocks.test.ts#L45
Error: Snapshot `Test moveBlocksUp > Selection across columns 1` mismatched
- Expected
+ Received
@@ -134,17 +134,6 @@
"textAlignment": "left",
"textColor": "default",
},
"type": "paragraph",
},
- {
- "children": [],
- "content": [],
- "id": "trailing-paragraph",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
]
❯ src/test/commands/moveBlocks.test.ts:45:34
|
|
src/test/commands/moveBlocks.test.ts > Test moveBlocksUp > Selection spans column list:
packages/xl-multi-column/src/test/commands/moveBlocks.test.ts#L37
Error: Snapshot `Test moveBlocksUp > Selection spans column list 1` mismatched
- Expected
+ Received
@@ -162,17 +162,6 @@
"textAlignment": "left",
"textColor": "default",
},
"type": "paragraph",
},
- {
- "children": [],
- "content": [],
- "id": "trailing-paragraph",
- "props": {
- "backgroundColor": "default",
- "textAlignment": "left",
- "textColor": "default",
- },
- "type": "paragraph",
- },
]
❯ src/test/commands/moveBlocks.test.ts:37:34
|
|
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block:
tests/src/utils/editor.ts#L47
2) [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -41,19 +41,41 @@
"textAlignment": "left"
},
"content": [
{
"type": "text",
- "text": "ParagraphParagraph"
+ "text": "Paragrah"
}
]
}
]
}
]
}
]
+ },
+ {
+ "type": "blockContainer",
+ "attrs": {
+ "id": "2"
+ },
+ "content": [
+ {
+ "type": "paragraph",
+ "attrs": {
+ "backgroundColor": "default",
+ "textColor": "default",
+ "textAlignment": "left"
+ },
+ "content": [
+ {
+ "type": "text",
+ "text": "Paragraph"
+ }
+ ]
+ }
+ ]
}
]
}
]
}
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-webkit-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-9a661-lete-before-shallower-block-webkit-retry1/deleteShallowerBlock-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)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:319:5
|
|
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:236:7 › Check Keyboard Handlers' Behaviour › Check Delete end of block with inline content child:
tests/src/utils/editor.ts#L47
1) [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:236:7 › Check Keyboard Handlers' Behaviour › Check Delete end of block with inline content child
Error: expect(string).toMatchSnapshot(expected)
@@ -18,13 +18,40 @@
"textAlignment": "left"
},
"content": [
{
"type": "text",
- "text": "ParagraphParagraph"
+ "text": "Paragraph"
}
]
+ },
+ {
+ "type": "blockGroup",
+ "content": [
+ {
+ "type": "blockContainer",
+ "attrs": {
+ "id": "1"
+ },
+ "content": [
+ {
+ "type": "paragraph",
+ "attrs": {
+ "backgroundColor": "default",
+ "textColor": "default",
+ "textAlignment": "left"
+ },
+ "content": [
+ {
+ "type": "text",
+ "text": "Paragraph"
+ }
+ ]
+ }
+ ]
+ }
+ ]
}
]
}
]
}
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-webkit-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-db328-k-with-inline-content-child-webkit/deleteInlineContentChild-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)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:248:5
|
|
🎭 Playwright Run Summary
43 passed (36.3s)
|
|
🎭 Playwright Run Summary
43 passed (1.0m)
|
|
🎭 Playwright Run Summary
1 skipped
42 passed (45.9s)
|
|
🎭 Playwright Run Summary
16 skipped
78 passed (1.5m)
|
|
🎭 Playwright Run Summary
2 skipped
92 passed (1.3m)
|
|
🎭 Playwright Run Summary
2 flaky
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:236:7 › Check Keyboard Handlers' Behaviour › Check Delete end of block with inline content child
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block
12 skipped
80 passed (2.9m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
blob-report-chromium-1
Expired
|
127 KB |
sha256:6d7a41149a5811a0f5c24feb7ba1cfb38b865366733e6261674c9e0da097caed
|
|
|
blob-report-chromium-2
Expired
|
52.6 KB |
sha256:6b93636b2401359ed615ce062fe738e4574fcaafcd104085bd3fd5bd02a9e7bc
|
|
|
blob-report-firefox-1
Expired
|
112 KB |
sha256:bfa3c7babf6c78434b51ebc5fb3b6ed08471020e1bd66181101b8c0bd57d7562
|
|
|
blob-report-firefox-2
Expired
|
52.2 KB |
sha256:919563c3cf4d3f98509eb76dbd9b87dfdcb77db1f6ec5b4ec6bac046a1ff3383
|
|
|
blob-report-webkit-1
Expired
|
3.87 MB |
sha256:8dfdc59c33358b55f834e96d3ff55201be806d76b12c317486df21441df4c4d4
|
|
|
blob-report-webkit-2
Expired
|
53.1 KB |
sha256:39a33428a2d830e9ce42d148e99d64fff3a4615ee40c926705f8f63b2259d54a
|
|
|
playwright-build
Expired
|
21.2 MB |
sha256:47fa8c1c455dc94ca355ed3e478f96460c798acb2140a1de13ea0f6353d981f5
|
|
|
playwright-report-chromium-1
Expired
|
260 KB |
sha256:7c2366b68dad7395dcd14eb1b96d9ff35192165d1a1c93feb8d4fe17b20924fb
|
|
|
playwright-report-chromium-2
Expired
|
210 KB |
sha256:135d05157b84083b31116bb68afd79cc04875c7b9610e66bc40ad43e2f39df7f
|
|
|
playwright-report-firefox-1
Expired
|
249 KB |
sha256:59f7837e65efe9950705414095e4cd8d4c0a3b133ad515deb6ad65d2c809dc6a
|
|
|
playwright-report-firefox-2
Expired
|
209 KB |
sha256:c15cca66ca5797c5284a36c49c08f451eb1d55728809cb88b5aff6c74e27b40f
|
|
|
playwright-report-merged
Expired
|
4.42 MB |
sha256:7c6cd6e5fa6faa813d6a2dba5b6ace94e2afb7a83787335c511cfe54da04f27b
|
|
|
playwright-report-webkit-1
Expired
|
4.35 MB |
sha256:3612dda93ac0f1eb4b6338b6e126fbc61604fcf224291ba4e4d8bd79e220474c
|
|
|
playwright-report-webkit-2
Expired
|
210 KB |
sha256:b820594ff1fd0a78108127e34e1bd521e0fd3f1270f3d6e729c9436bea84e9ad
|
|