@@ -49,21 +49,20 @@ describe('IgxHierarchicalGrid selection #hGrid', () => {
4949 rowIsland2 = fix . componentInstance . rowIsland2 ;
5050 } ) ) ;
5151
52- it ( 'should allow only one cell to be selected in the whole hierarchical grid.' , ( async ( ) => {
52+ it ( 'should allow only one cell to be selected in the whole hierarchical grid.' , ( ) => {
5353 hierarchicalGrid . height = '500px' ;
5454 hierarchicalGrid . reflow ( ) ;
5555 fix . detectChanges ( ) ;
5656
57- let firstRow = hierarchicalGrid . getRowByIndex ( 0 ) as IgxHierarchicalRowComponent ;
57+ const firstRow = hierarchicalGrid . getRowByIndex ( 0 ) as IgxHierarchicalRowComponent ;
5858 firstRow . toggle ( ) ;
5959 fix . detectChanges ( ) ;
6060 expect ( firstRow . expanded ) . toBeTruthy ( ) ;
6161
62- let fCell = firstRow . cells . toArray ( ) [ 0 ] ;
62+ const fCell = firstRow . cells . toArray ( ) [ 0 ] ;
6363
6464 // select parent cell
6565 fCell . nativeElement . focus ( ) ;
66- await wait ( 100 ) ;
6766 fix . detectChanges ( ) ;
6867
6968 expect ( fCell . selected ) . toBeTruthy ( ) ;
@@ -74,21 +73,17 @@ describe('IgxHierarchicalGrid selection #hGrid', () => {
7473
7574 // select child cell
7675 fChildCell . nativeElement . focus ( ) ;
77- await wait ( 100 ) ;
7876 fix . detectChanges ( ) ;
7977
8078 expect ( fChildCell . selected ) . toBeTruthy ( ) ;
8179 expect ( fCell . selected ) . toBeFalsy ( ) ;
8280
8381 // select parent cell
84- firstRow = hierarchicalGrid . getRowByIndex ( 0 ) as IgxHierarchicalRowComponent ;
85- fCell = firstRow . cells . toArray ( ) [ 0 ] ;
8682 fCell . nativeElement . focus ( ) ;
87- await wait ( 100 ) ;
8883 fix . detectChanges ( ) ;
8984 expect ( fChildCell . selected ) . toBeFalsy ( ) ;
9085 expect ( fCell . selected ) . toBeTruthy ( ) ;
91- } ) ) ;
86+ } ) ;
9287 } ) ;
9388
9489 describe ( 'Row Selection' , ( ) => {
0 commit comments