Skip to content

Commit 89c89b3

Browse files
committed
chore(*): update fialing test
1 parent e317ced commit 89c89b3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3275,11 +3275,12 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
32753275

32763276
it('Should not throw error when deleting the last chip', (async () => {
32773277
grid.width = '700px';
3278-
fix.detectChanges();
32793278
await wait(16);
3279+
fix.detectChanges();
32803280

32813281
GridFunctions.clickFilterCellChip(fix, 'ProductName');
32823282
fix.detectChanges();
3283+
await wait(16);
32833284

32843285
// Add first chip.
32853286
GridFunctions.typeValueInFilterRowInput('a', fix);
@@ -3317,23 +3318,25 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
33173318
try {
33183319
GridFunctions.removeFilterChipByIndex(3, filterUIRow);
33193320
fix.detectChanges();
3320-
await wait(300);
3321+
await wait(400);
33213322
} catch (ex) {
33223323
expect(ex).toBeNull('Error deleting the last chip');
33233324
}
3324-
3325+
fix.detectChanges();
3326+
await wait(100);
33253327
verifyMultipleChipsVisibility(fix, [false, true, false]);
33263328
chips = filterUIRow.queryAll(By.directive(IgxChipComponent));
33273329
expect(chips.length).toBe(3);
33283330

33293331
try {
33303332
GridFunctions.removeFilterChipByIndex(2, filterUIRow);
33313333
fix.detectChanges();
3332-
await wait(300);
3334+
await wait(400);
33333335
} catch (ex) {
33343336
expect(ex).toBeNull('Error deleting the last chip');
33353337
}
3336-
3338+
fix.detectChanges();
3339+
await wait(100);
33373340
verifyMultipleChipsVisibility(fix, [true, false]);
33383341
chips = filterUIRow.queryAll(By.directive(IgxChipComponent));
33393342
expect(chips.length).toBe(2);

0 commit comments

Comments
 (0)