Skip to content

Commit 06be503

Browse files
committed
test(*): Revert unit test changes
Closes #7219
1 parent 935ae86 commit 06be503

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid.master-detail.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,15 +455,16 @@ describe('IgxGrid Master Detail #grid', () => {
455455
await wait(DEBOUNCETIME);
456456
fix.detectChanges();
457457

458-
const row = grid.getRowByIndex(2);
458+
let row = grid.getRowByIndex(2);
459459
const targetCellElement = grid.getCellByColumn(2, 'ContactName');
460460
UIInteractions.simulateClickAndSelectEvent(targetCellElement);
461461
fix.detectChanges();
462462

463463
UIInteractions.triggerEventHandlerKeyDown('ArrowUp', gridContent);
464-
fix.detectChanges();
465464
await wait(DEBOUNCETIME);
465+
fix.detectChanges();
466466

467+
row = grid.getRowByIndex(2);
467468
const detailRow = row.element.nativeElement.previousElementSibling as HTMLElement;
468469
GridFunctions.verifyMasterDetailRowFocused(detailRow);
469470
expect(GridFunctions.elementInGridView(grid, detailRow)).toBeTruthy();

projects/igniteui-angular/src/lib/grids/grid/grid.multi-row-layout.integration.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ describe('IgxGrid - multi-row-layout Integration #grid - ', () => {
606606
await wait(100);
607607
fixture.detectChanges();
608608

609-
const lastCell = grid.rowList.first.cells.toArray()[6];
609+
const lastCell = grid.rowList.first.cells.toArray()[5];
610610
expect(lastCell.column.field).toBe('Address');
611611
expect(lastCell.column.parent.field).toBe('group4');
612612
expect(Math.round(lastCell.nativeElement.getBoundingClientRect().right) -

0 commit comments

Comments
 (0)