@@ -49,21 +49,20 @@ describe('IgxHierarchicalGrid selection #hGrid', () => {
49
49
rowIsland2 = fix . componentInstance . rowIsland2 ;
50
50
} ) ) ;
51
51
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.' , ( ) => {
53
53
hierarchicalGrid . height = '500px' ;
54
54
hierarchicalGrid . reflow ( ) ;
55
55
fix . detectChanges ( ) ;
56
56
57
- let firstRow = hierarchicalGrid . getRowByIndex ( 0 ) as IgxHierarchicalRowComponent ;
57
+ const firstRow = hierarchicalGrid . getRowByIndex ( 0 ) as IgxHierarchicalRowComponent ;
58
58
firstRow . toggle ( ) ;
59
59
fix . detectChanges ( ) ;
60
60
expect ( firstRow . expanded ) . toBeTruthy ( ) ;
61
61
62
- let fCell = firstRow . cells . toArray ( ) [ 0 ] ;
62
+ const fCell = firstRow . cells . toArray ( ) [ 0 ] ;
63
63
64
64
// select parent cell
65
65
fCell . nativeElement . focus ( ) ;
66
- await wait ( 100 ) ;
67
66
fix . detectChanges ( ) ;
68
67
69
68
expect ( fCell . selected ) . toBeTruthy ( ) ;
@@ -74,21 +73,17 @@ describe('IgxHierarchicalGrid selection #hGrid', () => {
74
73
75
74
// select child cell
76
75
fChildCell . nativeElement . focus ( ) ;
77
- await wait ( 100 ) ;
78
76
fix . detectChanges ( ) ;
79
77
80
78
expect ( fChildCell . selected ) . toBeTruthy ( ) ;
81
79
expect ( fCell . selected ) . toBeFalsy ( ) ;
82
80
83
81
// select parent cell
84
- firstRow = hierarchicalGrid . getRowByIndex ( 0 ) as IgxHierarchicalRowComponent ;
85
- fCell = firstRow . cells . toArray ( ) [ 0 ] ;
86
82
fCell . nativeElement . focus ( ) ;
87
- await wait ( 100 ) ;
88
83
fix . detectChanges ( ) ;
89
84
expect ( fChildCell . selected ) . toBeFalsy ( ) ;
90
85
expect ( fCell . selected ) . toBeTruthy ( ) ;
91
- } ) ) ;
86
+ } ) ;
92
87
} ) ;
93
88
94
89
describe ( 'Row Selection' , ( ) => {
0 commit comments