Skip to content

Commit 7a17267

Browse files
authored
Merge pull request #7444 from IgniteUI/nrobakova/fix-failing-filter-tests
Fix failing filter tests
2 parents ae3cebd + 2b00a6d commit 7a17267

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4280,7 +4280,10 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
42804280
fix.detectChanges();
42814281

42824282
listItems = GridFunctions.getExcelStyleSearchComponentListItems(fix, searchComponent);
4283-
expect(listItems.length).toBe(4, 'incorrect rendered list items count');
4283+
expect(listItems.length).toBeGreaterThan(1);
4284+
for (let i = 1; i < listItems.length; i++) {
4285+
expect(listItems[i].textContent.toString().indexOf(todayDate) > -1).toBeTruthy();
4286+
}
42844287

42854288
UIInteractions.clickAndSendInputElementValue(inputNativeElement, dayOfWeek, fix);
42864289
tick(100);

projects/igniteui-angular/src/lib/grids/grid/grid-keyBoardNav-headers.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ describe('IgxGrid - Headers Keyboard navigation #grid', () => {
6060

6161
it('should focus first header when the grid is scrolled', async () => {
6262
grid.navigateTo(7, 5);
63-
await wait(100);
63+
await wait(150);
6464
fix.detectChanges();
6565

6666
gridHeader.triggerEventHandler('focus', {});
67-
await wait(200);
67+
await wait(250);
6868
fix.detectChanges();
6969

7070
const header = GridFunctions.getColumnHeader('ID', fix);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
421421
fix.detectChanges();
422422

423423
UIInteractions.triggerKeyDownEvtUponElem('home', cell.nativeElement, true, false, false, true);
424-
await wait(100);
424+
await wait(150);
425425
fix.detectChanges();
426426

427427
cell = grid.getCellByColumn(0, '0');
@@ -434,7 +434,7 @@ describe('IgxGrid - Keyboard navigation #grid', () => {
434434
fix.detectChanges();
435435

436436
UIInteractions.triggerKeyDownEvtUponElem('end', cell.nativeElement, true, false, false, true);
437-
await wait(150);
437+
await wait(200);
438438
fix.detectChanges();
439439

440440
cell = grid.getCellByColumn(499, '49');

0 commit comments

Comments
 (0)