diff --git a/examples/01-basic/02-block-objects/src/App.tsx b/examples/01-basic/02-block-objects/src/App.tsx index c50da7ddba..c3d623f2e8 100644 --- a/examples/01-basic/02-block-objects/src/App.tsx +++ b/examples/01-basic/02-block-objects/src/App.tsx @@ -26,9 +26,6 @@ export default function App() { type: "paragraph", content: "This is a paragraph block", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/01-basic/03-multi-column/src/App.tsx b/examples/01-basic/03-multi-column/src/App.tsx index 3a0d10d8d9..c688406214 100644 --- a/examples/01-basic/03-multi-column/src/App.tsx +++ b/examples/01-basic/03-multi-column/src/App.tsx @@ -90,9 +90,6 @@ export default function App() { }, ], }, - { - type: "paragraph", - }, ], }); diff --git a/examples/01-basic/04-default-blocks/src/App.tsx b/examples/01-basic/04-default-blocks/src/App.tsx index d71f676c18..0d55d1af3d 100644 --- a/examples/01-basic/04-default-blocks/src/App.tsx +++ b/examples/01-basic/04-default-blocks/src/App.tsx @@ -145,9 +145,6 @@ export default function App() { }, ], }, - { - type: "paragraph", - }, ], }); diff --git a/examples/01-basic/07-selection-blocks/src/App.tsx b/examples/01-basic/07-selection-blocks/src/App.tsx index 5251754f5a..811b14e328 100644 --- a/examples/01-basic/07-selection-blocks/src/App.tsx +++ b/examples/01-basic/07-selection-blocks/src/App.tsx @@ -21,9 +21,6 @@ export default function App() { type: "paragraph", content: "Select different blocks to see the JSON change below", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/01-basic/12-multi-editor/src/App.tsx b/examples/01-basic/12-multi-editor/src/App.tsx index 0aa2b11810..994e98830f 100644 --- a/examples/01-basic/12-multi-editor/src/App.tsx +++ b/examples/01-basic/12-multi-editor/src/App.tsx @@ -35,9 +35,6 @@ export default function App() { type: "paragraph", content: "This is a block in the first editor", }, - { - type: "paragraph", - }, ]} /> diff --git a/examples/01-basic/16-read-only-editor/src/App.tsx b/examples/01-basic/16-read-only-editor/src/App.tsx index ab0ae5cfb4..b7a1ef9d00 100644 --- a/examples/01-basic/16-read-only-editor/src/App.tsx +++ b/examples/01-basic/16-read-only-editor/src/App.tsx @@ -145,9 +145,6 @@ export default function App() { }, ], }, - { - type: "paragraph", - }, ], }); diff --git a/examples/02-backend/01-file-uploading/src/App.tsx b/examples/02-backend/01-file-uploading/src/App.tsx index c5805f0c40..982d0f37a6 100644 --- a/examples/02-backend/01-file-uploading/src/App.tsx +++ b/examples/02-backend/01-file-uploading/src/App.tsx @@ -33,9 +33,6 @@ export default function App() { { type: "image", }, - { - type: "paragraph", - }, ], uploadFile, }); diff --git a/examples/02-backend/03-s3/src/App.tsx b/examples/02-backend/03-s3/src/App.tsx index 867933afc0..6f6731ec7e 100644 --- a/examples/02-backend/03-s3/src/App.tsx +++ b/examples/02-backend/03-s3/src/App.tsx @@ -81,9 +81,6 @@ export default function App() { { type: "image", }, - { - type: "paragraph", - }, ], uploadFile: async (file) => { /** diff --git a/examples/03-ui-components/01-ui-elements-remove/src/App.tsx b/examples/03-ui-components/01-ui-elements-remove/src/App.tsx index bb4c1176da..6f8b39a75f 100644 --- a/examples/03-ui-components/01-ui-elements-remove/src/App.tsx +++ b/examples/03-ui-components/01-ui-elements-remove/src/App.tsx @@ -21,9 +21,6 @@ export default function App() { content: "Try making text bold with Ctrl+B/Cmd+B or undo with Ctrl+Z/Cmd+Z.", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/02-formatting-toolbar-buttons/src/App.tsx b/examples/03-ui-components/02-formatting-toolbar-buttons/src/App.tsx index 900f1c6080..f6bb83c2e1 100644 --- a/examples/03-ui-components/02-formatting-toolbar-buttons/src/App.tsx +++ b/examples/03-ui-components/02-formatting-toolbar-buttons/src/App.tsx @@ -104,9 +104,6 @@ export default function App() { content: "Notice that the buttons don't appear when the image block above is selected, as it has no inline content.", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/03-formatting-toolbar-block-type-items/src/App.tsx b/examples/03-ui-components/03-formatting-toolbar-block-type-items/src/App.tsx index 54f6f43d3f..97b5836bfb 100644 --- a/examples/03-ui-components/03-formatting-toolbar-block-type-items/src/App.tsx +++ b/examples/03-ui-components/03-formatting-toolbar-block-type-items/src/App.tsx @@ -69,9 +69,6 @@ export default function App() { content: "Or select text in this alert - the Block Type Select also appears", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/04-side-menu-buttons/src/App.tsx b/examples/03-ui-components/04-side-menu-buttons/src/App.tsx index 29e82e9f2f..29a79fbbc9 100644 --- a/examples/03-ui-components/04-side-menu-buttons/src/App.tsx +++ b/examples/03-ui-components/04-side-menu-buttons/src/App.tsx @@ -35,9 +35,6 @@ export default function App() { type: "paragraph", content: "Click it to remove the hovered block", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/05-side-menu-drag-handle-items/src/App.tsx b/examples/03-ui-components/05-side-menu-drag-handle-items/src/App.tsx index f734898e1a..ec50019e0c 100644 --- a/examples/03-ui-components/05-side-menu-drag-handle-items/src/App.tsx +++ b/examples/03-ui-components/05-side-menu-drag-handle-items/src/App.tsx @@ -46,9 +46,6 @@ export default function App() { content: "Try resetting this block's type using the new Drag Handle Menu item", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/06-suggestion-menus-slash-menu-items/src/App.tsx b/examples/03-ui-components/06-suggestion-menus-slash-menu-items/src/App.tsx index c5f65cfdd8..906000401a 100644 --- a/examples/03-ui-components/06-suggestion-menus-slash-menu-items/src/App.tsx +++ b/examples/03-ui-components/06-suggestion-menus-slash-menu-items/src/App.tsx @@ -56,9 +56,6 @@ export default function App() { type: "paragraph", content: "Notice the new 'Insert Hello World' item - try it out!", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/07-suggestion-menus-slash-menu-component/src/App.tsx b/examples/03-ui-components/07-suggestion-menus-slash-menu-component/src/App.tsx index 593e3703cc..c7af9b48a1 100644 --- a/examples/03-ui-components/07-suggestion-menus-slash-menu-component/src/App.tsx +++ b/examples/03-ui-components/07-suggestion-menus-slash-menu-component/src/App.tsx @@ -48,9 +48,6 @@ export default function App() { type: "paragraph", content: "It's been replaced with a custom component", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/08-suggestion-menus-emoji-picker-columns/src/App.tsx b/examples/03-ui-components/08-suggestion-menus-emoji-picker-columns/src/App.tsx index 10e0b7f43b..fe4f1e4ed4 100644 --- a/examples/03-ui-components/08-suggestion-menus-emoji-picker-columns/src/App.tsx +++ b/examples/03-ui-components/08-suggestion-menus-emoji-picker-columns/src/App.tsx @@ -22,9 +22,6 @@ export default function App() { type: "paragraph", content: "There are now 5 columns instead of 10", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/09-suggestion-menus-emoji-picker-component/src/App.tsx b/examples/03-ui-components/09-suggestion-menus-emoji-picker-component/src/App.tsx index 56e91935f0..88379a6dd0 100644 --- a/examples/03-ui-components/09-suggestion-menus-emoji-picker-component/src/App.tsx +++ b/examples/03-ui-components/09-suggestion-menus-emoji-picker-component/src/App.tsx @@ -53,9 +53,6 @@ export default function App() { type: "paragraph", content: "It's been replaced with a custom component", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/10-suggestion-menus-grid-mentions/src/App.tsx b/examples/03-ui-components/10-suggestion-menus-grid-mentions/src/App.tsx index 0c2f9f6c21..788ec00ed8 100644 --- a/examples/03-ui-components/10-suggestion-menus-grid-mentions/src/App.tsx +++ b/examples/03-ui-components/10-suggestion-menus-grid-mentions/src/App.tsx @@ -76,9 +76,6 @@ export function App() { type: "paragraph", content: "Press the '@' key to open the mentions menu and add another", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/11-uppy-file-panel/src/App.tsx b/examples/03-ui-components/11-uppy-file-panel/src/App.tsx index aa66eedd49..9f01a3c30b 100644 --- a/examples/03-ui-components/11-uppy-file-panel/src/App.tsx +++ b/examples/03-ui-components/11-uppy-file-panel/src/App.tsx @@ -40,9 +40,6 @@ export default function App() { { type: "image", }, - { - type: "paragraph", - }, ], uploadFile, }); diff --git a/examples/03-ui-components/12-static-formatting-toolbar/src/App.tsx b/examples/03-ui-components/12-static-formatting-toolbar/src/App.tsx index fa61f64dc6..7889f0b342 100644 --- a/examples/03-ui-components/12-static-formatting-toolbar/src/App.tsx +++ b/examples/03-ui-components/12-static-formatting-toolbar/src/App.tsx @@ -17,9 +17,6 @@ export default function App() { type: "paragraph", content: "Check out the static formatting toolbar above!", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/13-custom-ui/src/App.tsx b/examples/03-ui-components/13-custom-ui/src/App.tsx index dd229b1bdd..40974fedbc 100644 --- a/examples/03-ui-components/13-custom-ui/src/App.tsx +++ b/examples/03-ui-components/13-custom-ui/src/App.tsx @@ -27,9 +27,6 @@ export default function App() { type: "paragraph", content: "Welcome to this demo!", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/14-experimental-mobile-formatting-toolbar/src/App.tsx b/examples/03-ui-components/14-experimental-mobile-formatting-toolbar/src/App.tsx index 62c82ddfe8..47d59e453c 100644 --- a/examples/03-ui-components/14-experimental-mobile-formatting-toolbar/src/App.tsx +++ b/examples/03-ui-components/14-experimental-mobile-formatting-toolbar/src/App.tsx @@ -21,9 +21,6 @@ export default function App() { content: "Check out the experimental mobile formatting toolbar by selecting some text (best experienced on a mobile device).", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/16-link-toolbar-buttons/src/App.tsx b/examples/03-ui-components/16-link-toolbar-buttons/src/App.tsx index 4b44b399d9..52504b56bf 100644 --- a/examples/03-ui-components/16-link-toolbar-buttons/src/App.tsx +++ b/examples/03-ui-components/16-link-toolbar-buttons/src/App.tsx @@ -60,9 +60,6 @@ export default function App() { }, ], }, - { - type: "paragraph", - }, ], }); diff --git a/examples/03-ui-components/19-suggestion-menus-grouping-ordering/src/App.tsx b/examples/03-ui-components/19-suggestion-menus-grouping-ordering/src/App.tsx index 80d5e59225..93480ff122 100644 --- a/examples/03-ui-components/19-suggestion-menus-grouping-ordering/src/App.tsx +++ b/examples/03-ui-components/19-suggestion-menus-grouping-ordering/src/App.tsx @@ -42,9 +42,6 @@ export default function App() { content: "Notice that only 'Basic blocks' and 'Headings' are shown, in that order", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/04-theming/01-theming-dom-attributes/src/App.tsx b/examples/04-theming/01-theming-dom-attributes/src/App.tsx index 7068e12388..ccf55a3d5f 100644 --- a/examples/04-theming/01-theming-dom-attributes/src/App.tsx +++ b/examples/04-theming/01-theming-dom-attributes/src/App.tsx @@ -44,9 +44,6 @@ export default function App() { }, ], }, - { - type: "paragraph", - }, ], }); diff --git a/examples/04-theming/02-changing-font/src/App.tsx b/examples/04-theming/02-changing-font/src/App.tsx index 4ef3f9a3dd..3626ef9e32 100644 --- a/examples/04-theming/02-changing-font/src/App.tsx +++ b/examples/04-theming/02-changing-font/src/App.tsx @@ -17,9 +17,6 @@ export default function App() { type: "paragraph", content: "You'll see that the font has been changed to Comic Sans MS", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/04-theming/03-theming-css/src/App.tsx b/examples/04-theming/03-theming-css/src/App.tsx index 493ae7d4ed..b15568d810 100644 --- a/examples/04-theming/03-theming-css/src/App.tsx +++ b/examples/04-theming/03-theming-css/src/App.tsx @@ -22,9 +22,6 @@ export default function App() { content: "Press the '/' key - the hovered Slash Menu items are also blue", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/04-theming/04-theming-css-variables/src/App.tsx b/examples/04-theming/04-theming-css-variables/src/App.tsx index ba45053f04..7ef5ab3f6d 100644 --- a/examples/04-theming/04-theming-css-variables/src/App.tsx +++ b/examples/04-theming/04-theming-css-variables/src/App.tsx @@ -22,9 +22,6 @@ export default function App() { content: "Toggle light/dark mode in the page footer and see the theme change too", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/04-theming/05-theming-css-variables-code/src/App.tsx b/examples/04-theming/05-theming-css-variables-code/src/App.tsx index 8a02496d7e..0eaa83cfa1 100644 --- a/examples/04-theming/05-theming-css-variables-code/src/App.tsx +++ b/examples/04-theming/05-theming-css-variables-code/src/App.tsx @@ -84,9 +84,6 @@ export default function App() { content: "Toggle light/dark mode in the page footer and see the theme change too", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/04-theming/06-code-block/src/App.tsx b/examples/04-theming/06-code-block/src/App.tsx index 6111070e37..82d10bae9e 100644 --- a/examples/04-theming/06-code-block/src/App.tsx +++ b/examples/04-theming/06-code-block/src/App.tsx @@ -47,9 +47,6 @@ export default function App() { }, ], }, - { - type: "paragraph", - }, ], }); diff --git a/examples/04-theming/07-custom-code-block/src/App.tsx b/examples/04-theming/07-custom-code-block/src/App.tsx index 32adb82472..8a9c74eac1 100644 --- a/examples/04-theming/07-custom-code-block/src/App.tsx +++ b/examples/04-theming/07-custom-code-block/src/App.tsx @@ -69,9 +69,6 @@ export default function App() { }, ], }, - { - type: "paragraph", - }, ], }); diff --git a/examples/05-interoperability/09-blocks-to-html-static-render/src/App.tsx b/examples/05-interoperability/09-blocks-to-html-static-render/src/App.tsx index 8764f9fcc9..7ef44fc498 100644 --- a/examples/05-interoperability/09-blocks-to-html-static-render/src/App.tsx +++ b/examples/05-interoperability/09-blocks-to-html-static-render/src/App.tsx @@ -148,9 +148,6 @@ export default function App() { }, ], }, - { - type: "paragraph", - }, ], }); diff --git a/examples/05-interoperability/10-static-html-render/src/App.tsx b/examples/05-interoperability/10-static-html-render/src/App.tsx index 0094c677cb..f1f4eb4d42 100644 --- a/examples/05-interoperability/10-static-html-render/src/App.tsx +++ b/examples/05-interoperability/10-static-html-render/src/App.tsx @@ -144,9 +144,6 @@ export default function App() { }, ], }, - { - type: "paragraph", - }, ], }); diff --git a/examples/06-custom-schema/01-alert-block/src/App.tsx b/examples/06-custom-schema/01-alert-block/src/App.tsx index 929f5b8459..34a3afba7b 100644 --- a/examples/06-custom-schema/01-alert-block/src/App.tsx +++ b/examples/06-custom-schema/01-alert-block/src/App.tsx @@ -32,9 +32,6 @@ export default function App() { type: "paragraph", content: "Click the '!' icon to change the alert type", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/06-custom-schema/02-suggestion-menus-mentions/src/App.tsx b/examples/06-custom-schema/02-suggestion-menus-mentions/src/App.tsx index 4339153441..c1e1a5c412 100644 --- a/examples/06-custom-schema/02-suggestion-menus-mentions/src/App.tsx +++ b/examples/06-custom-schema/02-suggestion-menus-mentions/src/App.tsx @@ -75,9 +75,6 @@ export function App() { type: "paragraph", content: "Press the '@' key to open the mentions menu and add another", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/06-custom-schema/03-font-style/src/App.tsx b/examples/06-custom-schema/03-font-style/src/App.tsx index 25667f9d70..c813aaf713 100644 --- a/examples/06-custom-schema/03-font-style/src/App.tsx +++ b/examples/06-custom-schema/03-font-style/src/App.tsx @@ -121,9 +121,6 @@ export default function App() { content: "Highlight some text to open the Formatting Toolbar and change the font elsewhere", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/06-custom-schema/04-pdf-file-block/src/App.tsx b/examples/06-custom-schema/04-pdf-file-block/src/App.tsx index 3c244a2840..c5a69d9b4b 100644 --- a/examples/06-custom-schema/04-pdf-file-block/src/App.tsx +++ b/examples/06-custom-schema/04-pdf-file-block/src/App.tsx @@ -67,9 +67,6 @@ export default function App() { type: "paragraph", content: "Press the '/' key to open the Slash Menu and add another PDF", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/06-custom-schema/05-alert-block-full-ux/src/App.tsx b/examples/06-custom-schema/05-alert-block-full-ux/src/App.tsx index 09393854b6..4a816f872c 100644 --- a/examples/06-custom-schema/05-alert-block-full-ux/src/App.tsx +++ b/examples/06-custom-schema/05-alert-block-full-ux/src/App.tsx @@ -101,9 +101,6 @@ export default function App() { content: "Or select some text to see the alert in the Formatting Toolbar's Block Type Select", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/06-custom-schema/06-toggleable-blocks/src/App.tsx b/examples/06-custom-schema/06-toggleable-blocks/src/App.tsx index b1833d5f27..81877de7e4 100644 --- a/examples/06-custom-schema/06-toggleable-blocks/src/App.tsx +++ b/examples/06-custom-schema/06-toggleable-blocks/src/App.tsx @@ -47,9 +47,6 @@ export default function App() { type: "paragraph", content: "Click the '>' icon to show/hide its children", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/06-custom-schema/07-configuring-blocks/src/App.tsx b/examples/06-custom-schema/07-configuring-blocks/src/App.tsx index 491dc8a1c1..47db15f007 100644 --- a/examples/06-custom-schema/07-configuring-blocks/src/App.tsx +++ b/examples/06-custom-schema/07-configuring-blocks/src/App.tsx @@ -32,9 +32,6 @@ export default function App() { content: "Notice how only heading levels 1-3 are available, and toggle headings are not shown.", }, - { - type: "paragraph", - }, ], }); diff --git a/examples/06-custom-schema/08-non-editable-block/src/App.tsx b/examples/06-custom-schema/08-non-editable-block/src/App.tsx index 78a611081f..ca7a4cd8d0 100644 --- a/examples/06-custom-schema/08-non-editable-block/src/App.tsx +++ b/examples/06-custom-schema/08-non-editable-block/src/App.tsx @@ -27,9 +27,6 @@ export default function App() { { type: "nonEditable", }, - { - type: "paragraph", - }, ], }); diff --git a/packages/core/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap b/packages/core/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap index dd575d1041..e854849d11 100644 --- a/packages/core/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap +++ b/packages/core/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap @@ -664,7 +664,7 @@ exports[`Test insertBlocks > Insert multiple blocks after 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1339,7 +1339,7 @@ exports[`Test insertBlocks > Insert multiple blocks before 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1934,7 +1934,7 @@ exports[`Test insertBlocks > Insert single basic block after 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -2541,7 +2541,7 @@ exports[`Test insertBlocks > Insert single basic block before (without type) 2`] { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -3136,7 +3136,7 @@ exports[`Test insertBlocks > Insert single basic block before 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -3847,7 +3847,7 @@ exports[`Test insertBlocks > Insert single complex block after 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -4558,7 +4558,7 @@ exports[`Test insertBlocks > Insert single complex block before 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", diff --git a/packages/core/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap b/packages/core/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap index 690c00017e..20c94c5ab8 100644 --- a/packages/core/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap +++ b/packages/core/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap @@ -540,7 +540,7 @@ exports[`Test mergeBlocks > Basic 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1091,7 +1091,7 @@ exports[`Test mergeBlocks > Blocks have different types 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1642,7 +1642,7 @@ exports[`Test mergeBlocks > First block has children 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -2192,7 +2192,7 @@ exports[`Test mergeBlocks > Second block has children 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -2749,7 +2749,7 @@ exports[`Test mergeBlocks > Second block is empty 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", diff --git a/packages/core/src/api/blockManipulation/commands/moveBlocks/__snapshots__/moveBlocks.test.ts.snap b/packages/core/src/api/blockManipulation/commands/moveBlocks/__snapshots__/moveBlocks.test.ts.snap index 902463bbc1..6bf8b7ba59 100644 --- a/packages/core/src/api/blockManipulation/commands/moveBlocks/__snapshots__/moveBlocks.test.ts.snap +++ b/packages/core/src/api/blockManipulation/commands/moveBlocks/__snapshots__/moveBlocks.test.ts.snap @@ -557,7 +557,7 @@ exports[`Test moveBlocksDown > Basic 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1125,7 +1125,7 @@ exports[`Test moveBlocksDown > Into children 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1693,7 +1693,7 @@ exports[`Test moveBlocksDown > Last block 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -2261,7 +2261,7 @@ exports[`Test moveBlocksDown > Multiple blocks 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -2829,7 +2829,7 @@ exports[`Test moveBlocksDown > Multiple blocks ending in block with children 1`] { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -3397,7 +3397,7 @@ exports[`Test moveBlocksDown > Multiple blocks ending in nested block 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -3464,7 +3464,7 @@ exports[`Test moveBlocksDown > Multiple blocks starting and ending in nested blo { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -3972,17 +3972,6 @@ exports[`Test moveBlocksDown > Multiple blocks starting and ending in nested blo }, "type": "heading", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -4543,7 +4532,7 @@ exports[`Test moveBlocksDown > Multiple blocks starting in block with children 1 { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -5110,7 +5099,7 @@ exports[`Test moveBlocksDown > Multiple blocks starting in nested block 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -5677,7 +5666,7 @@ exports[`Test moveBlocksDown > Out of children 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -6245,7 +6234,7 @@ exports[`Test moveBlocksUp > Basic 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -6813,7 +6802,7 @@ exports[`Test moveBlocksUp > First block 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -7381,7 +7370,7 @@ exports[`Test moveBlocksUp > Into children 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -7949,7 +7938,7 @@ exports[`Test moveBlocksUp > Multiple blocks 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -8517,7 +8506,7 @@ exports[`Test moveBlocksUp > Multiple blocks ending in block with children 1`] = { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -9085,7 +9074,7 @@ exports[`Test moveBlocksUp > Multiple blocks ending in nested block 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -9652,7 +9641,7 @@ exports[`Test moveBlocksUp > Multiple blocks starting and ending in nested block { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -10220,7 +10209,7 @@ exports[`Test moveBlocksUp > Multiple blocks starting in block with children 1`] { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -10787,7 +10776,7 @@ exports[`Test moveBlocksUp > Multiple blocks starting in nested block 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -11354,7 +11343,7 @@ exports[`Test moveBlocksUp > Out of children 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", diff --git a/packages/core/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.ts b/packages/core/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.ts index 8c637d5985..df71d8eef7 100644 --- a/packages/core/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.ts +++ b/packages/core/src/api/blockManipulation/commands/moveBlocks/moveBlocks.test.ts @@ -232,7 +232,7 @@ describe("Test moveBlocksDown", () => { }); it("Last block", () => { - getEditor().setTextCursorPosition("trailing-paragraph"); + getEditor().setTextCursorPosition("paragraph-9"); moveBlocksDown(getEditor()); diff --git a/packages/core/src/api/blockManipulation/commands/nestBlock/__snapshots__/nestBlock.test.ts.snap b/packages/core/src/api/blockManipulation/commands/nestBlock/__snapshots__/nestBlock.test.ts.snap index f2e45772c1..95a5419dab 100644 --- a/packages/core/src/api/blockManipulation/commands/nestBlock/__snapshots__/nestBlock.test.ts.snap +++ b/packages/core/src/api/blockManipulation/commands/nestBlock/__snapshots__/nestBlock.test.ts.snap @@ -71,17 +71,6 @@ exports[`unnestBlock / liftListItem > BLO-835: unnest block with siblings after }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -139,17 +128,6 @@ exports[`unnestBlock / liftListItem > BLO-835: unnest block with siblings after }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -241,17 +219,6 @@ exports[`unnestBlock / liftListItem > BLO-835: unnest block with siblings after }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -326,17 +293,6 @@ exports[`unnestBlock / liftListItem > BLO-844/847: unnest with complex nesting a }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -376,17 +332,6 @@ exports[`unnestBlock / liftListItem > BLO-844/847: unnest with complex nesting a }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -514,17 +459,6 @@ exports[`unnestBlock / liftListItem > BLO-899: Shift-Tab on second-level nested }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -600,17 +534,6 @@ exports[`unnestBlock / liftListItem > BLO-899: Shift-Tab on second-level nested }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -703,17 +626,6 @@ exports[`unnestBlock / liftListItem > BLO-953: unnest block with multi-level nes }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -789,17 +701,6 @@ exports[`unnestBlock / liftListItem > BLO-953: unnest block with multi-level nes }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -891,17 +792,6 @@ exports[`unnestBlock / liftListItem > Edge cases > should handle unnesting block }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -961,17 +851,6 @@ exports[`unnestBlock / liftListItem > Edge cases > should handle unnesting with }, "type": "heading", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -1012,17 +891,6 @@ exports[`unnestBlock / liftListItem > nestBlock > should nest a block under its }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -1080,16 +948,5 @@ exports[`unnestBlock / liftListItem > nestBlock > should nest into a sibling tha }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "0", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; diff --git a/packages/core/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap b/packages/core/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap index d255acf235..d876b31175 100644 --- a/packages/core/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap +++ b/packages/core/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap @@ -470,7 +470,7 @@ exports[`Test replaceBlocks > Remove multiple consecutive blocks 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -767,7 +767,7 @@ exports[`Test replaceBlocks > Remove multiple non-consecutive blocks 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1318,7 +1318,7 @@ exports[`Test replaceBlocks > Remove single block 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1850,7 +1850,7 @@ exports[`Test replaceBlocks > Replace multiple consecutive blocks with multiple { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -2342,7 +2342,7 @@ exports[`Test replaceBlocks > Replace multiple consecutive blocks with single ba { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -2892,7 +2892,7 @@ exports[`Test replaceBlocks > Replace multiple consecutive blocks with single co { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -3240,7 +3240,7 @@ exports[`Test replaceBlocks > Replace multiple non-consecutive blocks with multi { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -3548,7 +3548,7 @@ exports[`Test replaceBlocks > Replace multiple non-consecutive blocks with singl { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -3914,7 +3914,7 @@ exports[`Test replaceBlocks > Replace multiple non-consecutive blocks with singl { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -4516,7 +4516,7 @@ exports[`Test replaceBlocks > Replace single block with multiple 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -5078,7 +5078,7 @@ exports[`Test replaceBlocks > Replace single block with single basic 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -5698,7 +5698,7 @@ exports[`Test replaceBlocks > Replace single block with single complex 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", diff --git a/packages/core/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap b/packages/core/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap index 60c3d1c1ed..8cd297eaee 100644 --- a/packages/core/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap +++ b/packages/core/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap @@ -574,7 +574,7 @@ exports[`Test splitBlocks > Basic 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1159,7 +1159,7 @@ exports[`Test splitBlocks > Block has children 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1744,7 +1744,7 @@ exports[`Test splitBlocks > Don't keep props 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -2329,7 +2329,7 @@ exports[`Test splitBlocks > Don't keep type 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -2908,7 +2908,7 @@ exports[`Test splitBlocks > End of content 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -3495,7 +3495,7 @@ exports[`Test splitBlocks > Keep type 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", diff --git a/packages/core/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap b/packages/core/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap index 3246168815..e4559884da 100644 --- a/packages/core/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap +++ b/packages/core/src/api/blockManipulation/commands/updateBlock/__snapshots__/updateBlock.test.ts.snap @@ -629,7 +629,7 @@ exports[`Test updateBlock > Revert all props 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1269,7 +1269,7 @@ exports[`Test updateBlock > Revert single prop 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -1909,7 +1909,7 @@ exports[`Test updateBlock > Update all props 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -2549,7 +2549,7 @@ exports[`Test updateBlock > Update children 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -3131,7 +3131,7 @@ exports[`Test updateBlock > Update inline content to no content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -4055,7 +4055,7 @@ exports[`Test updateBlock > Update inline content to table content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -4634,7 +4634,7 @@ exports[`Test updateBlock > Update no content to empty inline content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -5217,7 +5217,7 @@ exports[`Test updateBlock > Update no content to empty table content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -5808,7 +5808,7 @@ exports[`Test updateBlock > Update no content to inline content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -6735,7 +6735,7 @@ exports[`Test updateBlock > Update no content to table content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -7303,7 +7303,7 @@ exports[`Test updateBlock > Update partial (offset start + end) 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -7864,7 +7864,7 @@ exports[`Test updateBlock > Update partial (offset start) 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -8425,7 +8425,7 @@ exports[`Test updateBlock > Update partial (props + offset end) 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -8993,7 +8993,7 @@ exports[`Test updateBlock > Update partial (table cell) 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -9561,7 +9561,7 @@ exports[`Test updateBlock > Update partial (table row) 1`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -10201,7 +10201,7 @@ exports[`Test updateBlock > Update single prop 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -10609,7 +10609,7 @@ exports[`Test updateBlock > Update table content to empty inline content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -11029,7 +11029,7 @@ exports[`Test updateBlock > Update table content to inline content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -11443,7 +11443,7 @@ exports[`Test updateBlock > Update table content to no content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -12079,7 +12079,7 @@ exports[`Test updateBlock > Update type 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -12691,7 +12691,7 @@ exports[`Test updateBlock > Update with plain content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -13331,7 +13331,7 @@ exports[`Test updateBlock > Update with styled content 2`] = ` { "children": [], "content": [], - "id": "trailing-paragraph", + "id": "paragraph-9", "props": { "backgroundColor": "default", "textAlignment": "left", diff --git a/packages/core/src/api/blockManipulation/setupTestEnv.ts b/packages/core/src/api/blockManipulation/setupTestEnv.ts index 37b4807063..bd1caf6300 100644 --- a/packages/core/src/api/blockManipulation/setupTestEnv.ts +++ b/packages/core/src/api/blockManipulation/setupTestEnv.ts @@ -185,7 +185,7 @@ const testDocument: PartialBlock[] = [ ], }, { - id: "trailing-paragraph", + id: "paragraph-9", type: "paragraph", }, ]; diff --git a/packages/core/src/editor/Block.css b/packages/core/src/editor/Block.css index 990a856504..fca4e504ad 100644 --- a/packages/core/src/editor/Block.css +++ b/packages/core/src/editor/Block.css @@ -49,6 +49,11 @@ BASIC STYLES white-space: pre-wrap; } +.bn-trailing-block { + cursor: text; + height: 30px; +} + /* NESTED BLOCKS */ diff --git a/packages/core/src/editor/BlockNoteEditor.test.ts b/packages/core/src/editor/BlockNoteEditor.test.ts index 120847bffa..6a4f5f023e 100644 --- a/packages/core/src/editor/BlockNoteEditor.test.ts +++ b/packages/core/src/editor/BlockNoteEditor.test.ts @@ -187,7 +187,7 @@ it("sets an initial block id when using Y.js", async () => { expect(transactionCount).toBe(2); // Only after a real modification is made, will the fragment be updated expect(fragment.toJSON()).toMatchInlineSnapshot( - `"Hello"`, + `"Hello"`, ); }); @@ -213,8 +213,14 @@ it("onBeforeChange", () => { { "block": { "children": [], - "content": [], - "id": "3", + "content": [ + { + "styles": {}, + "text": "Hello", + "type": "text", + }, + ], + "id": "1", "props": { "backgroundColor": "default", "textAlignment": "left", @@ -232,7 +238,7 @@ it("onBeforeChange", () => { "block": { "children": [], "content": [], - "id": "2", + "id": "0", "props": { "backgroundColor": "default", "textAlignment": "left", diff --git a/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json b/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json index 786e727b7e..6af753a17a 100644 --- a/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json +++ b/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor-forked.json @@ -8,18 +8,7 @@ "type": "text", }, ], - "id": "2", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, - { - "children": [], - "content": [], - "id": "3", + "id": "1", "props": { "backgroundColor": "default", "textAlignment": "left", diff --git a/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json b/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json index e7580c5b7b..f1195c7f24 100644 --- a/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json +++ b/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-editor.json @@ -16,15 +16,4 @@ }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "1", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] \ No newline at end of file diff --git a/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html b/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html index 8957bbb259..dcee61e04e 100644 --- a/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html +++ b/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap-forked.html @@ -1 +1 @@ -Hello World \ No newline at end of file +Hello World \ No newline at end of file diff --git a/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html b/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html index 063ddebeac..d804ca0a6f 100644 --- a/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html +++ b/packages/core/src/extensions/Collaboration/__snapshots__/fork-yjs-snap.html @@ -1 +1 @@ -Hello \ No newline at end of file +Hello \ No newline at end of file diff --git a/packages/core/src/extensions/TrailingNode/TrailingNode.ts b/packages/core/src/extensions/TrailingNode/TrailingNode.ts index 523c5fef4a..c70424a9de 100644 --- a/packages/core/src/extensions/TrailingNode/TrailingNode.ts +++ b/packages/core/src/extensions/TrailingNode/TrailingNode.ts @@ -1,76 +1,114 @@ -import { Plugin, PluginKey } from "prosemirror-state"; -import { createExtension } from "../../editor/BlockNoteExtension.js"; +import type { Node as PMNode } from "prosemirror-model"; +import { Plugin, PluginKey, type Transaction } from "prosemirror-state"; +import { Decoration, DecorationSet } from "prosemirror-view"; +import { + createExtension, + ExtensionOptions, +} from "../../editor/BlockNoteExtension.js"; -// based on https://github.com/ueberdosis/tiptap/blob/40a9404c94c7fef7900610c195536384781ae101/demos/src/Experiments/TrailingNode/Vue/trailing-node.ts +const PLUGIN_KEY = new PluginKey("trailingNode"); -/** - * Extension based on: - * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js - * - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts - */ -const plugin = new PluginKey("trailingNode"); +// Skip the widget when the document already ends with an empty paragraph +// block, since the user can just type into it. +function shouldShowTrailingWidget(doc: PMNode): boolean { + const rootGroup = doc.lastChild; + const lastBlock = rootGroup?.lastChild; + const lastContent = lastBlock?.firstChild; + return !( + lastBlock?.type.name === "blockContainer" && + lastContent?.type.name === "paragraph" && + lastContent.content.size === 0 + ); +} /** - * Add a trailing node to the document so the user can always click at the bottom of the document and start typing + * Renders a fake trailing block as a widget decoration after the last block of + * the document. Clicking it inserts a real trailing block and moves the + * selection into it. This way the trailing block is not part of the document + * content, so it doesn't appear when the editor is read-only or when the + * content is exported. */ -export const TrailingNodeExtension = createExtension(() => { - return { - key: "trailingNode", - prosemirrorPlugins: [ - new Plugin({ - key: plugin, - appendTransaction: (_, __, state) => { - const { doc, tr, schema } = state; - const shouldInsertNodeAtEnd = plugin.getState(state); - const endPosition = doc.content.size - 2; - const type = schema.nodes["blockContainer"]; - const contentType = schema.nodes["paragraph"]; - if (!shouldInsertNodeAtEnd) { - return; - } +export const TrailingNodeExtension = createExtension( + ({ editor }: ExtensionOptions) => { + function createTrailingWidget(pos: number): Decoration { + return Decoration.widget( + pos, + () => { + const el = document.createElement("div"); + el.className = "bn-trailing-block"; + el.contentEditable = "false"; + el.addEventListener("mousedown", (event) => { + // Stop ProseMirror from trying to place the selection somewhere + // based on this click. + event.preventDefault(); - return tr.insert( - endPosition, - type.create(undefined, contentType.create()), - ); + editor.transact((tr) => { + const [insertedBlock] = editor.insertBlocks( + [{ type: "paragraph" }], + editor.document[editor.document.length - 1], + "after", + ); + editor.setTextCursorPosition(insertedBlock, "start"); + tr.scrollIntoView(); + }); + + editor.prosemirrorView?.focus(); + }); + return el; }, - state: { - init: (_, _state) => { - // (maybe fix): use same logic as apply() here - // so it works when initializing - }, - apply: (tr, value) => { - if (!tr.docChanged) { - return value; - } - - let lastNode = tr.doc.lastChild; - - if (!lastNode || lastNode.type.name !== "blockGroup") { - throw new Error("Expected blockGroup"); - } + { side: 1 }, + ); + } - lastNode = lastNode.lastChild; + // Maps the existing DecorationSet through the transaction, then + // incrementally adds or removes the widget only if the show/hide state + // crossed over. The underlying Decoration (and its rendered DOM) stays + // reference-stable across transactions. + function nextDecorationSet( + tr: Transaction, + oldSet: DecorationSet, + ): DecorationSet { + const mapped = oldSet.map(tr.mapping, tr.doc); + const existing = mapped.find(); + const wasShowing = existing.length > 0; + const shouldShow = shouldShowTrailingWidget(tr.doc); - if (!lastNode || lastNode.type.name !== "blockContainer") { - return true; // not a blockContainer, but for example Columns. Insert trailing node - } + if (wasShowing === shouldShow) { + return mapped; + } + if (wasShowing) { + return mapped.remove(existing); + } + return mapped.add(tr.doc, [ + createTrailingWidget(tr.doc.content.size - 1), + ]); + } - const lastContentNode = lastNode.firstChild; - - if (!lastContentNode) { - throw new Error("Expected blockContent"); - } - - // If last node is not empty (size > 4) or it doesn't contain - // inline content, we need to add a trailing node. - return ( - lastNode.nodeSize > 4 || - lastContentNode.type.spec.content !== "inline*" - ); + return { + key: "trailingNode", + prosemirrorPlugins: [ + new Plugin({ + key: PLUGIN_KEY, + state: { + init: (_, state) => + nextDecorationSet(state.tr, DecorationSet.empty), + apply: (tr, oldSet) => { + if (!tr.docChanged) { + return oldSet; + } + return nextDecorationSet(tr, oldSet); + }, }, - }, - }), - ], - } as const; -}); + props: { + decorations: (state) => { + if (!editor.isEditable) { + return null; + } + return PLUGIN_KEY.getState(state); + }, + }, + }), + ], + } as const; + }, +); diff --git a/packages/xl-multi-column/src/test/commands/__snapshots__/backspace.test.ts.snap b/packages/xl-multi-column/src/test/commands/__snapshots__/backspace.test.ts.snap index 1dadb64533..2a667287e7 100644 --- a/packages/xl-multi-column/src/test/commands/__snapshots__/backspace.test.ts.snap +++ b/packages/xl-multi-column/src/test/commands/__snapshots__/backspace.test.ts.snap @@ -108,17 +108,6 @@ exports[`Backspace with multi-column > backspace at block start should move bloc "props": {}, "type": "columnList", }, - { - "children": [], - "content": [], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -230,17 +219,6 @@ exports[`Backspace with multi-column > mid-text backspace next to columnList sho }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -335,17 +313,6 @@ exports[`Backspace with multi-column > second backspace should merge into previo "props": {}, "type": "columnList", }, - { - "children": [], - "content": [], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -447,17 +414,6 @@ exports[`Delete with multi-column > delete at block end should move first column "props": {}, "type": "columnList", }, - { - "children": [], - "content": [], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -569,17 +525,6 @@ exports[`Delete with multi-column > mid-text delete next to columnList should no "props": {}, "type": "columnList", }, - { - "children": [], - "content": [], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -681,16 +626,5 @@ exports[`Delete with multi-column > second delete should merge first column bloc "props": {}, "type": "columnList", }, - { - "children": [], - "content": [], - "id": "4", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; diff --git a/packages/xl-multi-column/src/test/commands/__snapshots__/insertBlocks.test.ts.snap b/packages/xl-multi-column/src/test/commands/__snapshots__/insertBlocks.test.ts.snap index 99880995cb..476357f363 100644 --- a/packages/xl-multi-column/src/test/commands/__snapshots__/insertBlocks.test.ts.snap +++ b/packages/xl-multi-column/src/test/commands/__snapshots__/insertBlocks.test.ts.snap @@ -229,17 +229,6 @@ exports[`Test insertBlocks > Insert column list into paragraph 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -437,17 +426,6 @@ exports[`Test insertBlocks > Insert column with paragraph into column list 1`] = }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -635,17 +613,6 @@ exports[`Test insertBlocks > Insert paragraph into column 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -878,16 +845,5 @@ exports[`Test insertBlocks > Insert valid column list with two columns 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; diff --git a/packages/xl-multi-column/src/test/commands/__snapshots__/moveBlocks.test.ts.snap b/packages/xl-multi-column/src/test/commands/__snapshots__/moveBlocks.test.ts.snap index 2567bbbb61..d515c95274 100644 --- a/packages/xl-multi-column/src/test/commands/__snapshots__/moveBlocks.test.ts.snap +++ b/packages/xl-multi-column/src/test/commands/__snapshots__/moveBlocks.test.ts.snap @@ -167,17 +167,6 @@ exports[`Test moveBlocksDown > Move into column list 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -348,17 +337,6 @@ exports[`Test moveBlocksDown > Move into next column 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -529,17 +507,6 @@ exports[`Test moveBlocksDown > Move out of column list 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -710,17 +677,6 @@ exports[`Test moveBlocksUp > Move into column list 1`] = ` "props": {}, "type": "columnList", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -891,17 +847,6 @@ exports[`Test moveBlocksUp > Move into previous column 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -1072,16 +1017,5 @@ exports[`Test moveBlocksUp > Move out of column list 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; diff --git a/packages/xl-multi-column/src/test/commands/__snapshots__/removeBlocks.test.ts.snap b/packages/xl-multi-column/src/test/commands/__snapshots__/removeBlocks.test.ts.snap index e67cdf0be4..a6c9c3c2de 100644 --- a/packages/xl-multi-column/src/test/commands/__snapshots__/removeBlocks.test.ts.snap +++ b/packages/xl-multi-column/src/test/commands/__snapshots__/removeBlocks.test.ts.snap @@ -105,17 +105,6 @@ exports[`Test removeBlocks > Remove all blocks in column 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -207,17 +196,6 @@ exports[`Test removeBlocks > Remove all blocks in column and block after 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -292,17 +270,6 @@ exports[`Test removeBlocks > Remove all blocks in columns 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -360,17 +327,6 @@ exports[`Test removeBlocks > Remove all blocks in columns and block after 1`] = }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -479,17 +435,6 @@ exports[`Test removeBlocks > Remove all blocks in second column 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -564,17 +509,6 @@ exports[`Test removeBlocks > Remove all columns in columnList 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -632,17 +566,6 @@ exports[`Test removeBlocks > Remove all columns in columnList and block after 1` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -734,17 +657,6 @@ exports[`Test removeBlocks > Remove column and and block in column after 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -853,17 +765,6 @@ exports[`Test removeBlocks > Remove column in columnList 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -955,16 +856,5 @@ exports[`Test removeBlocks > Remove column in columnList and block after 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; diff --git a/packages/xl-multi-column/src/test/commands/__snapshots__/replaceBlocks.test.ts.snap b/packages/xl-multi-column/src/test/commands/__snapshots__/replaceBlocks.test.ts.snap index b19ccf1eec..d4dfea9c42 100644 --- a/packages/xl-multi-column/src/test/commands/__snapshots__/replaceBlocks.test.ts.snap +++ b/packages/xl-multi-column/src/test/commands/__snapshots__/replaceBlocks.test.ts.snap @@ -150,17 +150,6 @@ exports[`Test replaceBlocks > Replace all blocks in column with single block 1`] }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -252,17 +241,6 @@ exports[`Test replaceBlocks > Replace all blocks in columns with single block 1` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -478,16 +456,5 @@ exports[`Test replaceBlocks > Replace paragraph with column list above column li }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; diff --git a/packages/xl-multi-column/src/test/commands/__snapshots__/updateBlock.test.ts.snap b/packages/xl-multi-column/src/test/commands/__snapshots__/updateBlock.test.ts.snap index 77bb37310e..84408b8cfe 100644 --- a/packages/xl-multi-column/src/test/commands/__snapshots__/updateBlock.test.ts.snap +++ b/packages/xl-multi-column/src/test/commands/__snapshots__/updateBlock.test.ts.snap @@ -133,17 +133,6 @@ exports[`Test updateBlock > Update column list new children 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -297,17 +286,6 @@ exports[`Test updateBlock > Update column new children 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -743,17 +721,6 @@ exports[`Test updateBlock > Update nested paragraph to column list 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; @@ -1153,16 +1120,5 @@ exports[`Test updateBlock > Update paragraph to column list 1`] = ` }, "type": "paragraph", }, - { - "children": [], - "content": [], - "id": "trailing-paragraph", - "props": { - "backgroundColor": "default", - "textAlignment": "left", - "textColor": "default", - }, - "type": "paragraph", - }, ] `; diff --git a/packages/xl-multi-column/src/test/setupTestEnv.ts b/packages/xl-multi-column/src/test/setupTestEnv.ts index 10615c904a..6a6347da12 100644 --- a/packages/xl-multi-column/src/test/setupTestEnv.ts +++ b/packages/xl-multi-column/src/test/setupTestEnv.ts @@ -106,8 +106,4 @@ const testDocument: PartialBlock< type: "paragraph", content: "Paragraph 2", }, - { - id: "trailing-paragraph", - type: "paragraph", - }, ]; diff --git a/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-chromium-linux.png b/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-chromium-linux.png index da32b490c0..70faff1e79 100644 Binary files a/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-chromium-linux.png and b/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-chromium-linux.png differ diff --git a/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-firefox-linux.png b/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-firefox-linux.png index 5a222048ce..98f2191e10 100644 Binary files a/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-firefox-linux.png and b/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-firefox-linux.png differ diff --git a/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-webkit-linux.png b/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-webkit-linux.png index ffa5516b61..91b64b8415 100644 Binary files a/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-webkit-linux.png and b/tests/src/end-to-end/ariakit/ariakit.test.ts-snapshots/ariakit-image-toolbar-webkit-linux.png differ diff --git a/tests/src/end-to-end/colors/colors.test.ts b/tests/src/end-to-end/colors/colors.test.ts index 6c8f00f2b7..760ab63bc7 100644 --- a/tests/src/end-to-end/colors/colors.test.ts +++ b/tests/src/end-to-end/colors/colors.test.ts @@ -23,13 +23,16 @@ test.describe("Check Background & Text Color Functionality", () => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertHeading(page, 2); + await page.keyboard.press("Enter"); await insertHeading(page, 3); + await page.waitForTimeout(500); + await page.keyboard.press("ArrowUp"); - await page.keyboard.press("ArrowUp"); - await page.keyboard.press("Control+ArrowLeft"); - await page.keyboard.press("Control+Shift+ArrowRight"); + await page.keyboard.press("ControlOrMeta+ArrowLeft"); + await page.keyboard.press("ControlOrMeta+Shift+ArrowRight"); await page.locator(COLORS_BUTTON_SELECTOR).click(); await page.locator(TEXT_COLOR_SELECTOR("red")).click(); @@ -45,12 +48,13 @@ test.describe("Check Background & Text Color Functionality", () => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertHeading(page, 2); + await page.keyboard.press("Enter"); await insertHeading(page, 3); await page.keyboard.press("ArrowUp"); - await page.keyboard.press("ArrowUp"); - await page.keyboard.press("Control+ArrowLeft"); + await page.keyboard.press("ControlOrMeta+ArrowLeft"); await page.keyboard.press("Control+Shift+ArrowRight"); await page.locator(COLORS_BUTTON_SELECTOR).click(); @@ -67,10 +71,14 @@ test.describe("Check Background & Text Color Functionality", () => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertHeading(page, 2); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertParagraph(page); + await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 3); + await page.keyboard.press("Shift+Tab"); await page.hover(H_TWO_BLOCK_SELECTOR); await page.click(DRAG_HANDLE_SELECTOR); @@ -91,10 +99,14 @@ test.describe("Check Background & Text Color Functionality", () => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertHeading(page, 2); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertParagraph(page); + await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 3); + await page.keyboard.press("Shift+Tab"); await page.hover(H_TWO_BLOCK_SELECTOR); await page.click(DRAG_HANDLE_SELECTOR); diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts b/tests/src/end-to-end/copypaste/copypaste.test.ts index b0a563c6ef..f93d3cef6a 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts @@ -1,10 +1,6 @@ /* eslint-disable jest/valid-title */ import { test } from "../../setup/setupScript.js"; -import { - BASE_URL, - NON_EDITABLE_BLOCK_URL, - PARAGRAPH_SELECTOR, -} from "../../utils/const.js"; +import { BASE_URL, NON_EDITABLE_BLOCK_URL } from "../../utils/const.js"; import { copyPaste, copyPasteAll, @@ -32,7 +28,9 @@ test.describe("Check Copy/Paste Functionality", () => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await insertParagraph(page); + await page.keyboard.press("Enter"); await insertParagraph(page); await copyPasteAll(page); @@ -47,7 +45,9 @@ test.describe("Check Copy/Paste Functionality", () => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertHeading(page, 2); + await page.keyboard.press("Enter"); await insertHeading(page, 3); await copyPasteAll(page); @@ -99,9 +99,10 @@ test.describe("Check Copy/Paste Functionality", () => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); await copyPasteAll(page); @@ -212,17 +213,16 @@ test.describe("Check Copy/Paste From Non-Editable Block", () => { const box = (await p.boundingBox())!; await page.mouse.move(box.x + 2, box.y + box.height / 2); await page.mouse.down(); - await page.mouse.move( - box.x + box.width * 0.25, - box.y + box.height / 2, - { steps: 5 }, - ); + await page.mouse.move(box.x + box.width * 0.25, box.y + box.height / 2, { + steps: 5, + }); await page.mouse.up(); await page.keyboard.press("ControlOrMeta+C"); - // Click the last (empty) paragraph block to focus the editor. - await page.locator(PARAGRAPH_SELECTOR).last().click(); + // Click the trailing block to create a new empty paragraph and focus + // the editor there. + await page.locator(".bn-trailing-block").click(); await page.keyboard.press("ControlOrMeta+V"); diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/headings-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/headings-json-chromium-linux.json index 4aaa985271..0dae6a1601 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/headings-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/headings-json-chromium-linux.json @@ -79,23 +79,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "5" + "id": "4" }, "content": [ { @@ -119,7 +103,7 @@ { "type": "blockContainer", "attrs": { - "id": "6" + "id": "5" }, "content": [ { @@ -143,7 +127,7 @@ { "type": "blockContainer", "attrs": { - "id": "7" + "id": "6" }, "content": [ { @@ -163,22 +147,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "8" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json index a81659df90..ee1c39c2d9 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json @@ -29,7 +29,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -49,23 +49,7 @@ { "type": "blockContainer", "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -81,22 +65,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "5" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedOrderedLists-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedOrderedLists-json-chromium-linux.json index 362facf19d..aa6dd2933d 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedOrderedLists-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedOrderedLists-json-chromium-linux.json @@ -30,7 +30,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -53,7 +53,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -83,23 +83,7 @@ { "type": "blockContainer", "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "5" + "id": "4" }, "content": [ { @@ -122,7 +106,7 @@ { "type": "blockContainer", "attrs": { - "id": "6" + "id": "5" }, "content": [ { @@ -145,7 +129,7 @@ { "type": "blockContainer", "attrs": { - "id": "7" + "id": "6" }, "content": [ { @@ -171,22 +155,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "8" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedParagraphs-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedParagraphs-json-chromium-linux.json index 8422e5526d..446e239269 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedParagraphs-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedParagraphs-json-chromium-linux.json @@ -85,22 +85,6 @@ "attrs": { "id": "3" }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, "content": [ { "type": "paragraph", @@ -122,7 +106,7 @@ { "type": "blockContainer", "attrs": { - "id": "5" + "id": "4" }, "content": [ { @@ -145,7 +129,7 @@ { "type": "blockContainer", "attrs": { - "id": "6" + "id": "5" }, "content": [ { @@ -171,22 +155,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "7" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedUnorderedLists-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedUnorderedLists-json-chromium-linux.json index 99e4587217..7b9ae7991e 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedUnorderedLists-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nestedUnorderedLists-json-chromium-linux.json @@ -30,7 +30,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -53,7 +53,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -83,23 +83,7 @@ { "type": "blockContainer", "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "5" + "id": "4" }, "content": [ { @@ -122,7 +106,7 @@ { "type": "blockContainer", "attrs": { - "id": "6" + "id": "5" }, "content": [ { @@ -145,7 +129,7 @@ { "type": "blockContainer", "attrs": { - "id": "7" + "id": "6" }, "content": [ { @@ -171,22 +155,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "8" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nonEditableBlock-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nonEditableBlock-json-chromium-linux.json index 154f585790..3a15b219b5 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nonEditableBlock-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/nonEditableBlock-json-chromium-linux.json @@ -72,22 +72,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/orderedLists-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/orderedLists-json-chromium-linux.json index 1b86bcac7e..184434caa7 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/orderedLists-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/orderedLists-json-chromium-linux.json @@ -29,7 +29,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -51,7 +51,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -73,23 +73,7 @@ { "type": "blockContainer", "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "5" + "id": "4" }, "content": [ { @@ -111,7 +95,7 @@ { "type": "blockContainer", "attrs": { - "id": "6" + "id": "5" }, "content": [ { @@ -133,7 +117,7 @@ { "type": "blockContainer", "attrs": { - "id": "7" + "id": "6" }, "content": [ { @@ -151,22 +135,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "8" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/paragraphs-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/paragraphs-json-chromium-linux.json index 506dcf22e6..c0d2f5f6ac 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/paragraphs-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/paragraphs-json-chromium-linux.json @@ -75,22 +75,6 @@ "attrs": { "id": "3" }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, "content": [ { "type": "paragraph", @@ -111,7 +95,7 @@ { "type": "blockContainer", "attrs": { - "id": "5" + "id": "4" }, "content": [ { @@ -133,7 +117,7 @@ { "type": "blockContainer", "attrs": { - "id": "6" + "id": "5" }, "content": [ { @@ -151,22 +135,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "7" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/unorderedLists-json-chromium-linux.json b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/unorderedLists-json-chromium-linux.json index 58637abb87..aadf186ad5 100644 --- a/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/unorderedLists-json-chromium-linux.json +++ b/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/unorderedLists-json-chromium-linux.json @@ -29,7 +29,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -51,7 +51,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -73,23 +73,7 @@ { "type": "blockContainer", "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "5" + "id": "4" }, "content": [ { @@ -111,7 +95,7 @@ { "type": "blockContainer", "attrs": { - "id": "6" + "id": "5" }, "content": [ { @@ -133,7 +117,7 @@ { "type": "blockContainer", "attrs": { - "id": "7" + "id": "6" }, "content": [ { @@ -151,22 +135,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "8" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-chromium-linux.json b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-chromium-linux.json index 259b54884c..5ba0610718 100644 --- a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-chromium-linux.json +++ b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-chromium-linux.json @@ -61,22 +61,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-firefox-linux.json b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-firefox-linux.json index 259b54884c..5ba0610718 100644 --- a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-firefox-linux.json +++ b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-firefox-linux.json @@ -61,22 +61,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-webkit-linux.json b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-webkit-linux.json index 259b54884c..5ba0610718 100644 --- a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-webkit-linux.json +++ b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/reactInteractivity-webkit-linux.json @@ -61,22 +61,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-chromium-linux.json b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-chromium-linux.json index 6a88368dab..26fa960ca9 100644 --- a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-chromium-linux.json +++ b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-chromium-linux.json @@ -61,22 +61,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-firefox-linux.json b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-firefox-linux.json index 6a88368dab..26fa960ca9 100644 --- a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-firefox-linux.json +++ b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-firefox-linux.json @@ -61,22 +61,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-webkit-linux.json b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-webkit-linux.json index 6a88368dab..26fa960ca9 100644 --- a/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-webkit-linux.json +++ b/tests/src/end-to-end/customblocks/customblocks.test.ts-snapshots/vanillaInteractivity-webkit-linux.json @@ -61,22 +61,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts b/tests/src/end-to-end/dragdrop/dragdrop.test.ts index 5303af7118..eb8c17dd02 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts @@ -30,16 +30,15 @@ test.describe("Check Block Dragging Functionality", () => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertHeading(page, 2); + await page.keyboard.press("Enter"); await insertHeading(page, 3); const dragTarget = await page.locator(H_ONE_BLOCK_SELECTOR); const dropTarget = await page.locator(H_TWO_BLOCK_SELECTOR); - await page.pause(); await dragAndDropBlock(page, dragTarget, dropTarget, false); - await page.pause(); - await compareDocToSnapshot(page, "dragdropsingle"); }); @@ -55,16 +54,19 @@ test.describe("Check Block Dragging Functionality", () => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertParagraph(page); - + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertHeading(page, 2); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertParagraph(page); - - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertHeading(page, 3); + await page.keyboard.press("Enter"); + await page.keyboard.press("Shift+Tab"); + await page.keyboard.press("Shift+Tab"); // Dragging first heading into next nested element. let dragTarget = await page.locator(H_ONE_BLOCK_SELECTOR); @@ -76,7 +78,6 @@ test.describe("Check Block Dragging Functionality", () => { dropTarget = await page.locator(H_THREE_BLOCK_SELECTOR); await dragAndDropBlock(page, dragTarget, dropTarget, true); - // Dragging third heading into outside nesting. dragTarget = await page.locator(H_THREE_BLOCK_SELECTOR); dropTarget = await page.locator(PARAGRAPH_SELECTOR).last(); await dragAndDropBlock(page, dragTarget, dropTarget, true); @@ -92,12 +93,12 @@ test.describe("Check Block Dragging Functionality", () => { await page.goto(BASE_URL, { waitUntil: "networkidle" }); await focusOnEditor(page); await executeSlashCommand(page, "image"); - + await page.keyboard.press("Escape"); + await page.locator(".bn-trailing-block").click(); await insertHeading(page, 1); const dragTarget = await page.locator(IMAGE_SELECTOR); const dropTarget = await page.locator(H_ONE_BLOCK_SELECTOR); - await page.pause(); await dragAndDropBlock(page, dragTarget, dropTarget, false); await compareDocToSnapshot(page, "dragImage"); @@ -114,6 +115,8 @@ test.describe("Check Block Dragging Functionality", () => { await page.goto(BASE_URL, { waitUntil: "networkidle" }); await focusOnEditor(page); await executeSlashCommand(page, "image"); + await page.keyboard.press("Escape"); + await page.locator(".bn-trailing-block").click(); await insertHeading(page, 1); const dragTarget = page.locator(IMAGE_SELECTOR); diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragImage-chromium-linux.json b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragImage-chromium-linux.json index 268c1d446b..221e2436bb 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragImage-chromium-linux.json +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragImage-chromium-linux.json @@ -46,22 +46,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragImage-webkit-linux.json b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragImage-webkit-linux.json index 268c1d446b..221e2436bb 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragImage-webkit-linux.json +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragImage-webkit-linux.json @@ -46,22 +46,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragPdf-chromium-linux.json b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragPdf-chromium-linux.json index 438581c950..537116ea42 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragPdf-chromium-linux.json +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragPdf-chromium-linux.json @@ -64,22 +64,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragPdf-webkit-linux.json b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragPdf-webkit-linux.json index 438581c950..537116ea42 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragPdf-webkit-linux.json +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragPdf-webkit-linux.json @@ -64,22 +64,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-chromium-linux.json b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-chromium-linux.json index c9f43dc591..8a14f1ecea 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-chromium-linux.json +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-chromium-linux.json @@ -75,22 +75,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-webkit-linux.json b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-webkit-linux.json index c9f43dc591..8a14f1ecea 100644 --- a/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-webkit-linux.json +++ b/tests/src/end-to-end/dragdrop/dragdrop.test.ts-snapshots/dragdropsingle-webkit-linux.json @@ -75,22 +75,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts b/tests/src/end-to-end/draghandle/draghandle.test.ts index c2e9c3c211..2da087f4fc 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts @@ -48,7 +48,9 @@ test.describe("Check Draghandle functionality", () => { test("Draghandle should display next to correct block", async () => { await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertHeading(page, 2); + await page.keyboard.press("Enter"); await insertHeading(page, 3); const h1y = await getDragHandleYCoord(page, H_ONE_BLOCK_SELECTOR); @@ -61,9 +63,10 @@ test.describe("Check Draghandle functionality", () => { test("Draghandle should display next to correct nested block", async () => { await insertHeading(page, 1); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertHeading(page, 2); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertHeading(page, 3); @@ -123,6 +126,7 @@ test.describe("Check Draghandle functionality", () => { await page.keyboard.type("Heading 1"); // Wait for animation to finish await page.waitForTimeout(350); + await page.keyboard.press("Enter"); await hoverAndAddBlockFromDragHandle(page, PARAGRAPH_SELECTOR, "h1"); await compareDocToSnapshot(page, "addnonselectedemptyblock"); diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-chromium-linux.json index 65a3f2a913..5a5f969550 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-chromium-linux.json @@ -45,22 +45,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json index 65a3f2a913..5a5f969550 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-firefox-linux.json @@ -45,22 +45,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-webkit-linux.json index 65a3f2a913..5a5f969550 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/addnonselectedemptyblock-webkit-linux.json @@ -45,22 +45,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-chromium-linux.json index 3a0db9ce22..66af467a19 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-chromium-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -51,22 +51,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-firefox-linux.json index 3a0db9ce22..66af467a19 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-firefox-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -51,22 +51,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-webkit-linux.json index 3a0db9ce22..66af467a19 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/dragHandleDocStructure-webkit-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -51,22 +51,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json index 41ee7ea3eb..dc1c289d1d 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-chromium-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -51,22 +51,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json index 41ee7ea3eb..dc1c289d1d 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-firefox-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -51,22 +51,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json index 41ee7ea3eb..dc1c289d1d 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandleadd-webkit-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -51,22 +51,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-chromium-linux.json index 4a3ca359e4..aa89413a83 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-chromium-linux.json @@ -7,7 +7,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -55,7 +55,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -73,22 +73,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-firefox-linux.json index 4a3ca359e4..aa89413a83 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-firefox-linux.json @@ -7,7 +7,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -55,7 +55,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -73,22 +73,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-webkit-linux.json index 4a3ca359e4..aa89413a83 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletehoveroutsideselection-webkit-linux.json @@ -7,7 +7,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -55,7 +55,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -73,22 +73,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-chromium-linux.json index f95bb590b9..454137b269 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-chromium-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -51,22 +51,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-firefox-linux.json index f95bb590b9..454137b269 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-firefox-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -51,22 +51,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-webkit-linux.json index f95bb590b9..454137b269 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandledeletemultiselection-webkit-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -51,22 +51,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-chromium-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-chromium-linux.json index ff0c8fd1a1..8b730cd435 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-chromium-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-chromium-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-firefox-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-firefox-linux.json index ff0c8fd1a1..8b730cd435 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-firefox-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-firefox-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-webkit-linux.json b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-webkit-linux.json index ff0c8fd1a1..8b730cd435 100644 --- a/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-webkit-linux.json +++ b/tests/src/end-to-end/draghandle/draghandle.test.ts-snapshots/draghandlenesteddelete-webkit-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/emojipicker/emojipicker.test.ts b/tests/src/end-to-end/emojipicker/emojipicker.test.ts index 84cfeda1c2..b729404e83 100644 --- a/tests/src/end-to-end/emojipicker/emojipicker.test.ts +++ b/tests/src/end-to-end/emojipicker/emojipicker.test.ts @@ -29,7 +29,6 @@ test.describe("Check Emoji Picker Functionality", () => { test("Should be able to insert emoji", async ({ page }) => { await focusOnEditor(page); await executeEmojiCommand(page, "sm"); - await page.pause(); await waitForTextInEditor(page, "🛩️ "); }); test("Should be able to open emoji picker from slash menu", async ({ diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-chromium-linux.png b/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-chromium-linux.png index 85d4112cdb..e53ec627da 100644 Binary files a/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-chromium-linux.png and b/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-chromium-linux.png differ diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-firefox-linux.png b/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-firefox-linux.png index bb620507df..f9d71df5b4 100644 Binary files a/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-firefox-linux.png and b/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-firefox-linux.png differ diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-webkit-linux.png b/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-webkit-linux.png index daefd48c65..ae6ca2b82a 100644 Binary files a/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-webkit-linux.png and b/tests/src/end-to-end/images/images.test.ts-snapshots/create-image-webkit-linux.png differ diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.json index b97de427ca..5e40c74d39 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.json @@ -22,22 +22,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-firefox-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-firefox-linux.json index b97de427ca..5e40c74d39 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-firefox-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-firefox-linux.json @@ -22,22 +22,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-webkit-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-webkit-linux.json index b97de427ca..5e40c74d39 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-webkit-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/createImage-webkit-linux.json @@ -22,22 +22,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.json index 435926a46f..a37d07751a 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.json @@ -22,22 +22,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-firefox-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-firefox-linux.json index 435926a46f..a37d07751a 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-firefox-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-firefox-linux.json @@ -22,22 +22,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-webkit-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-webkit-linux.json index 435926a46f..a37d07751a 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-webkit-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/embedImage-webkit-linux.json @@ -22,22 +22,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/resize-image-webkit-linux.png b/tests/src/end-to-end/images/images.test.ts-snapshots/resize-image-webkit-linux.png index 9a4265c637..10a5040fba 100644 Binary files a/tests/src/end-to-end/images/images.test.ts-snapshots/resize-image-webkit-linux.png and b/tests/src/end-to-end/images/images.test.ts-snapshots/resize-image-webkit-linux.png differ diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json index c91d4d93bc..6c4b8deddf 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-chromium-linux.json @@ -23,22 +23,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json index c91d4d93bc..6c4b8deddf 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-firefox-linux.json @@ -23,22 +23,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json index c91d4d93bc..6c4b8deddf 100644 --- a/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json +++ b/tests/src/end-to-end/images/images.test.ts-snapshots/resizeImage-webkit-linux.json @@ -23,22 +23,6 @@ } } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts b/tests/src/end-to-end/indentation/indentation.test.ts index 0850d1f6c7..d509d6827c 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts +++ b/tests/src/end-to-end/indentation/indentation.test.ts @@ -20,11 +20,12 @@ test.describe("Check Block Indentation Functionality", () => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertHeading(page, 1); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 2); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 3); const element = await page.locator(H_TWO_BLOCK_SELECTOR); @@ -49,11 +50,12 @@ test.describe("Check Block Indentation Functionality", () => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertHeading(page, 1); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 2); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 3); const element = await page.locator(H_TWO_BLOCK_SELECTOR); @@ -78,11 +80,12 @@ test.describe("Check Block Indentation Functionality", () => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertHeading(page, 1); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 2); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 3); const firstElement = await page.locator(H_TWO_BLOCK_SELECTOR); @@ -120,11 +123,12 @@ test.describe("Check Block Indentation Functionality", () => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertHeading(page, 1); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 2); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 3); const firstElement = await page.locator(H_TWO_BLOCK_SELECTOR); diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-chromium-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-chromium-linux.json index 5e1d3780e0..fb6a7d8419 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-chromium-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-chromium-linux.json @@ -102,22 +102,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-firefox-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-firefox-linux.json index 5e1d3780e0..fb6a7d8419 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-firefox-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-firefox-linux.json @@ -102,22 +102,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-webkit-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-webkit-linux.json index 5e1d3780e0..fb6a7d8419 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-webkit-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentMultipleBlocks-webkit-linux.json @@ -102,22 +102,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-chromium-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-chromium-linux.json index f598b9fff0..3821bc9d8f 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-chromium-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-chromium-linux.json @@ -107,22 +107,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-firefox-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-firefox-linux.json index f598b9fff0..3821bc9d8f 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-firefox-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-firefox-linux.json @@ -107,22 +107,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-webkit-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-webkit-linux.json index f598b9fff0..3821bc9d8f 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-webkit-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/decreaseIndentSingleBlock-webkit-linux.json @@ -107,22 +107,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-chromium-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-chromium-linux.json index 5553e85dce..3d73b77ab7 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-chromium-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-chromium-linux.json @@ -107,22 +107,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-firefox-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-firefox-linux.json index 5553e85dce..3d73b77ab7 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-firefox-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-firefox-linux.json @@ -107,22 +107,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-webkit-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-webkit-linux.json index 5553e85dce..3d73b77ab7 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-webkit-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentMultipleBlocks-webkit-linux.json @@ -107,22 +107,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-chromium-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-chromium-linux.json index ea7e0da01b..b6395b3112 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-chromium-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-chromium-linux.json @@ -107,22 +107,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-firefox-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-firefox-linux.json index ea7e0da01b..b6395b3112 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-firefox-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-firefox-linux.json @@ -107,22 +107,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-webkit-linux.json b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-webkit-linux.json index ea7e0da01b..b6395b3112 100644 --- a/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-webkit-linux.json +++ b/tests/src/end-to-end/indentation/indentation.test.ts-snapshots/increaseIndentSingleBlock-webkit-linux.json @@ -107,22 +107,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts index a3b7b0df6f..3213e2fd65 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts @@ -18,11 +18,11 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Enter when selection is not empty", async ({ page }) => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertHeading(page, 2); await page.waitForTimeout(500); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("ControlOrMeta+ArrowLeft"); await page.keyboard.press("ArrowRight"); @@ -53,21 +53,20 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { await page.keyboard.press("ArrowRight"); await page.keyboard.press("Enter"); - await page.pause(); await compareDocToSnapshot(page, "enterPreservesMarks.json"); }); test("Check Enter preserves nested blocks", async ({ page }) => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertHeading(page, 2); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 3); await page.waitForTimeout(500); await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("Control+ArrowLeft"); await page.keyboard.press("ArrowRight"); await page.keyboard.press("Enter"); @@ -80,16 +79,15 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { await focusOnEditor(page); await page.keyboard.press("#"); await page.keyboard.press(" "); - await page.keyboard.press("ArrowDown", { delay: 10 }); + await page.keyboard.press("Enter", { delay: 10 }); await page.keyboard.press("Tab"); await insertHeading(page, 2); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertHeading(page, 3); await page.waitForTimeout(500); await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("Enter"); await compareDocToSnapshot(page, "enterPreservesNestedBlocksEmpty.json"); @@ -98,7 +96,6 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { await focusOnEditor(page); await insertHeading(page, 1); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("Control+ArrowLeft"); await page.keyboard.press("Backspace"); @@ -107,9 +104,9 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Backspace preserves marks", async ({ page }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await insertParagraph(page); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("Control+ArrowLeft"); for (let i = 0; i < 2; i++) { @@ -133,14 +130,16 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Backspace preserves nested blocks", async ({ page }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); - for (let i = 0; i < 3; i++) { + for (let i = 0; i < 2; i++) { await page.keyboard.press("ArrowUp"); } @@ -155,13 +154,14 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { await focusOnEditor(page); await insertParagraph(page); await page.keyboard.press("Enter", { delay: 10 }); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); - for (let i = 0; i < 3; i++) { + for (let i = 0; i < 2; i++) { await page.keyboard.press("ArrowUp"); } @@ -176,7 +176,6 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { await focusOnEditor(page); await insertParagraph(page); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("Delete"); await compareDocToSnapshot(page, "deleteEndOfBlock.json"); @@ -185,7 +184,6 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { await focusOnEditor(page); await insertParagraph(page); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("Shift+ArrowLeft"); await page.keyboard.press("Shift+ArrowLeft"); await page.keyboard.press("Delete"); @@ -195,9 +193,9 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Delete before inline content block", async ({ page }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await insertParagraph(page); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("Delete"); @@ -206,10 +204,10 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Delete before image block", async ({ page }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await executeSlashCommand(page, "image"); await page.keyboard.press("Escape"); // Close file panel - await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("Delete"); @@ -218,6 +216,7 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Delete before table", async ({ page }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await executeSlashCommand(page, "table"); await page.keyboard.press("ArrowUp"); @@ -230,7 +229,6 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { await executeSlashCommand(page, "image"); await page.keyboard.press("Escape"); // Close file panel - await page.keyboard.press("ArrowUp"); await page.keyboard.press("Delete"); await compareDocToSnapshot(page, "deleteSelectedImage.json"); @@ -240,10 +238,10 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("Delete"); @@ -252,6 +250,7 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Delete end of block with image child", async ({ page }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await executeSlashCommand(page, "image"); await page.keyboard.press("Escape"); // Close file panel @@ -264,6 +263,7 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Delete end of block with table child", async ({ page }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await executeSlashCommand(page, "table"); @@ -275,12 +275,12 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Delete end of block with multiple children", async ({ page }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await insertParagraph(page); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("Delete"); @@ -290,13 +290,13 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Delete end of block with nested children", async ({ page }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); - await page.keyboard.press("Tab"); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("Delete"); @@ -306,13 +306,14 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { test("Check Delete before shallower block", async ({ page }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); + await page.keyboard.press("Enter"); + await page.keyboard.press("Shift+Tab"); await insertParagraph(page); await page.keyboard.press("ArrowUp"); - await page.keyboard.press("ArrowUp"); - await page.keyboard.press("ControlOrMeta+ArrowRight"); await page.keyboard.press("Delete"); await compareDocToSnapshot(page, "deleteShallowerBlock.json"); @@ -322,15 +323,20 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); + await page.keyboard.press("Enter"); + await page.keyboard.press("Shift+Tab"); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await insertParagraph(page); await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); - await page.keyboard.press("ArrowUp"); + await page.keyboard.press("ControlOrMeta+ArrowLeft"); + await page.keyboard.press("ControlOrMeta+ArrowRight"); await page.keyboard.press("Delete"); await compareDocToSnapshot(page, "deleteShallowerBlockWithChildren.json"); @@ -382,6 +388,7 @@ test.describe("Check Keyboard Handlers' Behaviour", () => { }) => { await focusOnEditor(page); await insertParagraph(page); + await page.keyboard.press("Enter"); await page.keyboard.press("ControlOrMeta+Shift+9"); await page.keyboard.type("Checklist item"); diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-chromium-linux.json index 31ce8a938d..3219dd5c11 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-chromium-linux.json @@ -48,22 +48,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-firefox-linux.json index 31ce8a938d..3219dd5c11 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-firefox-linux.json @@ -48,22 +48,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-webkit-linux.json index 31ce8a938d..3219dd5c11 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/arrowUpChecklistItem-json-webkit-linux.json @@ -48,22 +48,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-chromium-linux.json index b126471723..cb52f526a2 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-chromium-linux.json @@ -38,22 +38,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-firefox-linux.json index b126471723..cb52f526a2 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-firefox-linux.json @@ -38,22 +38,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json index b126471723..cb52f526a2 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesMarks-json-webkit-linux.json @@ -38,22 +38,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-chromium-linux.json index f6496403ef..3f10691703 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-chromium-linux.json @@ -74,22 +74,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-firefox-linux.json index f6496403ef..3f10691703 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-firefox-linux.json @@ -74,22 +74,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-webkit-linux.json index f6496403ef..3f10691703 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocks-json-webkit-linux.json @@ -74,22 +74,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-chromium-linux.json index b4213527b1..f4b7dba967 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-chromium-linux.json @@ -74,22 +74,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-firefox-linux.json index b4213527b1..f4b7dba967 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-firefox-linux.json @@ -74,22 +74,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-webkit-linux.json index b4213527b1..f4b7dba967 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspacePreservesNestedBlocksEmpty-json-webkit-linux.json @@ -74,22 +74,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-chromium-linux.json index a394365e86..0ab31249ca 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-firefox-linux.json index a394365e86..0ab31249ca 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json index a394365e86..0ab31249ca 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-chromium-linux.json index 378282ee43..b1c5b45c75 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-firefox-linux.json index 378282ee43..b1c5b45c75 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-webkit-linux.json index 378282ee43..b1c5b45c75 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemInputRulePreservesContent-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-chromium-linux.json index 916b354901..cffbd5ba01 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-firefox-linux.json index 916b354901..cffbd5ba01 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-webkit-linux.json index 916b354901..cffbd5ba01 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/bulletListItemShortcut-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-chromium-linux.json index 60972d5ec1..36510e4b41 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-chromium-linux.json @@ -26,22 +26,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-firefox-linux.json index 60972d5ec1..36510e4b41 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-firefox-linux.json @@ -26,22 +26,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-webkit-linux.json index 60972d5ec1..36510e4b41 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRuleCheckedPreservesContent-json-webkit-linux.json @@ -26,22 +26,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-chromium-linux.json index f23b1a41a7..baa8395e00 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-chromium-linux.json @@ -26,22 +26,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-firefox-linux.json index f23b1a41a7..baa8395e00 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-firefox-linux.json @@ -26,22 +26,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-webkit-linux.json index f23b1a41a7..baa8395e00 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkListItemInputRulePreservesContent-json-webkit-linux.json @@ -26,22 +26,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-chromium-linux.json index 7ffeee22cf..ab700e2d8a 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-chromium-linux.json @@ -26,22 +26,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-firefox-linux.json index 7ffeee22cf..ab700e2d8a 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-firefox-linux.json @@ -26,22 +26,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-webkit-linux.json index 7ffeee22cf..ab700e2d8a 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/checkedListItemShortcut-json-webkit-linux.json @@ -26,22 +26,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-chromium-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-firefox-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-webkit-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteEndOfBlock-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-chromium-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-firefox-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-webkit-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImage-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-chromium-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-firefox-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-webkit-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteImageChild-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-chromium-linux.json index 4438e21e1b..35e3ba0c06 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-firefox-linux.json index 4438e21e1b..35e3ba0c06 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-webkit-linux.json index 4438e21e1b..35e3ba0c06 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContent-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-chromium-linux.json index 4438e21e1b..35e3ba0c06 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-firefox-linux.json index 4438e21e1b..35e3ba0c06 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-webkit-linux.json index 4438e21e1b..35e3ba0c06 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteInlineContentChild-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-chromium-linux.json index f72b0fbf4e..f27381c614 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-chromium-linux.json @@ -52,22 +52,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-firefox-linux.json index f72b0fbf4e..f27381c614 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-firefox-linux.json @@ -52,22 +52,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-webkit-linux.json index f72b0fbf4e..f27381c614 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteMultipleChildren-json-webkit-linux.json @@ -52,22 +52,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-chromium-linux.json index f72b0fbf4e..f27381c614 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-chromium-linux.json @@ -52,22 +52,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-firefox-linux.json index f72b0fbf4e..f27381c614 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-firefox-linux.json @@ -52,22 +52,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-webkit-linux.json index f72b0fbf4e..f27381c614 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteNestedChildren-json-webkit-linux.json @@ -52,22 +52,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-chromium-linux.json index 700034dfb4..df5285cd6d 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-firefox-linux.json index 700034dfb4..df5285cd6d 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-webkit-linux.json index 700034dfb4..df5285cd6d 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteSelection-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-chromium-linux.json index 22781307e7..cd4cc5ec45 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-chromium-linux.json @@ -52,22 +52,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-firefox-linux.json index 22781307e7..cd4cc5ec45 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-firefox-linux.json @@ -52,22 +52,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-webkit-linux.json index 22781307e7..cd4cc5ec45 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-webkit-linux.json @@ -52,22 +52,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-chromium-linux.json index e59aeeca33..33bae7f25e 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-chromium-linux.json @@ -74,22 +74,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-firefox-linux.json index e59aeeca33..33bae7f25e 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-firefox-linux.json @@ -74,22 +74,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-webkit-linux.json index e59aeeca33..33bae7f25e 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlockWithChildren-json-webkit-linux.json @@ -74,22 +74,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "4" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-chromium-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-firefox-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-webkit-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTable-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-chromium-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-firefox-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-webkit-linux.json index cb66bb0c92..6744f59493 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteTableChild-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json index 2b72424405..341ce8c988 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json @@ -36,7 +36,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -59,22 +59,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-firefox-linux.json index 2b72424405..341ce8c988 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-firefox-linux.json @@ -36,7 +36,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -59,22 +59,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-webkit-linux.json index 2b72424405..341ce8c988 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-webkit-linux.json @@ -36,7 +36,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -59,22 +59,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-chromium-linux.json index af8131a6c6..fe2cca639a 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-chromium-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -102,22 +102,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-firefox-linux.json index af8131a6c6..fe2cca639a 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-firefox-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -102,22 +102,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-webkit-linux.json index af8131a6c6..fe2cca639a 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocks-json-webkit-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -102,22 +102,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-chromium-linux.json index 6b5910ba90..2bc95508b6 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-chromium-linux.json @@ -25,7 +25,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -90,22 +90,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-firefox-linux.json index 6b5910ba90..2bc95508b6 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-firefox-linux.json @@ -25,7 +25,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -90,22 +90,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-webkit-linux.json index 6b5910ba90..2bc95508b6 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesNestedBlocksEmpty-json-webkit-linux.json @@ -25,7 +25,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -90,22 +90,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "3" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-chromium-linux.json index eccac9cf1f..15be5828e8 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-chromium-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -49,22 +49,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-firefox-linux.json index eccac9cf1f..15be5828e8 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-firefox-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -49,22 +49,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json index eccac9cf1f..15be5828e8 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterSelectionNotEmpty-json-webkit-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -49,22 +49,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "2" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-chromium-linux.json index 2182b246d3..71bec4c80d 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-chromium-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-firefox-linux.json index 2182b246d3..71bec4c80d 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-firefox-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-webkit-linux.json index 2182b246d3..71bec4c80d 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading1Shortcut-json-webkit-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-chromium-linux.json index 90ad0c7f65..6c3530cc0e 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-chromium-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-firefox-linux.json index 90ad0c7f65..6c3530cc0e 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-firefox-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-webkit-linux.json index 90ad0c7f65..6c3530cc0e 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading2Shortcut-json-webkit-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-chromium-linux.json index cda79940df..cb051e11ba 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-chromium-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-firefox-linux.json index cda79940df..cb051e11ba 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-firefox-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-webkit-linux.json index cda79940df..cb051e11ba 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/heading3Shortcut-json-webkit-linux.json @@ -27,22 +27,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-chromium-linux.json index 1d677481dc..554d3a9815 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-firefox-linux.json index 1d677481dc..554d3a9815 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-webkit-linux.json index 1d677481dc..554d3a9815 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemInputRulePreservesContent-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-chromium-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-chromium-linux.json index c3cbbec3b3..679af6f8da 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-chromium-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-chromium-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-firefox-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-firefox-linux.json index c3cbbec3b3..679af6f8da 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-firefox-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-firefox-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-webkit-linux.json b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-webkit-linux.json index c3cbbec3b3..679af6f8da 100644 --- a/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-webkit-linux.json +++ b/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/numberedListItemShortcut-json-webkit-linux.json @@ -25,22 +25,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts b/tests/src/end-to-end/multicolumn/multicolumn.test.ts index 7bee32ed76..2ad46fa1d9 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts @@ -1,5 +1,5 @@ import { test } from "../../setup/setupScript.js"; -import { BULLET_LIST_SELECTOR, MULTI_COLUMN_URL } from "../../utils/const.js"; +import { MULTI_COLUMN_URL } from "../../utils/const.js"; import { compareDocToSnapshot, focusOnEditor } from "../../utils/editor.js"; test.describe.configure({ mode: "serial" }); @@ -43,8 +43,7 @@ test.describe("Check Multi-Column Behaviour", () => { test("Check Delete end of column list", async ({ page }) => { await focusOnEditor(page); - await page.locator(BULLET_LIST_SELECTOR).last().click(); - await page.keyboard.press("ArrowDown"); + await page.locator(".bn-trailing-block").click(); await page.keyboard.type("Paragraph"); await page.keyboard.press("ControlOrMeta+ArrowLeft"); await page.keyboard.press("ArrowLeft"); diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-chromium-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-chromium-linux.json index 119bed4892..d12517aed8 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-chromium-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-chromium-linux.json @@ -194,22 +194,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "11" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-firefox-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-firefox-linux.json index 119bed4892..d12517aed8 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-firefox-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-firefox-linux.json @@ -194,22 +194,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "11" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-webkit-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-webkit-linux.json index 119bed4892..d12517aed8 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-webkit-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumn-json-webkit-linux.json @@ -194,22 +194,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "11" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-chromium-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-chromium-linux.json index 339cc68dbc..fa14a7cf41 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-chromium-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-chromium-linux.json @@ -185,22 +185,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "11" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-firefox-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-firefox-linux.json index 339cc68dbc..fa14a7cf41 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-firefox-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-firefox-linux.json @@ -185,22 +185,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "11" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-webkit-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-webkit-linux.json index 339cc68dbc..fa14a7cf41 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-webkit-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnList-json-webkit-linux.json @@ -185,22 +185,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "11" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-chromium-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-chromium-linux.json index 888b0d14fd..439fe63047 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-chromium-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-chromium-linux.json @@ -185,22 +185,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "11" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-firefox-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-firefox-linux.json index 888b0d14fd..439fe63047 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-firefox-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-firefox-linux.json @@ -185,22 +185,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "11" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-webkit-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-webkit-linux.json index 888b0d14fd..439fe63047 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-webkit-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteBeforeColumnWithSingleBlock-json-webkit-linux.json @@ -185,22 +185,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "11" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-chromium-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-chromium-linux.json index e41128a4b1..d9b5ae20a3 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-chromium-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-chromium-linux.json @@ -216,22 +216,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "12" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-firefox-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-firefox-linux.json index e41128a4b1..d9b5ae20a3 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-firefox-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-firefox-linux.json @@ -216,22 +216,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "12" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-webkit-linux.json b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-webkit-linux.json index e41128a4b1..d9b5ae20a3 100644 --- a/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-webkit-linux.json +++ b/tests/src/end-to-end/multicolumn/multicolumn.test.ts-snapshots/deleteEndOfColumnList-json-webkit-linux.json @@ -216,22 +216,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "12" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-chromium-linux.png b/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-chromium-linux.png index 8712d94089..d0ded3650b 100644 Binary files a/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-chromium-linux.png and b/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-chromium-linux.png differ diff --git a/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-firefox-linux.png b/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-firefox-linux.png index 056a54831e..ea2b3dcdd4 100644 Binary files a/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-firefox-linux.png and b/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-firefox-linux.png differ diff --git a/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-webkit-linux.png b/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-webkit-linux.png index 7f248230e9..dfad9e8123 100644 Binary files a/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-webkit-linux.png and b/tests/src/end-to-end/shadcn/shadcn.test.ts-snapshots/shadcn-image-toolbar-webkit-linux.png differ diff --git a/tests/src/end-to-end/slashmenu/slashmenu.test.ts b/tests/src/end-to-end/slashmenu/slashmenu.test.ts index bc3338313d..53bf6febbb 100644 --- a/tests/src/end-to-end/slashmenu/slashmenu.test.ts +++ b/tests/src/end-to-end/slashmenu/slashmenu.test.ts @@ -107,12 +107,12 @@ test.describe("Check SlashMenu Functionality", () => { await executeSlashCommand(page, "h1"); await page.waitForSelector(H_ONE_BLOCK_SELECTOR); // If done correctly there should be a total on 2 block groups - // a total of 4 blocks and the 3rd block should have no blockgroup + // a total of 3 blocks and the 3rd block should have no blockgroup // and BLOCK_A should have one child const blockGroupCount = await page.locator(BLOCK_GROUP_SELECTOR).count(); expect(blockGroupCount).toBe(2); const blockCount = await page.locator(BLOCK_CONTAINER_SELECTOR).count(); - expect(blockCount).toBe(4); + expect(blockCount).toBe(3); const thirdBlock = page.locator(BLOCK_CONTAINER_SELECTOR).nth(2); await thirdBlock .locator(BLOCK_GROUP_SELECTOR) diff --git a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-chromium-linux.json b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-chromium-linux.json index 0ba4ddac8e..f7203b9fb9 100644 --- a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-chromium-linux.json +++ b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-chromium-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -56,7 +56,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -81,7 +81,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -107,7 +107,7 @@ { "type": "blockContainer", "attrs": { - "id": "5" + "id": "4" }, "content": [ { @@ -129,7 +129,7 @@ { "type": "blockContainer", "attrs": { - "id": "6" + "id": "5" }, "content": [ { @@ -151,7 +151,7 @@ { "type": "blockContainer", "attrs": { - "id": "7" + "id": "6" }, "content": [ { @@ -173,22 +173,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-firefox-linux.json b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-firefox-linux.json index 0ba4ddac8e..f7203b9fb9 100644 --- a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-firefox-linux.json +++ b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-firefox-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -56,7 +56,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -81,7 +81,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -107,7 +107,7 @@ { "type": "blockContainer", "attrs": { - "id": "5" + "id": "4" }, "content": [ { @@ -129,7 +129,7 @@ { "type": "blockContainer", "attrs": { - "id": "6" + "id": "5" }, "content": [ { @@ -151,7 +151,7 @@ { "type": "blockContainer", "attrs": { - "id": "7" + "id": "6" }, "content": [ { @@ -173,22 +173,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-webkit-linux.json b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-webkit-linux.json index 0ba4ddac8e..f7203b9fb9 100644 --- a/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-webkit-linux.json +++ b/tests/src/end-to-end/slashmenu/slashmenu.test.ts-snapshots/docStructureSnapshot-webkit-linux.json @@ -31,7 +31,7 @@ { "type": "blockContainer", "attrs": { - "id": "2" + "id": "1" }, "content": [ { @@ -56,7 +56,7 @@ { "type": "blockContainer", "attrs": { - "id": "3" + "id": "2" }, "content": [ { @@ -81,7 +81,7 @@ { "type": "blockContainer", "attrs": { - "id": "4" + "id": "3" }, "content": [ { @@ -107,7 +107,7 @@ { "type": "blockContainer", "attrs": { - "id": "5" + "id": "4" }, "content": [ { @@ -129,7 +129,7 @@ { "type": "blockContainer", "attrs": { - "id": "6" + "id": "5" }, "content": [ { @@ -151,7 +151,7 @@ { "type": "blockContainer", "attrs": { - "id": "7" + "id": "6" }, "content": [ { @@ -173,22 +173,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/static/static.test.ts b/tests/src/end-to-end/static/static.test.ts index 4a6854ba35..5508faab3b 100644 --- a/tests/src/end-to-end/static/static.test.ts +++ b/tests/src/end-to-end/static/static.test.ts @@ -18,6 +18,11 @@ test.describe("Check static rendering", () => { }) => { await page.goto(BASIC_BLOCKS_URL); await page.waitForLoadState("networkidle"); + // Hide the trailing block widget so the live editor's page height matches + // the static export, which doesn't render it. + await page.addStyleTag({ + content: ".bn-trailing-block { display: none !important; }", + }); expect( await page.screenshot({ fullPage: true, diff --git a/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-chromium-linux.png b/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-chromium-linux.png index c8ee02e4c5..498bbc0736 100644 Binary files a/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-chromium-linux.png and b/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-chromium-linux.png differ diff --git a/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-firefox-linux.png b/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-firefox-linux.png index b8fed8d957..60315234f8 100644 Binary files a/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-firefox-linux.png and b/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-firefox-linux.png differ diff --git a/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-webkit-linux.png b/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-webkit-linux.png index 998734ab19..4b7a3755f5 100644 Binary files a/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-webkit-linux.png and b/tests/src/end-to-end/static/static.test.ts-snapshots/static-rendering-equality-webkit-linux.png differ diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-chromium-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-chromium-linux.json index 7b53b413be..bc3542e2ae 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-chromium-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-chromium-linux.json @@ -137,22 +137,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-firefox-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-firefox-linux.json index 7b53b413be..bc3542e2ae 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-firefox-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-firefox-linux.json @@ -137,22 +137,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-webkit-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-webkit-linux.json index 7b53b413be..bc3542e2ae 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-webkit-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/arrowKeyCells-json-webkit-linux.json @@ -137,22 +137,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-chromium-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-chromium-linux.json index 49280fa481..b8d1e35903 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-chromium-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-chromium-linux.json @@ -131,22 +131,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-firefox-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-firefox-linux.json index 49280fa481..b8d1e35903 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-firefox-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-firefox-linux.json @@ -131,22 +131,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-webkit-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-webkit-linux.json index 49280fa481..b8d1e35903 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-webkit-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/cellTyping-json-webkit-linux.json @@ -131,22 +131,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-chromium-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-chromium-linux.json index cb17830afd..d2b917cc02 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-chromium-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-chromium-linux.json @@ -137,22 +137,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-firefox-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-firefox-linux.json index cb17830afd..d2b917cc02 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-firefox-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-firefox-linux.json @@ -137,22 +137,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-webkit-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-webkit-linux.json index cb17830afd..d2b917cc02 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-webkit-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/enterMovesToCellBelow-json-webkit-linux.json @@ -137,22 +137,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-chromium-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-chromium-linux.json index 2c2cb65b20..8b95de67cb 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-chromium-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-chromium-linux.json @@ -138,22 +138,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-firefox-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-firefox-linux.json index 2c2cb65b20..8b95de67cb 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-firefox-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-firefox-linux.json @@ -138,22 +138,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-webkit-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-webkit-linux.json index 2c2cb65b20..8b95de67cb 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-webkit-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/shiftEnterNewLineInCell-json-webkit-linux.json @@ -138,22 +138,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-chromium-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-chromium-linux.json index 7b53b413be..bc3542e2ae 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-chromium-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-chromium-linux.json @@ -137,22 +137,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-firefox-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-firefox-linux.json index 7b53b413be..bc3542e2ae 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-firefox-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-firefox-linux.json @@ -137,22 +137,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-webkit-linux.json b/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-webkit-linux.json index 7b53b413be..bc3542e2ae 100644 --- a/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-webkit-linux.json +++ b/tests/src/end-to-end/tables/tables.test.ts-snapshots/tabCells-json-webkit-linux.json @@ -137,22 +137,6 @@ ] } ] - }, - { - "type": "blockContainer", - "attrs": { - "id": "1" - }, - "content": [ - { - "type": "paragraph", - "attrs": { - "backgroundColor": "default", - "textColor": "default", - "textAlignment": "left" - } - } - ] } ] } diff --git a/tests/src/end-to-end/textalignment/textAlignment.test.ts b/tests/src/end-to-end/textalignment/textAlignment.test.ts index 73bf0210e1..eaecc4ce18 100644 --- a/tests/src/end-to-end/textalignment/textAlignment.test.ts +++ b/tests/src/end-to-end/textalignment/textAlignment.test.ts @@ -18,10 +18,11 @@ test.describe("Check Text Alignment Functionality", () => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertHeading(page, 2); + await page.keyboard.press("Enter"); await insertHeading(page, 3); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("Control+ArrowLeft"); await page.keyboard.press("Shift+ArrowRight"); @@ -42,10 +43,11 @@ test.describe("Check Text Alignment Functionality", () => { await focusOnEditor(page); await insertHeading(page, 1); + await page.keyboard.press("Enter"); await insertHeading(page, 2); + await page.keyboard.press("Enter"); await insertHeading(page, 3); - await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("ArrowUp"); await page.keyboard.press("Control+ArrowLeft"); @@ -59,7 +61,6 @@ test.describe("Check Text Alignment Functionality", () => { // Waits for formatting toolbar animation to finish. await page.waitForTimeout(500); await page.keyboard.press("ArrowLeft"); - await page.pause(); expect(await page.screenshot()).toMatchSnapshot( "alignTextMultipleBlocks.png", diff --git a/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-chromium-linux.png b/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-chromium-linux.png index c49a73225c..85c744c8f6 100644 Binary files a/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-chromium-linux.png and b/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-chromium-linux.png differ diff --git a/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-firefox-linux.png b/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-firefox-linux.png index 582afb7527..4ef1daa636 100644 Binary files a/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-firefox-linux.png and b/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-firefox-linux.png differ diff --git a/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-webkit-linux.png b/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-webkit-linux.png index 311741e890..a662f1e345 100644 Binary files a/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-webkit-linux.png and b/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-image-toolbar-webkit-linux.png differ diff --git a/tests/src/utils/copypaste.ts b/tests/src/utils/copypaste.ts index eb95f811dc..cabfc72db9 100644 --- a/tests/src/utils/copypaste.ts +++ b/tests/src/utils/copypaste.ts @@ -1,11 +1,12 @@ import { Page } from "@playwright/test"; -import { PASTE_ZONE_SELECTOR, TYPE_DELAY } from "./const.js"; +import { PASTE_ZONE_SELECTOR } from "./const.js"; import { focusOnEditor } from "./editor.js"; export async function copyPaste(page: Page) { await page.keyboard.press(`ControlOrMeta+C`); - await page.keyboard.press("ArrowDown", { delay: TYPE_DELAY }); - await page.keyboard.press("Enter"); + // Exit out of any menus/toolbars which may block the trailing block. + await page.keyboard.press(`Escape`); + await page.locator(".bn-trailing-block").click(); await page.keyboard.press(`ControlOrMeta+V`); } @@ -40,7 +41,6 @@ export function removeMetaFromHTML(html: string) { export async function insertParagraph(page: Page) { await page.keyboard.type("Paragraph"); - await page.keyboard.press("ArrowDown", { delay: TYPE_DELAY }); } export async function insertHeading(page: Page, headingLevel: number) { @@ -50,7 +50,6 @@ export async function insertHeading(page: Page, headingLevel: number) { await page.keyboard.press(" "); await page.keyboard.type("Heading"); - await page.keyboard.press("ArrowDown", { delay: TYPE_DELAY }); } export async function startList(page: Page, ordered: boolean) { @@ -70,7 +69,6 @@ export async function insertListItems(page: Page) { await page.keyboard.type("List Item 2"); await page.keyboard.press("Enter"); await page.keyboard.type("List Item 3"); - await page.keyboard.press("ArrowDown", { delay: TYPE_DELAY }); } export async function insertNestedListItems(page: Page) { @@ -81,5 +79,4 @@ export async function insertNestedListItems(page: Page) { await page.keyboard.press("Enter"); await page.keyboard.press("Tab"); await page.keyboard.type("List Item 3"); - await page.keyboard.press("ArrowDown", { delay: TYPE_DELAY }); }