Jelajahi Sumber

Tests: Fixed failng UI tests. [skip ci]

Aleksander Nowodzinski 7 tahun lalu
induk
melakukan
73b43b1531
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  1. 6 0
      packages/ckeditor5-editor-balloon/tests/ballooneditorui.js

+ 6 - 0
packages/ckeditor5-editor-balloon/tests/ballooneditorui.js

@@ -223,6 +223,12 @@ class VirtualBalloonTestEditor extends VirtualTestEditor {
 				editor.initPlugins()
 				editor.initPlugins()
 					.then( () => {
 					.then( () => {
 						editor.ui.init();
 						editor.ui.init();
+
+						const initialData = isElement( sourceElementOrData ) ?
+							sourceElementOrData.innerHTML :
+							sourceElementOrData;
+
+						editor.data.init( initialData );
 						editor.fire( 'ready' );
 						editor.fire( 'ready' );
 					} )
 					} )
 					.then( () => editor )
 					.then( () => editor )