Browse Source

Fixed failing test.

Oskar Wróbel 8 years ago
parent
commit
ba13da00bd
1 changed files with 5 additions and 2 deletions
  1. 5 2
      packages/ckeditor5-ui/tests/contextualballoon.js

+ 5 - 2
packages/ckeditor5-ui/tests/contextualballoon.js

@@ -14,10 +14,13 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 /* global document */
 /* global document */
 
 
 describe( 'ContextualBalloon', () => {
 describe( 'ContextualBalloon', () => {
-	let balloon, viewA, viewB, editor;
+	let editor, editorElement, balloon, viewA, viewB;
 
 
 	beforeEach( () => {
 	beforeEach( () => {
-		return ClassicTestEditor.create( document.createElement( 'div' ), {
+		editorElement = document.createElement( 'div' );
+		document.body.appendChild( editorElement );
+
+		return ClassicTestEditor.create( editorElement, {
 			plugins: [ ContextualBalloon ]
 			plugins: [ ContextualBalloon ]
 		} )
 		} )
 		.then( newEditor => {
 		.then( newEditor => {