8
0
Просмотр исходного кода

Added one more test case for ImageTextAlternative balloon manual test.

Oskar Wróbel 8 лет назад
Родитель
Сommit
cb750431cd

+ 7 - 2
packages/ckeditor5-image/tests/manual/tickets/106/1.js

@@ -108,9 +108,14 @@ function startExternalDelete( editor ) {
 	const document = editor.document;
 	const bath = document.batch( 'transparent' );
 
-	wait( 3000 ).then( () => {
+	function removeSecondBlock() {
 		document.enqueueChanges( () => {
 			bath.remove( Range.createFromPositionAndShift( new Position( document.getRoot(), [ 1 ] ), 1 ) );
 		} );
-	} );
+	}
+
+	wait( 3000 )
+		.then( () => removeSecondBlock() )
+		.then( () => wait( 3000 ) )
+		.then( () => removeSecondBlock() );
 }

+ 1 - 0
packages/ckeditor5-image/tests/manual/tickets/106/1.md

@@ -11,3 +11,4 @@
 
 1. Click **Start external changes** then quickly select the image in the content, then from the toolbar open the **text alternative** editing balloon.
 2. Observe if the balloon remains attached to the image as the content is deleted.
+3. Wait a bit more and observe if the balloon is removed together with an image.