feat: Argument to select moved block in moveBlocksUp/Down (BLO-907)
#7789
build.yml
on: pull_request
Playwright Build
2m 7s
Build
3m 27s
Matrix: playwright
Merge Playwright Reports
59s
Annotations
14 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
|
|
Playwright Tests - webkit (1/2)
Process completed with exit code 1.
|
|
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:183:7 › Check Keyboard Handlers' Behaviour › Check Delete while selection not empty:
tests/src/utils/editor.ts#L47
2) [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:183:7 › Check Keyboard Handlers' Behaviour › Check Delete while selection not empty
Error: expect(string).toMatchSnapshot(expected)
@@ -18,11 +18,11 @@
"textAlignment": "left"
},
"content": [
{
"type": "text",
- "text": "Paragra"
+ "text": "Paragraph"
}
]
}
]
}
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-webkit-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-c6e70-e-while-selection-not-empty-webkit/deleteSelection-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:191:5
|
|
[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
1) [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -41,19 +41,41 @@
"textAlignment": "left"
},
"content": [
{
"type": "text",
- "text": "ParagraphParagraph"
+ "text": "Paragrap"
}
]
}
]
}
]
}
]
+ },
+ {
+ "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-retry2/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:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block:
tests/src/utils/editor.ts#L47
1) [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": "Paragrph"
}
]
}
]
}
]
}
]
+ },
+ {
+ "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
|
|
🎭 Playwright Run Summary
43 passed (38.2s)
|
|
🎭 Playwright Run Summary
1 skipped
42 passed (44.8s)
|
|
🎭 Playwright Run Summary
43 passed (1.0m)
|
|
🎭 Playwright Run Summary
16 skipped
78 passed (1.6m)
|
|
🎭 Playwright Run Summary
2 skipped
92 passed (1.3m)
|
|
🎭 Playwright Run Summary
1 failed
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block
1 flaky
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:183:7 › Check Keyboard Handlers' Behaviour › Check Delete while selection not empty
12 skipped
12 did not run
68 passed (2.7m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
blob-report-chromium-1
Expired
|
127 KB |
sha256:d3100115e0745728f9f095ae74e404d057f10f985cbee3dac266275b0e3238d3
|
|
|
blob-report-chromium-2
Expired
|
52.5 KB |
sha256:d58b9f2e55112e2157d2c6a9899b07f33cc87268517008fea550806f6eb28b13
|
|
|
blob-report-firefox-1
Expired
|
113 KB |
sha256:8df179471cb54adc2937b06e56e96ad9a5244eadd41abd883eaca7758eb377a8
|
|
|
blob-report-firefox-2
Expired
|
52.3 KB |
sha256:6f4555eebdb1b5b0e0af8ec20a88c44fcfe72ba64178c53fca42edada05c6569
|
|
|
blob-report-webkit-1
Expired
|
3.82 MB |
sha256:1834970aa4236ff03cca27f67c57c0842617b28823e2ce97af0eb4a10fa6aaaa
|
|
|
blob-report-webkit-2
Expired
|
53.2 KB |
sha256:84955b75eb9da645913a9f957c47d592b10dbe2a5599e42ef0d5515a6ab4d060
|
|
|
playwright-build
Expired
|
21.2 MB |
sha256:9fe3d455404331ff4d0ca7796511d6949200eb1d1b748d0d01bbc3482076a5ef
|
|
|
playwright-report-chromium-1
Expired
|
260 KB |
sha256:830da6418a52561cc091daf425b85d2284edc43fd0b1dc901896019eb2627f16
|
|
|
playwright-report-chromium-2
Expired
|
210 KB |
sha256:5f8be51096f92a5ea59fa2bbaf33d0b5848c801369cf0b2058757911ff24c31a
|
|
|
playwright-report-firefox-1
Expired
|
250 KB |
sha256:eeafd48d6849598e0f6a52a9e6f6212e2b91f5c8cedbde5ab80d2b4ae29421f1
|
|
|
playwright-report-firefox-2
Expired
|
209 KB |
sha256:06ea4700a5aa1edb6ffbdabc801a6b94ac654f77bf3db5b50e263621eaf373ce
|
|
|
playwright-report-merged
Expired
|
4.37 MB |
sha256:2cab919322ca99269481e7de0461decb0c7ca641c89a0a3c165fa92d05a47934
|
|
|
playwright-report-webkit-1
Expired
|
4.3 MB |
sha256:6330fab11b7cada730a10d6b18bbe1fac5d1047aa7611c32cafa53ff2db380c4
|
|
|
playwright-report-webkit-2
Expired
|
210 KB |
sha256:18b9fc39a2bbf3e141c9b6c23cff5a41cf621800eeb10f209d3979b8bda2d44e
|
|