@@ -1693,6 +1693,7 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
16931693 { field : 'Fax' , rowStart : 2 , colStart : 1 , colEnd : 3 , rowEnd : 4 }
16941694 ]
16951695 } ] ;
1696+ await wait ( DEBOUNCETIME ) ;
16961697 fix . detectChanges ( ) ;
16971698
16981699 setupGridScrollDetection ( fix , fix . componentInstance . grid ) ;
@@ -1704,6 +1705,8 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
17041705 GridFunctions . simulateGridContentKeydown ( fix , 'end' , false , false , true ) ;
17051706 await wait ( 200 ) ;
17061707 fix . detectChanges ( ) ;
1708+ await wait ( 200 ) ;
1709+ fix . detectChanges ( ) ;
17071710
17081711 expect ( fix . componentInstance . selectedCell . value )
17091712 . toEqual ( fix . componentInstance . data [ fix . componentInstance . data . length - 1 ] . Fax ) ;
@@ -1712,6 +1715,8 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
17121715 GridFunctions . simulateGridContentKeydown ( fix , 'home' , false , false , true ) ;
17131716 await wait ( 200 ) ;
17141717 fix . detectChanges ( ) ;
1718+ await wait ( 200 ) ;
1719+ fix . detectChanges ( ) ;
17151720
17161721 expect ( fix . componentInstance . selectedCell . value ) . toEqual ( fix . componentInstance . data [ 0 ] . CompanyName ) ;
17171722 expect ( fix . componentInstance . selectedCell . column . field ) . toMatch ( 'CompanyName' ) ;
@@ -1816,6 +1821,7 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
18161821 { field : 'Fax' , rowStart : 2 , colStart : 1 , colEnd : 3 , rowEnd : 4 }
18171822 ]
18181823 } ] ;
1824+ await wait ( DEBOUNCETIME ) ;
18191825 fix . detectChanges ( ) ;
18201826 setupGridScrollDetection ( fix , fix . componentInstance . grid ) ;
18211827 // last cell from first layout
@@ -1828,13 +1834,15 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
18281834 GridFunctions . simulateGridContentKeydown ( fix , 'End' , false , false , true ) ;
18291835 await wait ( 200 ) ;
18301836 fix . detectChanges ( ) ;
1837+ await wait ( 200 ) ;
1838+ fix . detectChanges ( ) ;
18311839
18321840 expect ( fix . componentInstance . selectedCell . value )
18331841 . toEqual ( fix . componentInstance . data [ fix . componentInstance . data . length - 1 ] . Fax ) ;
18341842 expect ( fix . componentInstance . selectedCell . column . field ) . toMatch ( 'Fax' ) ;
18351843
18361844 GridFunctions . simulateGridContentKeydown ( fix , 'Home' , false , false , true ) ;
1837- await wait ( 100 ) ;
1845+ await wait ( 200 ) ;
18381846 fix . detectChanges ( ) ;
18391847
18401848 expect ( fix . componentInstance . selectedCell . value ) . toEqual ( fix . componentInstance . data [ 0 ] . CompanyName ) ;
@@ -1872,6 +1880,7 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
18721880 { field : 'Fax' , rowStart : 2 , colStart : 1 , colEnd : 3 , rowEnd : 4 }
18731881 ]
18741882 } ] ;
1883+ await wait ( DEBOUNCETIME ) ;
18751884 fix . detectChanges ( ) ;
18761885 const firstCell = fix . debugElement . queryAll ( By . css ( CELL_CSS_CLASS ) ) [ 0 ] ;
18771886
@@ -1931,6 +1940,7 @@ describe('IgxGrid Multi Row Layout - Keyboard navigation #grid', () => {
19311940 { field : 'Fax' , rowStart : 2 , colStart : 1 , colEnd : 3 , rowEnd : 4 }
19321941 ]
19331942 } ] ;
1943+ await wait ( DEBOUNCETIME ) ;
19341944 fix . detectChanges ( ) ;
19351945 const rows = fix . debugElement . queryAll ( By . css ( ROW_CSS_CLASS ) ) ;
19361946 const firstCell = rows [ 2 ] . queryAll ( By . css ( CELL_CSS_CLASS ) ) [ 0 ] ;
0 commit comments