Skip to content

Commit 51dbe7f

Browse files
authored
Merge pull request #16271 from IgniteUI/dpetev/elements-tests-flicker
test(elements): adjust wait timing to address test flicker 😞
2 parents 13132d7 + 0dc0004 commit 51dbe7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular-elements/src/app/custom-strategy.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ describe('Elements: ', () => {
4949
gridEl.appendChild(columnEl);
5050

5151
// TODO: Better way to wait - potentially expose the queue or observable for update on the strategy
52-
await firstValueFrom(timer(10 /* SCHEDULE_DELAY */ * 2));
52+
await firstValueFrom(timer(10 /* SCHEDULE_DELAY */ * 4));
5353

5454
const gridComponent = (await gridEl.ngElementStrategy[ComponentRefKey]).instance as IgxGridComponent;
5555
const columnComponent = (await columnEl.ngElementStrategy[ComponentRefKey]).instance as IgxColumnComponent;
5656
expect(gridComponent.columnList.toArray()).toContain(columnComponent);
5757

5858
columnEl.remove();
59-
await firstValueFrom(timer(10 /* SCHEDULE_DELAY: DESTROY + QUERY */ * 3));
59+
await firstValueFrom(timer(10 /* SCHEDULE_DELAY: DESTROY + QUERY */ * 4));
6060
expect(gridComponent.columnList.toArray()).toEqual([]);
6161
});
6262

0 commit comments

Comments
 (0)