浏览代码

Fixed failing test.

Oskar Wróbel 8 年之前
父节点
当前提交
ba13da00bd
共有 1 个文件被更改,包括 5 次插入2 次删除
  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 */
 
 describe( 'ContextualBalloon', () => {
-	let balloon, viewA, viewB, editor;
+	let editor, editorElement, balloon, viewA, viewB;
 
 	beforeEach( () => {
-		return ClassicTestEditor.create( document.createElement( 'div' ), {
+		editorElement = document.createElement( 'div' );
+		document.body.appendChild( editorElement );
+
+		return ClassicTestEditor.create( editorElement, {
 			plugins: [ ContextualBalloon ]
 		} )
 		.then( newEditor => {