@@ -859,6 +859,7 @@ describe('Row Pinning #grid', () => {
859
859
860
860
const firstRowCell = grid . getRowByIndex ( 0 ) . cells . toArray ( ) [ 1 ] ;
861
861
UIInteractions . simulateClickAndSelectEvent ( firstRowCell ) ;
862
+ await wait ( DEBOUNCE_TIME ) ;
862
863
fix . detectChanges ( ) ;
863
864
864
865
UIInteractions . triggerEventHandlerKeyDown ( 'ArrowDown' , gridContent , false , false , true ) ;
@@ -880,9 +881,10 @@ describe('Row Pinning #grid', () => {
880
881
grid . navigateTo ( 10 ) ;
881
882
await wait ( DEBOUNCE_TIME ) ;
882
883
fix . detectChanges ( ) ;
883
-
884
+
884
885
const firstRowCell = grid . getRowByIndex ( 0 ) . cells . toArray ( ) [ 1 ] ;
885
886
UIInteractions . simulateClickAndSelectEvent ( firstRowCell ) ;
887
+ await wait ( DEBOUNCE_TIME ) ;
886
888
fix . detectChanges ( ) ;
887
889
888
890
UIInteractions . triggerEventHandlerKeyDown ( 'ArrowDown' , gridContent ) ;
@@ -904,11 +906,14 @@ describe('Row Pinning #grid', () => {
904
906
grid . navigateTo ( 27 ) ;
905
907
await wait ( DEBOUNCE_TIME ) ;
906
908
fix . detectChanges ( ) ;
907
-
909
+ await wait ( DEBOUNCE_TIME ) ;
910
+ fix . detectChanges ( ) ;
911
+
908
912
expect ( grid . verticalScrollContainer . getScroll ( ) . scrollTop ) . not . toEqual ( 0 ) ;
909
-
913
+
910
914
const lastRowCell = grid . getRowByIndex ( 27 ) . cells . toArray ( ) [ 1 ] ;
911
915
UIInteractions . simulateClickAndSelectEvent ( lastRowCell ) ;
916
+ await wait ( DEBOUNCE_TIME ) ;
912
917
fix . detectChanges ( ) ;
913
918
914
919
UIInteractions . triggerEventHandlerKeyDown ( 'ArrowUp' , gridContent , false , false , true ) ;
@@ -931,6 +936,7 @@ describe('Row Pinning #grid', () => {
931
936
932
937
const thirdRowCell = grid . getRowByIndex ( 2 ) . cells . toArray ( ) [ 1 ] ;
933
938
UIInteractions . simulateClickAndSelectEvent ( thirdRowCell ) ;
939
+ await wait ( DEBOUNCE_TIME ) ;
934
940
fix . detectChanges ( ) ;
935
941
936
942
expect ( grid . navigation . activeNode . row ) . toBe ( 2 ) ;
@@ -954,9 +960,12 @@ describe('Row Pinning #grid', () => {
954
960
grid . navigateTo ( 26 ) ;
955
961
await wait ( DEBOUNCE_TIME ) ;
956
962
fix . detectChanges ( ) ;
957
-
963
+ await wait ( DEBOUNCE_TIME ) ;
964
+ fix . detectChanges ( ) ;
965
+
958
966
const lastRowCell = grid . getRowByIndex ( 27 ) . cells . toArray ( ) [ 1 ] ;
959
967
UIInteractions . simulateClickAndSelectEvent ( lastRowCell ) ;
968
+ await wait ( DEBOUNCE_TIME ) ;
960
969
fix . detectChanges ( ) ;
961
970
962
971
expect ( grid . navigation . activeNode . row ) . toBe ( 27 ) ;
@@ -981,6 +990,7 @@ describe('Row Pinning #grid', () => {
981
990
982
991
const firstRowCell = grid . getRowByIndex ( 27 ) . cells . toArray ( ) [ 1 ] ;
983
992
UIInteractions . simulateClickAndSelectEvent ( firstRowCell ) ;
993
+ await wait ( DEBOUNCE_TIME ) ;
984
994
fix . detectChanges ( ) ;
985
995
986
996
UIInteractions . triggerEventHandlerKeyDown ( 'ArrowUp' , gridContent ) ;
@@ -1004,6 +1014,7 @@ describe('Row Pinning #grid', () => {
1004
1014
1005
1015
const firstRowCell = grid . getRowByIndex ( 0 ) . cells . toArray ( ) [ 1 ] ;
1006
1016
UIInteractions . simulateClickAndSelectEvent ( firstRowCell ) ;
1017
+ await wait ( DEBOUNCE_TIME ) ;
1007
1018
fix . detectChanges ( ) ;
1008
1019
1009
1020
UIInteractions . triggerEventHandlerKeyDown ( 'ArrowDown' , gridContent , false , false , true ) ;
@@ -1028,9 +1039,12 @@ describe('Row Pinning #grid', () => {
1028
1039
grid . navigateTo ( 26 ) ;
1029
1040
await wait ( DEBOUNCE_TIME ) ;
1030
1041
fix . detectChanges ( ) ;
1042
+ await wait ( DEBOUNCE_TIME ) ;
1043
+ fix . detectChanges ( ) ;
1031
1044
1032
1045
const firstRowCell = grid . getRowByIndex ( 26 ) . cells . toArray ( ) [ 1 ] ;
1033
1046
UIInteractions . simulateClickAndSelectEvent ( firstRowCell ) ;
1047
+ await wait ( DEBOUNCE_TIME ) ;
1034
1048
fix . detectChanges ( ) ;
1035
1049
1036
1050
expect ( grid . navigation . activeNode . row ) . toBe ( 26 ) ;
@@ -1056,6 +1070,7 @@ describe('Row Pinning #grid', () => {
1056
1070
1057
1071
const firstRowCell = grid . getRowByIndex ( 0 ) . cells . toArray ( ) [ 1 ] ;
1058
1072
UIInteractions . simulateClickAndSelectEvent ( firstRowCell ) ;
1073
+ await wait ( DEBOUNCE_TIME ) ;
1059
1074
fix . detectChanges ( ) ;
1060
1075
1061
1076
UIInteractions . triggerEventHandlerKeyDown ( 'ArrowDown' , gridContent ) ;
0 commit comments