Преглед изворни кода

Tests: Simplified PendingActions manual test.

Oskar Wróbel пре 7 година
родитељ
комит
4ad9f850a9

+ 0 - 1
packages/ckeditor5-core/tests/manual/pendingactions.html

@@ -1,6 +1,5 @@
 <div>
 	<button id="add-action">Add pending action</button>
-	<button id="add-action-progress">Add progressing pending action</button>
 </div>
 
 <h3>Pending actions list:</h3>

+ 7 - 13
packages/ckeditor5-core/tests/manual/pendingactions.js

@@ -25,26 +25,20 @@ ClassicEditor
 		const actionsEl = document.querySelector( '.pending-actions' );
 
 		document.querySelector( '#add-action' ).addEventListener( 'click', () => {
-			const action = pendingActions.add( 'Static pending action.' );
-
-			wait( 5000 ).then( () => pendingActions.remove( action ) );
-		} );
-
-		document.querySelector( '#add-action-progress' ).addEventListener( 'click', () => {
-			const action = pendingActions.add( 'Dynamic pending action 0%.' );
+			const action = pendingActions.add( 'Pending action 0%.' );
 
 			wait( 1000 )
-				.then( () => ( action.message = 'Dynamic pending action 0%.' ) )
+				.then( () => ( action.message = 'Pending action 0%.' ) )
 				.then( () => wait( 500 ) )
-				.then( () => ( action.message = 'Dynamic pending action 20%.' ) )
+				.then( () => ( action.message = 'Pending action 20%.' ) )
 				.then( () => wait( 500 ) )
-				.then( () => ( action.message = 'Dynamic pending action 40%.' ) )
+				.then( () => ( action.message = 'Pending action 40%.' ) )
 				.then( () => wait( 500 ) )
-				.then( () => ( action.message = 'Dynamic pending action 60%.' ) )
+				.then( () => ( action.message = 'Pending action 60%.' ) )
 				.then( () => wait( 500 ) )
-				.then( () => ( action.message = 'Dynamic pending action 80%.' ) )
+				.then( () => ( action.message = 'Pending action 80%.' ) )
 				.then( () => wait( 500 ) )
-				.then( () => ( action.message = 'Dynamic pending action 1000%.' ) )
+				.then( () => ( action.message = 'Pending action 100%.' ) )
 				.then( () => wait( 500 ) )
 				.then( () => pendingActions.remove( action ) );
 		} );

+ 4 - 6
packages/ckeditor5-core/tests/manual/pendingactions.md

@@ -1,8 +1,6 @@
 ## Pending actions
 
-1. Click `Add pending action`
-2. Check if action is displayed as an item of Pending Actions list (action should disappear after 5 seconds)
-3. Click `Add progressing pending actions`
-4. Check if action message changes (action should disappear when progress reaches 100%)
-5. Try to reload page or close the browser tab when pending action is displayed, you should see a prompt
-6. Try to reload page when there are no pending actions, you shouldn't see a prompt
+1. Click `Add pending actions`
+2. Check if action message is changing (action should disappear when progress reaches 100%)
+3. Try to reload page or close the browser tab when pending action is displayed, you should see a prompt
+4. Try to reload page when there are no pending actions, you shouldn't see a prompt