Explorar o código

Remove redundant lines from the test of cycling with single item in the mention list.

Maciej Gołaszewski %!s(int64=6) %!d(string=hai) anos
pai
achega
2cff4d983d
Modificáronse 1 ficheiros con 1 adicións e 12 borrados
  1. 1 12
      packages/ckeditor5-mention/tests/mentionui.js

+ 1 - 12
packages/ckeditor5-mention/tests/mentionui.js

@@ -932,21 +932,10 @@ describe( 'MentionUI', () => {
 					};
 
 					model.change( writer => {
-						writer.insertText( '@', doc.selection.getFirstPosition() );
+						writer.insertText( '@T', doc.selection.getFirstPosition() );
 					} );
 
 					return waitForDebounce()
-						.then( () => {
-							expectChildViewsIsOnState( [ true, false, false, false, false ] );
-
-							fireKeyDownEvent( keyDownEvtData );
-							expectChildViewsIsOnState( [ false, true, false, false, false ] );
-
-							model.change( writer => {
-								writer.insertText( 'T', doc.selection.getFirstPosition() );
-							} );
-						} )
-						.then( waitForDebounce )
 						.then( () => {
 							expectChildViewsIsOnState( [ true ] );