File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
projects/igniteui-angular/src/lib/grids/grid Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1674,7 +1674,7 @@ describe('IgxGrid - Row Selection #grid', () => {
16741674 expect ( grid . onRowSelectionChange . emit ) . toHaveBeenCalledTimes ( 6 ) ;
16751675 } ) ) ;
16761676
1677- it ( 'Should select only filtered records' , async ( ) => {
1677+ it ( 'Should select only filtered records' , fakeAsync ( ( ) => {
16781678 grid . height = '1100px' ;
16791679 const tree = new FilteringExpressionsTree ( FilteringLogic . And ) ;
16801680 tree . filteringOperands . push ( {
@@ -1691,20 +1691,20 @@ describe('IgxGrid - Row Selection #grid', () => {
16911691 grid . advancedFilteringExpressionsTree = tree ;
16921692 GridSelectionFunctions . headerCheckboxClick ( grid ) ;
16931693 fix . detectChanges ( ) ;
1694- await wait ( ) ;
1694+ tick ( ) ;
16951695
16961696 expect ( grid . rowList . length ) . toBe ( 9 ) ;
16971697 expect ( grid . selectedRows ( ) . length ) . toBe ( 9 ) ;
16981698 GridSelectionFunctions . verifyHeaderRowCheckboxState ( grid , true , false ) ;
16991699
17001700 grid . advancedFilteringExpressionsTree = null ;
17011701 fix . detectChanges ( ) ;
1702- await wait ( ) ;
1702+ tick ( ) ;
17031703
17041704 expect ( grid . rowList . length ) . toBe ( 19 ) ;
17051705 expect ( grid . selectedRows ( ) . length ) . toBe ( 9 ) ;
17061706 GridSelectionFunctions . verifyHeaderRowCheckboxState ( grid , false , true ) ;
1707- } ) ;
1707+ } ) ) ;
17081708 } ) ;
17091709
17101710 describe ( 'Integration with CRUD and transactions' , ( ) => {
You can’t perform that action at this time.
0 commit comments