@@ -46,6 +46,7 @@ describe('MatTimepicker', () => {
46
46
47
47
getOptions ( ) [ 3 ] . click ( ) ;
48
48
fixture . detectChanges ( ) ;
49
+ flushMicrotasks ( ) ;
49
50
flush ( ) ;
50
51
51
52
const value = fixture . componentInstance . input . value ( ) ! ;
@@ -71,6 +72,7 @@ describe('MatTimepicker', () => {
71
72
72
73
getOptions ( ) [ 1 ] . click ( ) ;
73
74
fixture . detectChanges ( ) ;
75
+ flushMicrotasks ( ) ;
74
76
flush ( ) ;
75
77
76
78
expect ( getPanel ( ) ) . toBeFalsy ( ) ;
@@ -124,6 +126,7 @@ describe('MatTimepicker', () => {
124
126
125
127
getOptions ( ) [ getActiveOptionIndex ( ) ] . click ( ) ;
126
128
fixture . detectChanges ( ) ;
129
+ flushMicrotasks ( ) ;
127
130
flush ( ) ;
128
131
129
132
expect ( getPanel ( ) ) . toBeFalsy ( ) ;
@@ -868,6 +871,7 @@ describe('MatTimepicker', () => {
868
871
869
872
const event = dispatchKeyboardEvent ( input , 'keydown' , ENTER ) ;
870
873
fixture . detectChanges ( ) ;
874
+ flushMicrotasks ( ) ;
871
875
flush ( ) ;
872
876
873
877
expect ( input . value ) . toBe ( '1:30 AM' ) ;
@@ -972,6 +976,7 @@ describe('MatTimepicker', () => {
972
976
fixture . detectChanges ( ) ;
973
977
getOptions ( ) [ 5 ] . click ( ) ;
974
978
fixture . detectChanges ( ) ;
979
+ flushMicrotasks ( ) ;
975
980
976
981
expectSameTime ( control . value , createTime ( 2 , 30 ) ) ;
977
982
expect ( control . dirty ) . toBe ( true ) ;
@@ -1012,6 +1017,7 @@ describe('MatTimepicker', () => {
1012
1017
fixture . detectChanges ( ) ;
1013
1018
getOptions ( ) [ 5 ] . click ( ) ;
1014
1019
fixture . detectChanges ( ) ;
1020
+ flushMicrotasks ( ) ;
1015
1021
1016
1022
expectSameTime ( control . value , createTime ( 2 , 30 ) ) ;
1017
1023
expect ( control . dirty ) . toBe ( false ) ;
0 commit comments