@@ -138,9 +138,8 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
138138 expect ( grid . selectedCells [ 0 ] . row . rowData [ grid . primaryKey ] ) . toEqual ( 3 ) ;
139139 } ) ;
140140
141- it ( 'Should properly handle TAB / SHIFT + TAB on row selectors' , fakeAsync ( ( ) => {
141+ it ( 'Should properly handle TAB / SHIFT + TAB on row selectors' , ( ) => {
142142 grid . rowSelection = GridSelectionMode . multiple ;
143- tick ( 100 ) ;
144143 fix . detectChanges ( ) ;
145144
146145 const firstCell = GridFunctions . getRowCells ( fix , 1 ) [ 0 ] ;
@@ -152,23 +151,21 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
152151 fix . detectChanges ( ) ;
153152
154153 UIInteractions . triggerEventHandlerKeyDownWithBlur ( 'Tab' , firstCell , false , true ) ;
155- tick ( 100 ) ;
156154 fix . detectChanges ( ) ;
157155
158156 let cell = grid . getCellByColumn ( 0 , 'Company' ) ;
159157 GridSelectionFunctions . verifyCellSelected ( cell ) ;
160158 GridSelectionFunctions . verifyRowCheckboxIsNotFocused ( secondRow . nativeElement ) ;
161159
162160 UIInteractions . triggerEventHandlerKeyDownWithBlur ( 'Tab' , secondCell ) ;
163- tick ( 100 ) ;
164161 fix . detectChanges ( ) ;
165162
166163 cell = grid . getCellByColumn ( 1 , 'ID' ) ;
167164 GridSelectionFunctions . verifyCellSelected ( cell ) ;
168165 GridSelectionFunctions . verifyRowCheckboxIsNotFocused ( firstRow . nativeElement ) ;
169- } ) ) ;
166+ } ) ;
170167
171- it ( 'should allow vertical keyboard navigation in pinned area.' , fakeAsync ( ( ) => {
168+ it ( 'should allow vertical keyboard navigation in pinned area.' , ( ) => {
172169 grid . getColumnByName ( 'Name' ) . pinned = true ;
173170 fix . detectChanges ( ) ;
174171 let selectedCell ;
@@ -185,21 +182,19 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
185182 expect ( selectedCell . column . field ) . toMatch ( 'Name' ) ;
186183
187184 UIInteractions . triggerEventHandlerKeyDownWithBlur ( 'arrowdown' , firstCell ) ;
188- tick ( 100 ) ;
189185 fix . detectChanges ( ) ;
190186
191187 expect ( selectedCell . value ) . toEqual ( 'Gilberto Todd' ) ;
192188 expect ( selectedCell . column . field ) . toMatch ( 'Name' ) ;
193189
194190 UIInteractions . triggerEventHandlerKeyDownWithBlur ( 'arrowup' , secondCell ) ;
195- tick ( 100 ) ;
196191 fix . detectChanges ( ) ;
197192
198193 expect ( selectedCell . value ) . toEqual ( 'Casey Houston' ) ;
199194 expect ( selectedCell . column . field ) . toMatch ( 'Name' ) ;
200- } ) ) ;
195+ } ) ;
201196
202- it ( 'should allow horizontal keyboard navigation between start pinned area and unpinned area.' , fakeAsync ( ( ) => {
197+ it ( 'should allow horizontal keyboard navigation between start pinned area and unpinned area.' , ( ) => {
203198 grid . getColumnByName ( 'Name' ) . pinned = true ;
204199 grid . getColumnByName ( 'Company' ) . pinned = true ;
205200 fix . detectChanges ( ) ;
@@ -209,35 +204,30 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
209204 const secondPinnedCell = GridFunctions . getRowCells ( fix , 0 ) [ 1 ] ;
210205 const firstUnPinnedCell = GridFunctions . getRowCells ( fix , 0 ) [ 2 ] ;
211206
212-
213207 grid . onSelection . subscribe ( ( event : IGridCellEventArgs ) => {
214208 selectedCell = event . cell ;
215209 } ) ;
216210 firstPinnedCell . triggerEventHandler ( 'focus' , null ) ;
217211 fix . detectChanges ( ) ;
218212
219213 UIInteractions . triggerEventHandlerKeyDownWithBlur ( 'arrowright' , firstPinnedCell ) ;
220- tick ( 100 ) ;
221214 fix . detectChanges ( ) ;
222215
223216 expect ( selectedCell . value ) . toEqual ( 'Company A' ) ;
224217 expect ( selectedCell . column . field ) . toMatch ( 'Company' ) ;
225218
226219 UIInteractions . triggerEventHandlerKeyDownWithBlur ( 'arrowright' , secondPinnedCell ) ;
227- tick ( 100 ) ;
228220 fix . detectChanges ( ) ;
229221
230222 expect ( selectedCell . value ) . toEqual ( 1 ) ;
231223 expect ( selectedCell . column . field ) . toMatch ( 'ID' ) ;
232224
233225 UIInteractions . triggerEventHandlerKeyDownWithBlur ( 'arrowleft' , firstUnPinnedCell ) ;
234- tick ( 100 ) ;
235226 fix . detectChanges ( ) ;
236227
237228 expect ( selectedCell . value ) . toEqual ( 'Company A' ) ;
238229 expect ( selectedCell . column . field ) . toMatch ( 'Company' ) ;
239- } ) ) ;
240-
230+ } ) ;
241231 } ) ;
242232
243233 describe ( 'in virtualized grid' , ( ) => {
0 commit comments