@@ -6,7 +6,7 @@ import { IgxGridModule, IgxGridCellComponent, IGridCellEventArgs } from './publi
6
6
import { IgxGridComponent } from './grid.component' ;
7
7
import { SampleTestData } from '../../test-utils/sample-test-data.spec' ;
8
8
import { configureTestSuite } from '../../test-utils/configure-suite' ;
9
- import { wait , UIInteractions } from '../../test-utils/ui-interactions.spec' ;
9
+ import { wait , UIInteractions , waitForSelectionChange } from '../../test-utils/ui-interactions.spec' ;
10
10
import { setupGridScrollDetection } from '../../test-utils/helper-utils.spec' ;
11
11
import { SortingDirection } from '../../data-operations/sorting-expression.interface' ;
12
12
import { DefaultSortingStrategy } from '../../data-operations/sorting-strategy' ;
@@ -1894,21 +1894,19 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
1894
1894
fix . detectChanges ( ) ;
1895
1895
1896
1896
GridFunctions . simulateGridContentKeydown ( fix , 'ArrowRight' , false , false , true ) ;
1897
- await wait ( DEBOUNCETIME * 2 ) ;
1897
+ await waitForSelectionChange ( fix . componentInstance . grid ) ;
1898
1898
fix . detectChanges ( ) ;
1899
1899
1900
1900
expect ( fix . componentInstance . selectedCell . value ) . toEqual ( fix . componentInstance . data [ 0 ] . Phone ) ;
1901
1901
expect ( fix . componentInstance . selectedCell . column . field ) . toMatch ( 'Phone' ) ;
1902
1902
1903
1903
GridFunctions . simulateGridContentKeydown ( fix , 'ArrowDown' ) ;
1904
- await wait ( ) ;
1905
1904
fix . detectChanges ( ) ;
1906
1905
1907
1906
expect ( fix . componentInstance . selectedCell . value ) . toEqual ( fix . componentInstance . data [ 0 ] . Fax ) ;
1908
1907
expect ( fix . componentInstance . selectedCell . column . field ) . toMatch ( 'Fax' ) ;
1909
1908
1910
1909
GridFunctions . simulateGridContentKeydown ( fix , 'ArrowUp' ) ;
1911
- await wait ( ) ;
1912
1910
fix . detectChanges ( ) ;
1913
1911
1914
1912
expect ( fix . componentInstance . selectedCell . value ) . toEqual ( fix . componentInstance . data [ 0 ] . Phone ) ;
0 commit comments