@@ -44,7 +44,7 @@ describe('IgxPivotGrid - Keyboard navigation #pivotGrid', () => {
4444 let activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
4545 expect ( activeCells . length ) . toBe ( 1 ) ;
4646
47- UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowRight' , pivotGrid . theadRow . nativeElement ) ;
47+ UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowRight' , firstCell . nativeElement ) ;
4848 fixture . detectChanges ( ) ;
4949 GridFunctions . verifyHeaderIsFocused ( secondCell . parent ) ;
5050 activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
@@ -57,7 +57,7 @@ describe('IgxPivotGrid - Keyboard navigation #pivotGrid', () => {
5757 UIInteractions . simulateClickAndSelectEvent ( firstCell ) ;
5858 fixture . detectChanges ( ) ;
5959
60- UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowLeft' , pivotGrid . theadRow . nativeElement ) ;
60+ UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowLeft' , firstCell . nativeElement ) ;
6161 fixture . detectChanges ( ) ;
6262
6363 GridFunctions . verifyHeaderIsFocused ( firstCell . parent ) ;
@@ -67,7 +67,7 @@ describe('IgxPivotGrid - Keyboard navigation #pivotGrid', () => {
6767 UIInteractions . simulateClickAndSelectEvent ( thirdCell ) ;
6868 fixture . detectChanges ( ) ;
6969
70- UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowRight' , pivotGrid . theadRow . nativeElement ) ;
70+ UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowRight' , thirdCell . nativeElement ) ;
7171 fixture . detectChanges ( ) ;
7272
7373 GridFunctions . verifyHeaderIsFocused ( thirdCell . parent ) ;
@@ -81,13 +81,13 @@ describe('IgxPivotGrid - Keyboard navigation #pivotGrid', () => {
8181 UIInteractions . simulateClickAndSelectEvent ( firstCell ) ;
8282 fixture . detectChanges ( ) ;
8383
84- UIInteractions . triggerKeyDownEvtUponElem ( 'End' , pivotGrid . theadRow . nativeElement ) ;
84+ UIInteractions . triggerKeyDownEvtUponElem ( 'End' , firstCell . nativeElement ) ;
8585 fixture . detectChanges ( ) ;
8686 GridFunctions . verifyHeaderIsFocused ( thirdCell . parent ) ;
8787 let activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
8888 expect ( activeCells . length ) . toBe ( 1 ) ;
8989
90- UIInteractions . triggerKeyDownEvtUponElem ( 'Home' , pivotGrid . theadRow . nativeElement ) ;
90+ UIInteractions . triggerKeyDownEvtUponElem ( 'Home' , thirdCell . nativeElement ) ;
9191 fixture . detectChanges ( ) ;
9292 GridFunctions . verifyHeaderIsFocused ( firstCell . parent ) ;
9393 activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
@@ -100,7 +100,7 @@ describe('IgxPivotGrid - Keyboard navigation #pivotGrid', () => {
100100 UIInteractions . simulateClickAndSelectEvent ( thirdCell ) ;
101101 fixture . detectChanges ( ) ;
102102
103- UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowDown' , pivotGrid . theadRow . nativeElement , true , false , false , true ) ;
103+ UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowDown' , thirdCell . nativeElement , true , false , false , true ) ;
104104 fixture . detectChanges ( ) ;
105105
106106 const allCells = fixture . debugElement . queryAll (
0 commit comments