8
0
Pārlūkot izejas kodu

Change the timeout in mention ui test

Maciej Gołaszewski 6 gadi atpakaļ
vecāks
revīzija
8a8d6cac8c
1 mainītis faili ar 4 papildinājumiem un 5 dzēšanām
  1. 4 5
      packages/ckeditor5-mention/tests/mentionui.js

+ 4 - 5
packages/ckeditor5-mention/tests/mentionui.js

@@ -868,7 +868,7 @@ describe( 'MentionUI', () => {
 				feedCallbackTimeout = 200;
 
 				return Promise.resolve()
-					.then( wait( 50 ) )
+					.then( wait( 20 ) )
 					.then( () => {
 						sinon.assert.notCalled( feedCallbackStub );
 
@@ -886,14 +886,13 @@ describe( 'MentionUI', () => {
 							writer.insertText( '0', doc.selection.getFirstPosition() );
 						} );
 					} )
-					.then( waitForDebounce )
-					.then( waitForDebounce ) // wait a bit more...
+					.then( wait( 500 ) ) // Debounce wait plus some more for Edge on Travis.
 					.then( () => {
 						sinon.assert.calledTwice( feedCallbackStub );
 						sinon.assert.calledWithExactly( feedCallbackStub.getCall( 1 ), '10' );
 
-						expect( panelView.isVisible ).to.be.true;
-						expect( editor.model.markers.has( 'mention' ) ).to.be.true;
+						expect( panelView.isVisible, 'panel is visible' ).to.be.true;
+						expect( editor.model.markers.has( 'mention' ), 'marker is inserted' ).to.be.true;
 						expect( mentionsView.items ).to.have.length( 4 );
 					} );
 			} );