File tree 1 file changed +4
-1
lines changed
projects/igniteui-angular/src/lib/grids/grid
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { IPinningConfig } from '../common/grid.interface';
10
10
import { SampleTestData } from '../../test-utils/sample-test-data.spec' ;
11
11
import { IgxGridTransaction } from '../tree-grid' ;
12
12
import { IgxTransactionService } from '../../services' ;
13
+ import { wait } from '../../test-utils/ui-interactions.spec' ;
13
14
14
15
describe ( 'Row Pinning #grid' , ( ) => {
15
16
const FIXED_ROW_CONTAINER = '.igx-grid__tr--pinned ' ;
@@ -231,7 +232,7 @@ describe('Row Pinning #grid', () => {
231
232
fix . detectChanges ( ) ;
232
233
} ) ) ;
233
234
234
- it ( 'should allow pinning edited/deleted/added row.' , ( ) => {
235
+ it ( 'should allow pinning edited/deleted/added row.' , async ( ) => {
235
236
// test with added row
236
237
grid . addRow ( { 'ID' : 'Test' , 'CompanyName' : 'Test' } ) ;
237
238
fix . detectChanges ( ) ;
@@ -262,6 +263,8 @@ describe('Row Pinning #grid', () => {
262
263
fix . detectChanges ( ) ;
263
264
grid . pinRow ( 'ANTON' ) ;
264
265
fix . detectChanges ( ) ;
266
+ await wait ( 100 ) ;
267
+ fix . detectChanges ( ) ;
265
268
266
269
expect ( grid . pinnedRows . length ) . toBe ( 3 ) ;
267
270
pinRowContainer = fix . debugElement . queryAll ( By . css ( FIXED_ROW_CONTAINER ) ) ;
You can’t perform that action at this time.
0 commit comments