@@ -663,7 +663,7 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
663663 it ( 'should toggle expand/collapse state of group row with ArrowRight/ArrowLeft key.' , ( ) => {
664664 const gRow = grid . groupsRowList . toArray ( ) [ 0 ] ;
665665 const gRowElement = GridFunctions . getGroupedRows ( fix ) [ 0 ] ;
666- gRowElement . triggerEventHandler ( 'click ' , { } ) ;
666+ gRowElement . triggerEventHandler ( 'pointerdown ' , { } ) ;
667667 fix . detectChanges ( ) ;
668668 expect ( gRow . expanded ) . toBe ( true ) ;
669669
@@ -680,7 +680,7 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
680680 it ( 'should toggle expand/collapse state of group row with ArrowUp/ArrowDown key.' , ( ) => {
681681 const gRow = grid . groupsRowList . toArray ( ) [ 0 ] ;
682682 const gRowElement = GridFunctions . getGroupedRows ( fix ) [ 0 ] ;
683- gRowElement . triggerEventHandler ( 'click ' , { } ) ;
683+ gRowElement . triggerEventHandler ( 'pointerdown ' , { } ) ;
684684 fix . detectChanges ( ) ;
685685
686686 expect ( gRow . expanded ) . toBe ( true ) ;
@@ -704,7 +704,7 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
704704 let groupedRowsCount = grid . groupsRowList . length ;
705705 let groupRow = grid . groupsRowList . toArray ( ) [ groupedRowsCount - 1 ] ;
706706 const groupRowElement = GridFunctions . getGroupedRows ( fix ) [ groupedRowsCount - 1 ] ;
707- groupRowElement . triggerEventHandler ( 'click ' , null ) ;
707+ groupRowElement . triggerEventHandler ( 'pointerdown ' , null ) ;
708708 fix . detectChanges ( ) ;
709709
710710 GridFunctions . verifyGroupRowIsFocused ( groupRow ) ;
@@ -737,7 +737,7 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
737737 expect ( grid . groupsRowList . last . expanded ) . toBeTruthy ( ) ;
738738
739739 const groupRowIndex = grid . groupsRowList . last . index ;
740- grid . groupsRowList . last . nativeElement . dispatchEvent ( new Event ( 'click ' ) ) ;
740+ grid . groupsRowList . last . nativeElement . dispatchEvent ( new Event ( 'pointerdown ' ) ) ;
741741 await wait ( ) ;
742742 fix . detectChanges ( ) ;
743743 UIInteractions . triggerEventHandlerKeyDown ( 'arrowDown' , gridContent ) ;
@@ -762,7 +762,7 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
762762 fix . detectChanges ( ) ;
763763
764764 let row = grid . getRowByIndex ( 1 ) ;
765- row . nativeElement . dispatchEvent ( new Event ( 'click ' ) ) ;
765+ row . nativeElement . dispatchEvent ( new Event ( 'pointerdown ' ) ) ;
766766 await wait ( ) ;
767767 fix . detectChanges ( ) ;
768768
@@ -916,7 +916,7 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
916916 await wait ( DEBOUNCETIME ) ;
917917 fix . detectChanges ( ) ;
918918
919- grid . navigateTo ( 9 , - 1 , ( args ) => { args . target . nativeElement . click ( ) ; } ) ;
919+ grid . navigateTo ( 9 , - 1 , ( args ) => { args . target . nativeElement . dispatchEvent ( new Event ( 'pointerdown' ) ) ; } ) ;
920920 await wait ( 100 ) ;
921921 fix . detectChanges ( ) ;
922922 await wait ( 100 ) ;
0 commit comments