feat: Keyboard shortcuts to move selected block up/down (#1126) #3191
Annotations
2 errors, 5 warnings, and 1 notice
Run Playwright tests:
tests/src/utils/editor.ts#L47
1) [firefox] › draghandle/draghandle.test.ts:118:7 › Check Draghandle functionality › Click add button for non-selected empty block
Error: Snapshot comparison failed:
{
"type": "doc",
"content": [
{
"type": "blockGroup",
"content": [
{
"type": "blockContainer",
"attrs": {
"id": "0",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "heading",
"attrs": {
"textAlignment": "left",
"level": 1
},
"content": [
{
"type": "text",
"text": "Heading 1"
}
]
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "1",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "headingparagraph",
"attrs": {
"textAlignment": "left",
"level": 1
}
}
]
},
{
"type": "blockContainer",
"attrs": {
"id": "2",
"textColor": "default",
"backgroundColor": "default"
},
"content": [
{
"type": "paragraph",
"attrs": {
"textAlignment": "left"
}
}
]
}
]
}
]
}
Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json
Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/draghandle-draghandle-Chec-4310f-or-non-selected-empty-block-firefox/addnonselectedemptyblock-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 (/home/runner/work/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts:125:5
|
Run Playwright tests:
tests/src/end-to-end/theming/theming.test.ts#L50
2) [webkit] › theming/theming.test.ts:38:7 › Check Dark Theme is Automatically Applied › Should show dark link toolbar
Error: Screenshot comparison failed:
84480 pixels (ratio 0.03 of all image pixels) are different.
Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-link-toolbar-webkit-linux.png
Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/theming-theming-Check-Dark-398f6-ould-show-dark-link-toolbar-webkit/dark-link-toolbar-actual.png
Diff: /home/runner/work/BlockNote/BlockNote/tests/test-results/theming-theming-Check-Dark-398f6-ould-show-dark-link-toolbar-webkit/dark-link-toolbar-diff.png
48 |
49 | await page.waitForTimeout(500);
> 50 | expect(await page.screenshot()).toMatchSnapshot("dark-link-toolbar.png");
| ^
51 | });
52 | test("Should show dark slash menu", async ({ page }) => {
53 | await focusOnEditor(page);
at /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/theming/theming.test.ts:50:37
|
Run Playwright tests:
tests/[webkit] › draghandle/draghandle.test.ts#L1
tests/[webkit] › draghandle/draghandle.test.ts took 27.1s
|
Run Playwright tests:
tests/[chromium] › draghandle/draghandle.test.ts#L1
tests/[chromium] › draghandle/draghandle.test.ts took 24.3s
|
Run Playwright tests:
tests/[webkit] › slashmenu/slashmenu.test.ts#L1
tests/[webkit] › slashmenu/slashmenu.test.ts took 20.5s
|
Run Playwright tests:
tests/[firefox] › slashmenu/slashmenu.test.ts#L1
tests/[firefox] › slashmenu/slashmenu.test.ts took 18.9s
|
Run Playwright tests:
tests/[firefox] › images/images.test.ts#L1
tests/[firefox] › images/images.test.ts took 18.4s
|
Run Playwright tests
2 flaky
[firefox] › draghandle/draghandle.test.ts:118:7 › Check Draghandle functionality › Click add button for non-selected empty block
[webkit] › theming/theming.test.ts:38:7 › Check Dark Theme is Automatically Applied › Should show dark link toolbar
18 skipped
229 passed (7.4m)
|
Loading