瀏覽代碼

Tests: Fix tests DOM leaks

panr 5 年之前
父節點
當前提交
324db2af5c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/ckeditor5-editor-inline/tests/inlineeditorui.js

+ 4 - 0
packages/ckeditor5-editor-inline/tests/inlineeditorui.js

@@ -97,6 +97,8 @@ describe( 'InlineEditorUI', () => {
 					target: view.editable.element,
 					positions: sinon.match.array
 				} );
+
+				viewElement.remove();
 			} );
 
 			it( 'pin() is not called on editor.ui#update when panel is hidden', () => {
@@ -135,6 +137,8 @@ describe( 'InlineEditorUI', () => {
 				editor.ui.fire( 'update' );
 
 				sinon.assert.calledOnce( spy );
+
+				viewElement.remove();
 			} );
 
 			it( 'toolbar should group items by default', () => {