@@ -158,19 +158,17 @@ describe('IgxHierarchicalGrid Basic Navigation #hGrid', () => {
158158 const childGrid = hierarchicalGrid . hgridAPI . getChildGrids ( false ) [ 0 ] ;
159159 const horizontalScrDir = childGrid . dataRowList . toArray ( ) [ 0 ] . virtDirRow ;
160160 horizontalScrDir . scrollTo ( 6 ) ;
161- fixture . detectChanges ( ) ;
162- await wait ( DEBOUNCE_TIME ) ;
161+ await wait ( 100 ) ;
163162 fixture . detectChanges ( ) ;
164163 const childLastCell = childGrid . dataRowList . toArray ( ) [ 9 ] . cells . toArray ( ) [ 3 ] ;
165- GridFunctions . focusCell ( fixture , childLastCell ) ;
164+ UIInteractions . simulateClickAndSelectCellEvent ( childLastCell ) ;
165+ await wait ( DEBOUNCE_TIME ) ;
166166 fixture . detectChanges ( ) ;
167167
168168 const childGridContent = fixture . debugElement . queryAll ( By . css ( GRID_CONTENT_CLASS ) ) [ 1 ] ;
169169 UIInteractions . triggerEventHandlerKeyDown ( 'home' , childGridContent , false , false , true ) ;
170+ await wait ( 200 ) ;
170171 fixture . detectChanges ( ) ;
171- await wait ( DEBOUNCE_TIME ) ;
172- fixture . detectChanges ( ) ;
173- await wait ( DEBOUNCE_TIME ) ;
174172
175173 const selectedCell = fixture . componentInstance . selectedCell ;
176174 expect ( selectedCell . value ) . toEqual ( 0 ) ;
@@ -275,13 +273,14 @@ describe('IgxHierarchicalGrid Basic Navigation #hGrid', () => {
275273 fixture . detectChanges ( ) ;
276274
277275 const childGrid = hierarchicalGrid . hgridAPI . getChildGrids ( false ) [ 3 ] ;
276+
278277 const childLastRowCell = childGrid . dataRowList . toArray ( ) [ 9 ] . cells . toArray ( ) [ 0 ] ;
279278 GridFunctions . focusCell ( fixture , childLastRowCell ) ;
280279 fixture . detectChanges ( ) ;
281280 const childGridContent = fixture . debugElement . queryAll ( By . css ( GRID_CONTENT_CLASS ) ) [ 1 ] ;
282281 UIInteractions . triggerEventHandlerKeyDown ( 'arrowup' , childGridContent , false , false , true ) ;
283282 fixture . detectChanges ( ) ;
284- await wait ( DEBOUNCE_TIME ) ;
283+ await wait ( 200 ) ;
285284 fixture . detectChanges ( ) ;
286285 const childFirstRowCell = childGrid . dataRowList . toArray ( ) [ 0 ] . cells . toArray ( ) [ 0 ] ;
287286 const selectedCell = fixture . componentInstance . selectedCell ;
0 commit comments