Skip to content

Commit 032e9f1

Browse files
committed
test(mrl-keyboard-nav): fix all releated tests
Closes #6747
1 parent c36571d commit 032e9f1

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid-mrl-keyboard-nav.spec.ts

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,23 +1585,17 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
15851585
expect(fix.componentInstance.selectedCell.column.field).toMatch('ContactTitle');
15861586

15871587
GridFunctions.simulateGridContentKeydown(fix, 'ArrowDown', false, false, true);
1588-
await wait(DEBOUNCETIME);
15891588
zone.simulateOnStable();
1590-
fix.detectChanges();
15911589
await wait(DEBOUNCETIME);
1592-
zone.simulateOnStable();
15931590
fix.detectChanges();
15941591

15951592
expect(fix.componentInstance.selectedCell.value)
15961593
.toEqual(fix.componentInstance.data[fix.componentInstance.data.length - 1].ContactTitle);
15971594
expect(fix.componentInstance.selectedCell.column.field).toMatch('ContactTitle');
15981595

15991596
GridFunctions.simulateGridContentKeydown(fix, 'ArrowUp', false, false, true);
1600-
await wait(DEBOUNCETIME);
16011597
zone.simulateOnStable();
1602-
fix.detectChanges();
16031598
await wait(DEBOUNCETIME);
1604-
zone.simulateOnStable();
16051599
fix.detectChanges();
16061600

16071601
expect(fix.componentInstance.selectedCell.value).toEqual(fix.componentInstance.data[0].ContactTitle);
@@ -1730,25 +1724,25 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
17301724
fix.detectChanges();
17311725

17321726
GridFunctions.simulateGridContentKeydown(fix, 'end', false, false, true);
1733-
await wait(DEBOUNCETIME);
17341727
zone.simulateOnStable();
1728+
await wait(DEBOUNCETIME);
17351729
fix.detectChanges();
17361730

1737-
await wait(DEBOUNCETIME);
17381731
zone.simulateOnStable();
1732+
await wait(DEBOUNCETIME);
17391733
fix.detectChanges();
17401734

17411735
expect(fix.componentInstance.selectedCell.value)
17421736
.toEqual(fix.componentInstance.data[fix.componentInstance.data.length - 1].Fax);
17431737
expect(fix.componentInstance.selectedCell.column.field).toMatch('Fax');
17441738

17451739
GridFunctions.simulateGridContentKeydown(fix, 'home', false, false, true);
1746-
await wait(DEBOUNCETIME);
17471740
zone.simulateOnStable();
1741+
await wait(DEBOUNCETIME);
17481742
fix.detectChanges();
17491743

1750-
await wait(DEBOUNCETIME);
17511744
zone.simulateOnStable();
1745+
await wait(DEBOUNCETIME);
17521746
fix.detectChanges();
17531747

17541748
expect(fix.componentInstance.selectedCell.value).toEqual(fix.componentInstance.data[0].CompanyName);
@@ -1881,25 +1875,25 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
18811875
fix.detectChanges();
18821876

18831877
GridFunctions.simulateGridContentKeydown(fix, 'end', false, false, true);
1884-
await wait(DEBOUNCETIME);
18851878
zone.simulateOnStable();
1879+
await wait(DEBOUNCETIME);
18861880
fix.detectChanges();
18871881

1888-
await wait(DEBOUNCETIME);
18891882
zone.simulateOnStable();
1883+
await wait(DEBOUNCETIME);
18901884
fix.detectChanges();
18911885

18921886
expect(fix.componentInstance.selectedCell.value)
18931887
.toEqual(fix.componentInstance.data[fix.componentInstance.data.length - 1].Fax);
18941888
expect(fix.componentInstance.selectedCell.column.field).toMatch('Fax');
18951889

18961890
GridFunctions.simulateGridContentKeydown(fix, 'home', false, false, true);
1897-
await wait(DEBOUNCETIME);
18981891
zone.simulateOnStable();
1892+
await wait(DEBOUNCETIME);
18991893
fix.detectChanges();
19001894

1901-
await wait(DEBOUNCETIME);
19021895
zone.simulateOnStable();
1896+
await wait(DEBOUNCETIME);
19031897
fix.detectChanges();
19041898

19051899
expect(fix.componentInstance.selectedCell.value).toEqual(fix.componentInstance.data[0].CompanyName);

0 commit comments

Comments
 (0)