From 1acd378a35e7da066f0b9e9aac441871ed82d44a Mon Sep 17 00:00:00 2001 From: RivaIvanova Date: Mon, 3 Apr 2023 12:01:30 +0300 Subject: [PATCH] test(filtering): set correct expected result for selected unary condition test --- .../src/lib/grids/grid/grid-filtering-ui.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts b/projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts index f521cd602f7..f2f958aa91d 100644 --- a/projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts +++ b/projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts @@ -2117,12 +2117,13 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => { expect(grid.rowList.length).toEqual(1); // This Month condition + const expectedResults = GridFunctions.createDateFilterConditions(grid, today); GridFunctions.openFilterDDAndSelectCondition(fix, 6); tick(); fix.detectChanges(); expect(grid.filteringRow.expression.condition.name).toEqual('thisMonth'); - expect(grid.rowList.length).toEqual(3); + expect(grid.rowList.length).toEqual(expectedResults[5]); const conditionChips = filterUIRow.queryAll(By.directive(IgxChipComponent)); expect(conditionChips.length).toBe(1);