Skip to content

Commit 3526963

Browse files
committed
test(hgrid): minor adjustments
1 parent 139f635 commit 3526963

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

projects/igniteui-angular/grids/grid/src/cell-merge.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { IgxPaginatorComponent } from 'igniteui-angular/paginator';;
66
import { DataParent } from '../../../test-utils/sample-test-data.spec';
77
import { GridFunctions, GridSelectionFunctions } from '../../../test-utils/grid-functions.spec';
88
import { By } from '@angular/platform-browser';
9-
import { UIInteractions, wait } from '../../../test-utils/ui-interactions.spec';
9+
import { UIInteractions, wait, waitForActiveNodeChange } from '../../../test-utils/ui-interactions.spec';
1010
import { hasClass, setElementSize } from '../../../test-utils/helper-utils.spec';
1111
import { ColumnLayoutTestComponent } from './grid.multi-row-layout.spec';
1212
import { IgxHierarchicalGridTestBaseComponent } from '../../hierarchical-grid/src/hierarchical-grid.spec';
@@ -1161,9 +1161,10 @@ describe('IgxGrid - Cell merging #grid', () => {
11611161
const parentRowDE = parentRows[0];
11621162
const parentCells = parentRowDE.queryAll(By.css('.igx-grid__td'));
11631163
const parentCellDE = parentCells[1];
1164+
const activeChange = waitForActiveNodeChange(childGrid);
11641165
UIInteractions.simulateClickAndSelectEvent(parentCellDE.nativeElement);
1165-
parentCellDE.nativeElement.dispatchEvent(new FocusEvent('focusin', { bubbles: true }));
1166-
await wait(1);
1166+
await activeChange;
1167+
await wait(20);
11671168
fix.detectChanges();
11681169

11691170
GridFunctions.verifyColumnMergedState(childGrid, childCol, [

0 commit comments

Comments
 (0)