Browse Source

Tests: Fixed tests leaking editor instance / DOM element.

Pushed straight to the master branch as https://github.com/ckeditor/ckeditor5-engine/pull/1812 got R+ed and this is ultra small and safe change.
Marek Lewandowski 6 years ago
parent
commit
21abee418e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/ckeditor5-engine/tests/view/view/jumpoveruielement.js

+ 2 - 0
packages/ckeditor5-engine/tests/view/view/jumpoveruielement.js

@@ -465,6 +465,8 @@ describe( 'View', () => {
 			domSelection.collapse( newDiv, 0 );
 
 			viewDocument.fire( 'keydown', { keyCode: keyCodes.arrowright, domTarget: view.domRoots.get( 'main' ) } );
+
+			newDiv.remove();
 		} );
 	} );
 } );