Skip to content

Commit e1d5493

Browse files
committed
chore(*): update failing test for column moving
1 parent 9024eb4 commit e1d5493

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/igniteui-angular/src/lib/grids/grid/column-moving.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ describe('IgxGrid - Column Moving #grid', () => {
444444
UIInteractions.simulatePointerEvent('pointermove', header, 330, 75);
445445
await wait();
446446
UIInteractions.simulatePointerEvent('pointerup', header, 330, 75);
447+
await wait();
447448
fixture.detectChanges();
448449

449450
const columnsList = grid.columnList.toArray();
@@ -453,6 +454,7 @@ describe('IgxGrid - Column Moving #grid', () => {
453454

454455
// step 3 - navigate right and verify cell selection is updated
455456
const gridContent = GridFunctions.getGridContent(fixture);
457+
GridFunctions.focusFirstCell(fixture);
456458
UIInteractions.triggerKeyDownEvtUponElem('arrowright', gridContent.nativeElement, true);
457459
await wait(50);
458460
fixture.detectChanges();
@@ -487,6 +489,7 @@ describe('IgxGrid - Column Moving #grid', () => {
487489

488490
// step 3 - navigate and verify cell selection is updated
489491
const gridContent = GridFunctions.getGridContent(fixture);
492+
GridFunctions.focusFirstCell(fixture);
490493
UIInteractions.triggerKeyDownEvtUponElem('arrowright', gridContent.nativeElement, true);
491494
await wait(50);
492495
fixture.detectChanges();
@@ -1314,6 +1317,7 @@ describe('IgxGrid - Column Moving #grid', () => {
13141317

13151318
// step 3 - navigate right and verify cell selection is updated
13161319
const cellEl = fixture.debugElement.queryAll(By.css(CELL_CSS_CLASS))[2];
1320+
UIInteractions.simulateClickAndSelectCellEvent(cellEl);
13171321
UIInteractions.triggerKeyDownEvtUponElem('arrowright', cellEl.nativeElement, true);
13181322
await wait(50);
13191323
fixture.detectChanges();

0 commit comments

Comments
 (0)