@@ -1982,7 +1982,7 @@ describe('IgxPivotGrid #pivotGrid', () => {
1982
1982
expect ( pivotGrid . rowDimensionWidthToPixels ( rowDimension ) ) . toBe ( 158 ) ;
1983
1983
} ) ;
1984
1984
1985
- it ( 'should auto-generate pivot config when autoGenerateConfig is set to true.' , ( ) => {
1985
+ it ( 'should auto-generate pivot config when autoGenerateConfig is set to true.' , ( ) => {
1986
1986
const pivotGrid = fixture . componentInstance . pivotGrid ;
1987
1987
pivotGrid . pivotConfiguration = undefined ;
1988
1988
pivotGrid . data = [ ] ;
@@ -2993,7 +2993,7 @@ describe('IgxPivotGrid #pivotGrid', () => {
2993
2993
expect ( pivotGrid . rowList . toArray ( ) . length ) . toBe ( 1 ) ;
2994
2994
} ) ;
2995
2995
2996
- it ( "should allow navigation in the row layouts." , ( ) => {
2996
+ it ( "should allow navigation in the row layouts." , fakeAsync ( ( ) => {
2997
2997
fixture . detectChanges ( ) ;
2998
2998
const layoutContainer = fixture . debugElement . query (
2999
2999
By . directive ( IgxPivotRowDimensionMrlRowComponent ) ) ;
@@ -3013,59 +3013,69 @@ describe('IgxPivotGrid #pivotGrid', () => {
3013
3013
expect ( activeCells . length ) . toBe ( 1 ) ;
3014
3014
3015
3015
UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowRight' , row0Col0 . nativeElement ) ;
3016
+ tick ( ) ;
3016
3017
fixture . detectChanges ( ) ;
3018
+
3017
3019
GridFunctions . verifyHeaderIsFocused ( row0Col1 . parent ) ;
3018
3020
activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
3019
3021
expect ( activeCells . length ) . toBe ( 1 ) ;
3020
3022
3021
3023
UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowRight' , row0Col1 . nativeElement ) ;
3024
+ tick ( ) ;
3022
3025
fixture . detectChanges ( ) ;
3023
3026
GridFunctions . verifyHeaderIsFocused ( row0Col2 . parent ) ;
3024
3027
activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
3025
3028
expect ( activeCells . length ) . toBe ( 1 ) ;
3026
3029
3027
3030
UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowRight' , row0Col2 . nativeElement ) ;
3031
+ tick ( ) ;
3028
3032
fixture . detectChanges ( ) ;
3029
3033
GridFunctions . verifyHeaderIsFocused ( row0Col3 . parent ) ;
3030
3034
activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
3031
3035
expect ( activeCells . length ) . toBe ( 1 ) ;
3032
3036
3033
3037
UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowDown' , row0Col3 . nativeElement ) ;
3038
+ tick ( ) ;
3034
3039
fixture . detectChanges ( ) ;
3035
3040
GridFunctions . verifyHeaderIsFocused ( row1Col3 . parent ) ;
3036
3041
activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
3037
3042
expect ( activeCells . length ) . toBe ( 1 ) ;
3038
3043
3039
3044
UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowDown' , row1Col3 . nativeElement ) ;
3045
+ tick ( ) ;
3040
3046
fixture . detectChanges ( ) ;
3041
3047
GridFunctions . verifyHeaderIsFocused ( row2Col3 . parent ) ;
3042
3048
activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
3043
3049
expect ( activeCells . length ) . toBe ( 1 ) ;
3044
3050
3045
3051
UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowUp' , row2Col3 . nativeElement ) ;
3052
+ tick ( ) ;
3046
3053
fixture . detectChanges ( ) ;
3047
3054
GridFunctions . verifyHeaderIsFocused ( row1Col3 . parent ) ;
3048
3055
activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
3049
3056
expect ( activeCells . length ) . toBe ( 1 ) ;
3050
3057
3051
3058
UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowLeft' , row1Col3 . nativeElement ) ;
3059
+ tick ( ) ;
3052
3060
fixture . detectChanges ( ) ;
3053
3061
GridFunctions . verifyHeaderIsFocused ( row0Col2 . parent ) ;
3054
3062
activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
3055
3063
expect ( activeCells . length ) . toBe ( 1 ) ;
3056
3064
3057
3065
UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowLeft' , row0Col2 . nativeElement ) ;
3066
+ tick ( ) ;
3058
3067
fixture . detectChanges ( ) ;
3059
3068
GridFunctions . verifyHeaderIsFocused ( row0Col1 . parent ) ;
3060
3069
activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
3061
3070
expect ( activeCells . length ) . toBe ( 1 ) ;
3062
3071
3063
3072
UIInteractions . triggerKeyDownEvtUponElem ( 'ArrowLeft' , row0Col1 . nativeElement ) ;
3073
+ tick ( ) ;
3064
3074
fixture . detectChanges ( ) ;
3065
3075
GridFunctions . verifyHeaderIsFocused ( row0Col0 . parent ) ;
3066
3076
activeCells = fixture . debugElement . queryAll ( By . css ( `${ ACTIVE_CELL_CSS_CLASS } ` ) ) ;
3067
3077
expect ( activeCells . length ) . toBe ( 1 ) ;
3068
- } ) ;
3078
+ } ) ) ;
3069
3079
3070
3080
it ( "should allow resizing the row dimension." , fakeAsync ( ( ) => {
3071
3081
const dimensionContents = fixture . debugElement . queryAll ( By . css ( '.igx-grid__tbody-pivot-dimension' ) ) ;
0 commit comments