소스 검색

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 => {