Skip to content

Commit b4c8b5b

Browse files
committed
test(grid filtering): fixing a condition for size
1 parent e02e415 commit b4c8b5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4364,10 +4364,10 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
43644364
// Verify display container height.
43654365
const displayContainer = searchComponent.querySelector('igx-display-container');
43664366
const displayContainerRect = displayContainer.getBoundingClientRect();
4367-
expect(displayContainerRect.height).toBe(240, 'incorrect search display container height');
4367+
expect(displayContainerRect.height > 210 && displayContainerRect.height < 220).toBe(true, 'incorrect search display container height');
43684368
// Verify rendered list items count.
43694369
const listItems = displayContainer.querySelectorAll('igx-list-item');
4370-
expect(listItems.length).toBe(10, 'incorrect rendered list items count');
4370+
expect(listItems.length).toBe(9, 'incorrect rendered list items count');
43714371
}));
43724372

43734373
it('should correctly display all items in search list after filtering it', (async () => {

0 commit comments

Comments
 (0)