@@ -846,14 +846,14 @@ describe('IgxDropDown ', () => {
846846 it ( 'should properly scroll when virtualized' , async ( ) => {
847847 dropdown . toggle ( ) ;
848848 fixture . detectChanges ( ) ;
849- await wait ( 30 ) ;
849+ await wait ( 50 ) ;
850850 let firstItemElement = fixture . componentInstance . dropdownItems . first . element . nativeElement ;
851851 let lastItemElement = fixture . componentInstance . dropdownItems . last . element . nativeElement ;
852852 expect ( lastItemElement . textContent . trim ( ) ) . toEqual ( 'Item 11' ) ;
853853 expect ( firstItemElement . textContent . trim ( ) ) . toEqual ( 'Item 1' ) ;
854854 scroll . getScroll ( ) . scrollTop = scroll . getScroll ( ) . scrollHeight ;
855855 fixture . detectChanges ( ) ;
856- await wait ( 30 ) ;
856+ await wait ( 50 ) ;
857857 firstItemElement = fixture . componentInstance . dropdownItems . first . element . nativeElement ;
858858 lastItemElement = fixture . componentInstance . dropdownItems . last . element . nativeElement ;
859859 expect ( firstItemElement . textContent . trim ( ) ) . toEqual ( 'Item 1990' ) ;
@@ -886,12 +886,12 @@ describe('IgxDropDown ', () => {
886886 expect ( dropdown . selectedItem . value ) . toEqual ( { name : fixture . componentInstance . items [ 5 ] . name , id : 5 } ) ;
887887 expect ( dropdown . items [ 5 ] . selected ) . toBeTruthy ( ) ;
888888 scroll . scrollTo ( 412 ) ;
889- await wait ( 30 ) ;
889+ await wait ( 50 ) ;
890890 fixture . detectChanges ( ) ;
891891 expect ( items . toArray ( ) [ 5 ] . selected ) . toBeFalsy ( ) ;
892892 expect ( document . getElementsByClassName ( CSS_CLASS_SELECTED ) . length ) . toEqual ( 0 ) ;
893893 scroll . scrollTo ( 0 ) ;
894- await wait ( 30 ) ;
894+ await wait ( 50 ) ;
895895 fixture . detectChanges ( ) ;
896896 expect ( items . toArray ( ) [ 5 ] . selected ) . toBeTruthy ( ) ;
897897 expect ( document . getElementsByClassName ( CSS_CLASS_SELECTED ) . length ) . toEqual ( 1 ) ;
@@ -910,7 +910,7 @@ describe('IgxDropDown ', () => {
910910 expect ( dropdown . selectedItem as any ) . toEqual ( selectedItem ) ;
911911 expect ( items . toArray ( ) [ 5 ] . selected ) . toEqual ( false ) ;
912912 scroll . scrollTo ( 412 ) ;
913- await wait ( 30 ) ;
913+ await wait ( 50 ) ;
914914 fixture . detectChanges ( ) ;
915915 const selectedEntry = items . find ( e => e . value === selectedItem . value && e . index === selectedItem . index ) ;
916916 expect ( selectedEntry ) . toBeTruthy ( ) ;
@@ -924,9 +924,9 @@ describe('IgxDropDown ', () => {
924924 dropdown . selectItem ( selectedItem ) ;
925925 fixture . detectChanges ( ) ;
926926 dropdown . toggle ( ) ;
927- await wait ( 30 ) ;
927+ await wait ( 50 ) ;
928928 dropdown . toggle ( ) ;
929- await wait ( 30 ) ;
929+ await wait ( 50 ) ;
930930 const itemsInView = virtualScroll . igxForContainerSize / virtualScroll . igxForItemSize ;
931931 const expectedScroll = virtualScroll . getScrollForIndex ( selectedItem . index )
932932 - ( itemsInView / 2 - 1 ) * virtualScroll . igxForItemSize ;
0 commit comments