File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
projects/igniteui-angular/src/lib/combo Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2066,7 +2066,7 @@ describe('igxCombo', () => {
20662066 spyOn ( combo . dropdown , 'onToggleClosing' ) . and . callThrough ( ) ;
20672067 spyOn ( combo . dropdown , 'onToggleClosed' ) . and . callThrough ( ) ;
20682068 combo . toggle ( ) ;
2069- await wait ( 30 ) ;
2069+ await wait ( ) ;
20702070 fixture . detectChanges ( ) ;
20712071 expect ( combo . collapsed ) . toEqual ( false ) ;
20722072 expect ( combo . dropdown . onToggleOpening ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -2075,17 +2075,17 @@ describe('igxCombo', () => {
20752075 expect ( virtDir . getScroll ( ) . scrollTop ) . toEqual ( 0 ) ;
20762076 expect ( vContainerScrollHeight ) . toBeGreaterThan ( combo . itemHeight ) ;
20772077 virtDir . getScroll ( ) . scrollTop = Math . floor ( vContainerScrollHeight / 2 ) ;
2078- await wait ( 30 ) ;
2078+ await firstValueFrom ( combo . virtualScrollContainer . chunkLoad ) ;
20792079 fixture . detectChanges ( ) ;
20802080 expect ( virtDir . getScroll ( ) . scrollTop ) . toBeGreaterThan ( 0 ) ;
20812081 UIInteractions . simulateClickEvent ( document . documentElement ) ;
2082- await wait ( 10 ) ;
2082+ await wait ( ) ;
20832083 fixture . detectChanges ( ) ;
20842084 expect ( combo . collapsed ) . toEqual ( true ) ;
20852085 expect ( combo . dropdown . onToggleClosing ) . toHaveBeenCalledTimes ( 1 ) ;
20862086 expect ( combo . dropdown . onToggleClosed ) . toHaveBeenCalledTimes ( 1 ) ;
20872087 combo . toggle ( ) ;
2088- await wait ( 30 ) ;
2088+ await wait ( ) ;
20892089 fixture . detectChanges ( ) ;
20902090 expect ( combo . collapsed ) . toEqual ( false ) ;
20912091 expect ( combo . dropdown . onToggleOpening ) . toHaveBeenCalledTimes ( 2 ) ;
You can’t perform that action at this time.
0 commit comments