Skip to content

Commit f361b41

Browse files
MKirovaMKirova
MKirova
authored and
MKirova
committed
chore(*): Attempt to fix test.
1 parent ff71753 commit f361b41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/igniteui-angular/src/lib/grids/grid/row-pinning.spec.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { IPinningConfig } from '../common/grid.interface';
1010
import { SampleTestData } from '../../test-utils/sample-test-data.spec';
1111
import { IgxGridTransaction } from '../tree-grid';
1212
import { IgxTransactionService } from '../../services';
13+
import { wait } from '../../test-utils/ui-interactions.spec';
1314

1415
describe('Row Pinning #grid', () => {
1516
const FIXED_ROW_CONTAINER = '.igx-grid__tr--pinned ';
@@ -231,7 +232,7 @@ describe('Row Pinning #grid', () => {
231232
fix.detectChanges();
232233
}));
233234

234-
it('should allow pinning edited/deleted/added row.', () => {
235+
it('should allow pinning edited/deleted/added row.', async() => {
235236
// test with added row
236237
grid.addRow({ 'ID': 'Test', 'CompanyName': 'Test'});
237238
fix.detectChanges();
@@ -262,6 +263,8 @@ describe('Row Pinning #grid', () => {
262263
fix.detectChanges();
263264
grid.pinRow('ANTON');
264265
fix.detectChanges();
266+
await wait(100);
267+
fix.detectChanges();
265268

266269
expect(grid.pinnedRows.length).toBe(3);
267270
pinRowContainer = fix.debugElement.queryAll(By.css(FIXED_ROW_CONTAINER));

0 commit comments

Comments
 (0)