Skip to content

Commit 2e4c617

Browse files
authored
Merge pull request #7080 from IgniteUI/nrobakova/update-failing-fu-test
Update failing filtering test
2 parents 5cc772c + d2e6f40 commit 2e4c617

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,9 +1443,9 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
14431443
expect(filteringRow.queryAll(By.css('igx-chip')).length).toEqual(2);
14441444
}));
14451445

1446-
it('Verify filter cell chip is scrolled into view on click.', fakeAsync(() => {
1446+
it('Verify filter cell chip is scrolled into view on click.', async () => {
14471447
grid.width = '470px';
1448-
tick(100);
1448+
await wait(DEBOUNCETIME);
14491449
fix.detectChanges();
14501450

14511451
// Verify 'ReleaseDate' filter chip is not fully visible.
@@ -1455,18 +1455,21 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
14551455
expect(chipRect.right > gridRect.right).toBe(true,
14561456
'chip should not be fully visible and thus not within grid');
14571457

1458-
GridFunctions.clickFilterCellChip(fix, 'ReleaseDate');
1458+
GridFunctions.clickFilterCellChipUI(fix, 'ReleaseDate');
1459+
await wait(DEBOUNCETIME);
1460+
fix.detectChanges();
14591461

1460-
GridFunctions.closeFilterRow(fix);
1461-
tick(100);
1462+
grid.filteringRow.close();
1463+
await wait();
1464+
fix.detectChanges();
14621465

14631466
// Verify 'ReleaseDate' filter chip is fully visible.
14641467
chip = GridFunctions.getFilterChipsForColumn('ReleaseDate', fix)[0].nativeElement;
14651468
chipRect = chip.getBoundingClientRect();
14661469
gridRect = grid.nativeElement.getBoundingClientRect();
14671470
expect(chipRect.left > gridRect.left && chipRect.right < gridRect.right).toBe(true,
14681471
'chip should be fully visible and within grid');
1469-
}));
1472+
});
14701473

14711474
it('Verify condition chips are scrolled into/(out of) view by using arrow buttons.', (async () => {
14721475
grid.width = '700px';

0 commit comments

Comments
 (0)