|
|
@@ -17,12 +17,12 @@ import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictest
|
|
|
import Delete from '@ckeditor/ckeditor5-typing/src/delete';
|
|
|
|
|
|
describe( 'Table cell refresh post-fixer', () => {
|
|
|
- let editor, model, doc, root, view, refreshItemSpy;
|
|
|
+ let editor, model, doc, root, view, refreshItemSpy, element;
|
|
|
|
|
|
testUtils.createSinonSandbox();
|
|
|
|
|
|
beforeEach( () => {
|
|
|
- const element = document.createElement( 'div' );
|
|
|
+ element = document.createElement( 'div' );
|
|
|
document.body.appendChild( element );
|
|
|
|
|
|
// Most tests assume non-edge environment but we do not set `contenteditable=false` on Edge so stub `env.isEdge`.
|
|
|
@@ -53,6 +53,11 @@ describe( 'Table cell refresh post-fixer', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
+ afterEach( () => {
|
|
|
+ element.remove();
|
|
|
+ return editor.destroy();
|
|
|
+ } );
|
|
|
+
|
|
|
it( 'should rename <span> to <p> when adding more <paragraph> elements to the same table cell', () => {
|
|
|
editor.setData( viewTable( [ [ '<p>00</p>' ] ] ) );
|
|
|
|