Skip to content

Commit e147414

Browse files
committed
test(mrl): Fixes non working test for navigateTo in mrl scenario
1 parent 70d0798 commit e147414

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

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

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,24 +1146,16 @@ describe('IgxGrid - multi-row-layout #grid', () => {
11461146
expect(pos.visibleColumnIndex).toEqual(2);
11471147
}));
11481148

1149-
xit('should navigate to the proper row in MRL scenario', (async () => {
1149+
it('should navigate to the proper row in MRL scenario', (async () => {
11501150
const fix = TestBed.createComponent(ColumnLayoutTestComponent);
1151-
fix.componentInstance.colGroups = [{
1152-
group: 'group1',
1153-
columns: [
1154-
{ field: 'CompanyName', rowStart: 1, rowEnd: 2, colStart: 3, colEnd: 4, dataType: 'number', editable: true },
1155-
{ field: 'ID', rowStart: 1, rowEnd: 2, colStart: 1, colEnd: 2, dataType: 'number', editable: false },
1156-
{ field: 'ContactName', rowStart: 1, rowEnd: 2, colStart: 2, colEnd: 3, dataType: 'string', editable: false },
1157-
]
1158-
}];
11591151
const grid = fix.componentInstance.grid;
11601152
const NAVIGATE = 20;
11611153

11621154
fix.detectChanges();
1155+
await wait(DEBOUNCETIME);
11631156

11641157
grid.navigateTo(NAVIGATE);
1165-
await wait(DEBOUNCETIME);
1166-
fix.detectChanges();
1158+
11671159
await wait(DEBOUNCETIME);
11681160
fix.detectChanges();
11691161

0 commit comments

Comments
 (0)