File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -132,13 +132,12 @@ public async Task OnCancel_Ok()
132132 var downs = cut . FindAll ( ".time-spinner-arrow.fa-angle-down" ) ;
133133 await cut . InvokeAsync ( ( ) => downs [ 0 ] . Click ( ) ) ;
134134 await cut . InvokeAsync ( ( ) => cut . Find ( ".time-panel-btn.confirm" ) . Click ( ) ) ;
135- await Task . Delay ( 1000 ) ;
136- var buttons = cut . FindAll ( ".timer-buttons button" ) ;
135+
137136 // pause
137+ var buttons = cut . FindAll ( ".timer-buttons button" ) ;
138138 Assert . True ( buttons [ 1 ] . ClassList . Contains ( "btn-warning" ) ) ;
139139 Assert . Equal ( "暂停" , buttons [ 1 ] . GetInnerText ( ) ) ;
140140 await cut . InvokeAsync ( ( ) => buttons [ 1 ] . Click ( ) ) ;
141- await Task . Delay ( 500 ) ;
142141
143142 // resume
144143 buttons = cut . FindAll ( ".timer-buttons button" ) ;
@@ -156,6 +155,5 @@ public async Task OnCancel_Ok()
156155 downs = cut . FindAll ( ".time-spinner-arrow.fa-angle-down" ) ;
157156 await cut . InvokeAsync ( ( ) => downs [ 0 ] . Click ( ) ) ;
158157 await cut . InvokeAsync ( ( ) => cut . Find ( ".time-panel-btn.confirm" ) . Click ( ) ) ;
159- await Task . Delay ( 1000 ) ;
160158 }
161159}
You can’t perform that action at this time.
0 commit comments