@@ -2,7 +2,7 @@ import { TestBed, fakeAsync, tick, waitForAsync, ComponentFixture } from '@angul
22import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
33import { IgxGridComponent } from './grid.component' ;
44import { wait , UIInteractions } from '../../test-utils/ui-interactions.spec' ;
5- import { IgxStringFilteringOperand , IgxNumberFilteringOperand } from '../../data-operations/filtering-condition' ;
5+ import { IgxStringFilteringOperand , IgxNumberFilteringOperand , IgxBooleanFilteringOperand } from '../../data-operations/filtering-condition' ;
66import { configureTestSuite } from '../../test-utils/configure-suite' ;
77import {
88 RowSelectionComponent ,
@@ -2139,6 +2139,27 @@ describe('IgxGrid - Row Selection #grid', () => {
21392139 GridSelectionFunctions . verifyHeaderRowCheckboxState ( fix , true , false ) ;
21402140 expect ( grid . selectedRows . length ) . toBe ( grid . data . length ) ;
21412141 } ) ;
2142+
2143+ it ( 'Should deselect updated row with header checkbox when batchEditing is enbaled and filtering is applied' , ( ) => {
2144+ grid . batchEditing = true ;
2145+ grid . selectRows ( [ 1 ] ) ;
2146+ grid . filter ( 'InStock' , null , IgxBooleanFilteringOperand . instance ( ) . condition ( 'true' ) ) ;
2147+ fix . detectChanges ( ) ;
2148+
2149+ const row = grid . gridAPI . get_row_by_index ( 0 ) ;
2150+ GridSelectionFunctions . verifyRowSelected ( row ) ;
2151+
2152+ grid . updateRow ( { ProductID : 1 , ProductName : 'test' , InStock : true , UnitsInStock : 1 , OrderDate : new Date ( '2019-03-01' ) } , 1 ) ;
2153+ fix . detectChanges ( ) ;
2154+
2155+ GridSelectionFunctions . clickHeaderRowCheckbox ( fix ) ;
2156+ fix . detectChanges ( ) ;
2157+ GridSelectionFunctions . verifyRowSelected ( row ) ;
2158+
2159+ GridSelectionFunctions . clickHeaderRowCheckbox ( fix ) ;
2160+ fix . detectChanges ( ) ;
2161+ GridSelectionFunctions . verifyRowSelected ( row , false ) ;
2162+ } ) ;
21422163 } ) ;
21432164
21442165 describe ( 'Integration with CRUD and transactions' , ( ) => {
0 commit comments