Skip to content

Commit 4351a92

Browse files
committed
chore(*): add DEBOUNCETIME to the treeGrid navigation tests
1 parent 41a6c5b commit 4351a92

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid-keyBoardNav.spec.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,10 @@ describe('IgxTreeGrid - Key Board Navigation #tGrid', () => {
539539
for (let i = 0; i < treeColumns.length - 1; i++) {
540540
let cell = treeGrid.getCellByColumn(3, treeColumns[i]);
541541
GridFunctions.simulateCellKeydown(cell, 'ArrowRight');
542-
await wait();
542+
await wait(DEBOUNCETIME);
543543
zone.simulateOnStable();
544544
fix.detectChanges();
545-
await wait();
545+
await wait(DEBOUNCETIME);
546546
zone.simulateOnStable();
547547
fix.detectChanges();
548548
TreeGridFunctions.verifyTreeGridCellSelected(treeGrid, cell, false);
@@ -562,10 +562,10 @@ describe('IgxTreeGrid - Key Board Navigation #tGrid', () => {
562562
for (let i = treeColumns.length - 1; i > 0; i--) {
563563
let cell = treeGrid.getCellByColumn(3, treeColumns[i]);
564564
GridFunctions.simulateCellKeydown(cell, 'ArrowLeft');
565-
await wait();
565+
await wait(DEBOUNCETIME);
566566
zone.simulateOnStable();
567567
fix.detectChanges();
568-
await wait();
568+
await wait(DEBOUNCETIME);
569569
zone.simulateOnStable();
570570
fix.detectChanges();
571571
TreeGridFunctions.verifyTreeGridCellSelected(treeGrid, cell, false);
@@ -640,7 +640,7 @@ describe('IgxTreeGrid - Key Board Navigation #tGrid', () => {
640640
expect(treeGrid.onSelection.emit).toHaveBeenCalledTimes(2);
641641

642642
GridFunctions.simulateCellKeydown(cell, 'ArrowLeft', false, false, true);
643-
await wait();
643+
await wait(DEBOUNCETIME);
644644
zone.simulateOnStable();
645645
fix.detectChanges();
646646

@@ -650,7 +650,7 @@ describe('IgxTreeGrid - Key Board Navigation #tGrid', () => {
650650
expect(treeGrid.onSelection.emit).toHaveBeenCalledTimes(3);
651651

652652
GridFunctions.simulateCellKeydown(cell, 'ArrowRight', false, false, true);
653-
await wait();
653+
await wait(DEBOUNCETIME);
654654
zone.simulateOnStable();
655655
fix.detectChanges();
656656

@@ -706,10 +706,10 @@ describe('IgxTreeGrid - Key Board Navigation #tGrid', () => {
706706
for (let i = 2; i < treeColumns.length - 1; i++) {
707707
let cell = treeGrid.getCellByColumn(5, treeColumns[i]);
708708
GridFunctions.simulateCellKeydown(cell, 'Tab');
709-
await wait();
709+
await wait(DEBOUNCETIME);
710710
zone.simulateOnStable();
711711
fix.detectChanges();
712-
await wait();
712+
await wait(DEBOUNCETIME);
713713
zone.simulateOnStable();
714714
fix.detectChanges();
715715
TreeGridFunctions.verifyTreeGridCellSelected(treeGrid, cell, false);
@@ -732,10 +732,10 @@ describe('IgxTreeGrid - Key Board Navigation #tGrid', () => {
732732
for (let i = 0; i < treeColumns.length - 1; i++) {
733733
let cell = treeGrid.getCellByColumn(6, treeColumns[i]);
734734
GridFunctions.simulateCellKeydown(cell, 'Tab');
735-
await wait();
735+
await wait(DEBOUNCETIME);
736736
zone.simulateOnStable();
737737
fix.detectChanges();
738-
await wait();
738+
await wait(DEBOUNCETIME);
739739
zone.simulateOnStable();
740740
fix.detectChanges();
741741
TreeGridFunctions.verifyTreeGridCellSelected(treeGrid, cell, false);
@@ -785,10 +785,10 @@ describe('IgxTreeGrid - Key Board Navigation #tGrid', () => {
785785
for (let i = 4; i > 0; i--) {
786786
cell = treeGrid.getCellByColumn(3, treeColumns[i]);
787787
GridFunctions.simulateCellKeydown(cell, 'Tab', false, true);
788-
await wait();
788+
await wait(DEBOUNCETIME);
789789
zone.simulateOnStable();
790790
fix.detectChanges();
791-
await wait();
791+
await wait(DEBOUNCETIME);
792792
zone.simulateOnStable();
793793
fix.detectChanges();
794794
cell = treeGrid.getCellByColumn(3, treeColumns[i - 1]);

0 commit comments

Comments
 (0)