8
0
Oskar Wróbel 8 жил өмнө
parent
commit
ba13da00bd

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