@@ -161,16 +161,19 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
161
161
pivotGrid . notifyDimensionChange ( true ) ;
162
162
fixture . detectChanges ( ) ;
163
163
expect ( pivotGrid . columnGroupStates . size ) . toBe ( 0 ) ;
164
- const headerRow = fixture . nativeElement . querySelector ( 'igx-pivot-header-row' ) ;
165
- const header = headerRow . querySelector ( 'igx-grid-header-group' ) ;
166
- const expander = header . querySelectorAll ( 'igx-icon' ) [ 0 ] ;
164
+ let headerRow = fixture . nativeElement . querySelector ( 'igx-pivot-header-row' ) ;
165
+ let header = headerRow . querySelector ( 'igx-grid-header-group' ) ;
166
+ let expander = header . querySelectorAll ( 'igx-icon' ) [ 0 ] ;
167
167
expander . click ( ) ;
168
168
fixture . detectChanges ( ) ;
169
169
expect ( pivotGrid . columnGroupStates . size ) . toBe ( 1 ) ;
170
170
let value = pivotGrid . columnGroupStates . entries ( ) . next ( ) . value ;
171
171
expect ( value [ 0 ] ) . toEqual ( 'All Countries' ) ;
172
172
expect ( value [ 1 ] ) . toBeTrue ( ) ;
173
173
174
+ headerRow = fixture . nativeElement . querySelector ( 'igx-pivot-header-row' ) ;
175
+ header = headerRow . querySelector ( 'igx-grid-header-group' ) ;
176
+ expander = header . querySelectorAll ( 'igx-icon' ) [ 0 ] ;
174
177
expander . click ( ) ;
175
178
fixture . detectChanges ( ) ;
176
179
value = pivotGrid . columnGroupStates . entries ( ) . next ( ) . value ;
@@ -867,6 +870,8 @@ describe('IgxPivotGrid complex hierarchy #pivotGrid', () => {
867
870
it ( 'should select/deselect the correct column group' , ( ) => {
868
871
fixture . detectChanges ( ) ;
869
872
const pivotGrid = fixture . componentInstance . pivotGrid ;
873
+ pivotGrid . width = '1500px' ;
874
+ fixture . detectChanges ( ) ;
870
875
const group = GridFunctions . getColGroup ( pivotGrid , 'Bulgaria' ) ;
871
876
const unitsSold = pivotGrid . getColumnByName ( 'Bulgaria-UnitsSold' ) ;
872
877
const amountOfSale = pivotGrid . getColumnByName ( 'Bulgaria-AmountOfSale' ) ;
0 commit comments