Skip to content

Commit ebc03ff

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fix test timing.
1 parent 2efbff3 commit ebc03ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,7 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
26002600
}));
26012601

26022602
it('should position filter row and chips correctly when grid has column groups and one is hidden.',
2603-
fakeAsync(() => {
2603+
(async() => {
26042604
const filteringExpressionsTree = new FilteringExpressionsTree(FilteringLogic.And, 'ProductName');
26052605
const expression = {
26062606
fieldName: 'ProductName',
@@ -2622,7 +2622,8 @@ describe('IgxGrid - Filtering Row UI actions #grid', () => {
26222622

26232623
GridFunctions.clickFilterCellChip(fix, 'AnotherField');
26242624
fix.detectChanges();
2625-
2625+
await wait(30);
2626+
fix.detectChanges();
26262627
// check if it is positioned at the bottom of the thead.
26272628
const theadWrapper = grid.theadRow.nativeElement.firstElementChild;
26282629
const filteringRow = fix.debugElement.query(By.directive(IgxGridFilteringRowComponent));
@@ -5450,7 +5451,7 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
54505451
fix.detectChanges();
54515452
expect(listItems[0].classList.contains("igx-list__item-base--active")).toBeFalse();
54525453
expect(listItems[1].classList.contains("igx-list__item-base--active")).toBeTrue();
5453-
5454+
54545455
// on arrow up the first item should be active again
54555456
UIInteractions.triggerKeyDownEvtUponElem('arrowup', list, true);
54565457
fix.detectChanges();

0 commit comments

Comments
 (0)