Skip to content

Commit 1504f28

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fix test timimg.
1 parent a7ea9b4 commit 1504f28

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.selection.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -560,14 +560,15 @@ describe('IgxHierarchicalGrid selection #hGrid', () => {
560560
GridSelectionFunctions.verifyRowsArraySelected(childGrid.dataRowList.toArray());
561561
});
562562

563-
it('should not be able to select deleted row', fakeAsync(() => {
563+
it('should not be able to select deleted row', (async() => {
564564
// Expand first row
565565
const firstRow = hierarchicalGrid.getRowByIndex(0) as IgxHierarchicalRowComponent;
566566
firstRow.toggle();
567+
await wait(30);
567568
fix.detectChanges();
568569

569570
firstRow.onClick(UIInteractions.getMouseEvent('click'));
570-
tick();
571+
await wait();
571572
fix.detectChanges();
572573

573574
GridSelectionFunctions.verifyRowSelected(firstRow);
@@ -583,7 +584,7 @@ describe('IgxHierarchicalGrid selection #hGrid', () => {
583584

584585
// Click on deleted row
585586
firstRow.onClick(UIInteractions.getMouseEvent('click'));
586-
tick();
587+
await wait();
587588
fix.detectChanges();
588589

589590
GridSelectionFunctions.verifyRowSelected(firstRow, false);
@@ -612,7 +613,7 @@ describe('IgxHierarchicalGrid selection #hGrid', () => {
612613

613614
const childGridFirstRow = childGrid.getRowByIndex(0);
614615
childGridFirstRow.onClick(UIInteractions.getMouseEvent('click', false, false, true));
615-
tick();
616+
await wait();
616617
fix.detectChanges();
617618

618619
GridSelectionFunctions.verifyRowSelected(firstRow, false);

0 commit comments

Comments
 (0)