@@ -151,24 +151,28 @@ describe('IgxHierarchicalGrid Basic Navigation #hGrid', () => {
151
151
} ) ) ;
152
152
153
153
it ( 'should allow navigating to start in child grid when child grid target row moves outside the parent view port.' , ( async ( ) => {
154
+ pending ( 'related to the bug #7091' ) ;
154
155
hierarchicalGrid . verticalScrollContainer . scrollTo ( 2 ) ;
155
156
await wait ( DEBOUNCE_TIME ) ;
156
157
fixture . detectChanges ( ) ;
157
158
158
159
const childGrid = hierarchicalGrid . hgridAPI . getChildGrids ( false ) [ 0 ] ;
159
160
const horizontalScrDir = childGrid . dataRowList . toArray ( ) [ 0 ] . virtDirRow ;
160
161
horizontalScrDir . scrollTo ( 6 ) ;
161
- await wait ( 100 ) ;
162
+ fixture . detectChanges ( ) ;
163
+ await wait ( DEBOUNCE_TIME ) ;
162
164
fixture . detectChanges ( ) ;
163
165
const childLastCell = childGrid . dataRowList . toArray ( ) [ 9 ] . cells . toArray ( ) [ 3 ] ;
164
- UIInteractions . simulateClickAndSelectCellEvent ( childLastCell ) ;
166
+ GridFunctions . focusCell ( fixture , childLastCell ) ;
165
167
await wait ( DEBOUNCE_TIME ) ;
166
168
fixture . detectChanges ( ) ;
167
169
168
170
const childGridContent = fixture . debugElement . queryAll ( By . css ( GRID_CONTENT_CLASS ) ) [ 1 ] ;
169
171
UIInteractions . triggerEventHandlerKeyDown ( 'home' , childGridContent , false , false , true ) ;
170
- await wait ( 200 ) ;
171
172
fixture . detectChanges ( ) ;
173
+ await wait ( DEBOUNCE_TIME ) ;
174
+ fixture . detectChanges ( ) ;
175
+ await wait ( DEBOUNCE_TIME ) ;
172
176
173
177
const selectedCell = fixture . componentInstance . selectedCell ;
174
178
expect ( selectedCell . value ) . toEqual ( 0 ) ;
@@ -269,6 +273,7 @@ describe('IgxHierarchicalGrid Basic Navigation #hGrid', () => {
269
273
270
274
it ( 'should scroll top of child grid into view when pressing Ctrl + Arrow Up when cell is selected in it.' , ( async ( ) => {
271
275
hierarchicalGrid . verticalScrollContainer . scrollTo ( 7 ) ;
276
+ fixture . detectChanges ( ) ;
272
277
await wait ( DEBOUNCE_TIME ) ;
273
278
fixture . detectChanges ( ) ;
274
279
0 commit comments