diff --git a/addons/web_editor/static/lib/odoo-editor/test/spec/editor.test.js b/addons/web_editor/static/lib/odoo-editor/test/spec/editor.test.js index bc314d21d91..c78a120e61c 100644 --- a/addons/web_editor/static/lib/odoo-editor/test/spec/editor.test.js +++ b/addons/web_editor/static/lib/odoo-editor/test/spec/editor.test.js @@ -3228,6 +3228,19 @@ X[] }); }); }); + describe('step', () => { + it('should allow insertion of nested contenteditable="true"', async () => { + await testEditor(BasicEditor, { + contentBefore: `
`, + stepFunction: async editor => { + const editable = '
abc
'; + editor.editable.querySelector('div').innerHTML = editable; + editor.historyStep(); + }, + contentAfter: `
abc
`, + }); + }); + }); }); // Note that arrow keys test have a contentAfter that is not reflective of