Skip to content

Commit b9e6e0b

Browse files
committed
test(MRL): Fix failing tests due to rendering scrollbar on Headless Chrome.
1 parent 7d34153 commit b9e6e0b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
548548
});
549549

550550
it(`should navigate to the first cell from the layout by pressing Ctrl + Arrow Left and Right key
551-
and then Arrow Up + Down to same cell`, () => {
551+
and then Arrow Up + Down to same cell`, async() => {
552552
fix.componentInstance.colGroups = [{
553553
group: 'group1',
554554
hidden: true,
@@ -587,6 +587,10 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
587587
fix.detectChanges();
588588

589589
GridFunctions.simulateCellKeydown(lastCell.componentInstance, 'ArrowLeft', false, false, true);
590+
await wait();
591+
fix.detectChanges();
592+
593+
await wait();
590594
fix.detectChanges();
591595

592596
expect(fix.componentInstance.selectedCell.value).toEqual(fix.componentInstance.data[0].ContactName);
@@ -612,7 +616,7 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
612616
});
613617

614618
it(`should navigate to the first cell from the layout by pressing Ctrl + Arrow Right and Left key
615-
and then Arrow Up + Down to same cell`, () => {
619+
and then Arrow Up + Down to same cell`, async() => {
616620
fix.componentInstance.colGroups = [{
617621
group: 'group1',
618622
hidden: true,
@@ -651,6 +655,10 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
651655
fix.detectChanges();
652656

653657
GridFunctions.simulateCellKeydown(firstCell.componentInstance, 'ArrowRight', false, false, true);
658+
await wait();
659+
fix.detectChanges();
660+
661+
await wait();
654662
fix.detectChanges();
655663

656664
expect(fix.componentInstance.selectedCell.value).toEqual(fix.componentInstance.data[0].ContactTitle);

0 commit comments

Comments
 (0)