Skip to content

Commit 19045a4

Browse files
test(advance-filtering): remove grid resize and setTimeout usage
1 parent 9d8119d commit 19045a4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,10 +2056,6 @@ describe('IgxGrid - Advanced Filtering #grid - ', () => {
20562056
grid = fixture.componentInstance.grid;
20572057
fixture.detectChanges();
20582058

2059-
grid.height = '800px';
2060-
fixture.detectChanges();
2061-
tick(50);
2062-
20632059
expect(grid.filteredData).toBeNull();
20642060
expect(grid.rowList.length).toBe(8);
20652061
expect(GridFunctions.getCurrentCellFromGrid(grid, 0, 1).value).toBe('Ignite UI for JavaScript');
@@ -2107,11 +2103,9 @@ describe('IgxGrid - Advanced Filtering #grid - ', () => {
21072103
flush();
21082104

21092105
// Change the grid's data collection
2110-
setTimeout(() => {
2111-
grid.data = SampleTestData.contactInfoDataFull();
2112-
fixture.detectChanges();
2113-
flush();
2114-
});
2106+
grid.data = SampleTestData.contactInfoDataFull();
2107+
fixture.detectChanges();
2108+
flush();
21152109

21162110
// Spy for error messages in the console
21172111
const consoleSpy = spyOn(console, 'error');

0 commit comments

Comments
 (0)