File tree Expand file tree Collapse file tree
projects/igniteui-angular/grids/grid/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { IgxPaginatorComponent } from 'igniteui-angular/paginator';;
66import { DataParent } from '../../../test-utils/sample-test-data.spec' ;
77import { GridFunctions , GridSelectionFunctions } from '../../../test-utils/grid-functions.spec' ;
88import { 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' ;
1010import { hasClass , setElementSize } from '../../../test-utils/helper-utils.spec' ;
1111import { ColumnLayoutTestComponent } from './grid.multi-row-layout.spec' ;
1212import { 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 , [
You can’t perform that action at this time.
0 commit comments