Skip to content

Commit e6b81b8

Browse files
committed
chore(*): rework test so it passes
1 parent 2c89ffa commit e6b81b8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4381,7 +4381,7 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
43814381
it('Should clear search criteria when selecting clear column filters option.', fakeAsync(() => {
43824382
GridFunctions.clickExcelFilterIconFromCode(fix, grid, 'ProductName');
43834383

4384-
let checkboxes: any = Array.from(GridFunctions.getExcelStyleFilteringCheckboxes(fix));
4384+
let checkboxes = GridFunctions.getExcelStyleFilteringCheckboxes(fix);
43854385

43864386
tick(100);
43874387
fix.detectChanges();
@@ -4417,8 +4417,13 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
44174417
inputNativeElement = GridFunctions.getExcelStyleSearchComponentInput(fix);
44184418
expect(inputNativeElement.value).toBe('', 'search criteria is not cleared');
44194419

4420-
checkboxes = Array.from(GridFunctions.getExcelStyleFilteringCheckboxes(fix));
4421-
expect(checkboxes.every(ch => ch.checked)).toBeTrue();
4420+
checkboxes = GridFunctions.getExcelStyleFilteringCheckboxes(fix);
4421+
4422+
const listItemsCheckboxes = checkboxes.slice(1, checkboxes.length);
4423+
4424+
for (const checkbox of listItemsCheckboxes) {
4425+
ControlsFunction.verifyCheckboxState(checkbox.parentElement);
4426+
}
44224427
}));
44234428
});
44244429

0 commit comments

Comments
 (0)