Skip to content

Commit ae8bd25

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fix minor timing issues in tests.
1 parent 8d51204 commit ae8bd25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,8 @@ describe('IgxGrid - Row Editing #grid', () => {
617617
// let cellDebug;
618618
UIInteractions.simulateDoubleClickAndSelectEvent(cellElem);
619619
fix.detectChanges();
620+
await wait(DEBOUNCETIME);
621+
fix.detectChanges();
620622

621623
UIInteractions.triggerEventHandlerKeyDown('tab', gridContent, false, true);
622624
await wait(DEBOUNCETIME);
@@ -977,11 +979,11 @@ describe('IgxGrid - Row Editing #grid', () => {
977979
fix.detectChanges();
978980

979981
const keyDonwSpy = spyOn(grid.gridKeydown, 'emit');
980-
const detectChangesSpy = spyOn(grid.cdr, 'detectChanges').and.callThrough();
981982

982983
UIInteractions.simulateDoubleClickAndSelectEvent(targetCell);
983984
fix.detectChanges();
984985

986+
const detectChangesSpy = spyOn(grid.cdr, 'detectChanges').and.callThrough();
985987
const cellElem = fix.debugElement.query(By.css(CELL_CLASS));
986988
const input = cellElem.query(By.css('input'));
987989

0 commit comments

Comments
 (0)