@@ -161,16 +161,19 @@ describe('Basic IgxPivotGrid #pivotGrid', () => {
161161 pivotGrid . notifyDimensionChange ( true ) ;
162162 fixture . detectChanges ( ) ;
163163 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 ] ;
167167 expander . click ( ) ;
168168 fixture . detectChanges ( ) ;
169169 expect ( pivotGrid . columnGroupStates . size ) . toBe ( 1 ) ;
170170 let value = pivotGrid . columnGroupStates . entries ( ) . next ( ) . value ;
171171 expect ( value [ 0 ] ) . toEqual ( 'All Countries' ) ;
172172 expect ( value [ 1 ] ) . toBeTrue ( ) ;
173173
174+ headerRow = fixture . nativeElement . querySelector ( 'igx-pivot-header-row' ) ;
175+ header = headerRow . querySelector ( 'igx-grid-header-group' ) ;
176+ expander = header . querySelectorAll ( 'igx-icon' ) [ 0 ] ;
174177 expander . click ( ) ;
175178 fixture . detectChanges ( ) ;
176179 value = pivotGrid . columnGroupStates . entries ( ) . next ( ) . value ;
@@ -867,6 +870,8 @@ describe('IgxPivotGrid complex hierarchy #pivotGrid', () => {
867870 it ( 'should select/deselect the correct column group' , ( ) => {
868871 fixture . detectChanges ( ) ;
869872 const pivotGrid = fixture . componentInstance . pivotGrid ;
873+ pivotGrid . width = '1500px' ;
874+ fixture . detectChanges ( ) ;
870875 const group = GridFunctions . getColGroup ( pivotGrid , 'Bulgaria' ) ;
871876 const unitsSold = pivotGrid . getColumnByName ( 'Bulgaria-UnitsSold' ) ;
872877 const amountOfSale = pivotGrid . getColumnByName ( 'Bulgaria-AmountOfSale' ) ;
0 commit comments