File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
tests/MaterialDesignThemes.UITests/WPF/TimePickers Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -528,12 +528,15 @@ public async Task TimePicker_WithClearButton_ClearButtonClearsUncommittedText()
528528 await timePickerTextBox . SendKeyboardInput ( $ "invalid time") ;
529529 await Assert . That ( await timePickerTextBox . GetText ( ) ) . IsEqualTo ( "invalid time" ) ;
530530
531- // Act
532- await clearButton . LeftClick ( ) ;
533- await Task . Delay ( 50 , TestContext . Current ! . CancellationToken ) ;
531+ await Wait . For ( async ( ) =>
532+ {
533+ // Act
534+ await clearButton . LeftClick ( ) ;
535+ await Task . Delay ( 50 , TestContext . Current ! . CancellationToken ) ;
534536
535- // Assert
536- await Assert . That ( await timePickerTextBox . GetText ( ) ) . IsNull ( ) ;
537+ // Assert
538+ await Assert . That ( await timePickerTextBox . GetText ( ) ) . IsNull ( ) ;
539+ } ) ;
537540
538541 recorder . Success ( ) ;
539542 }
You can’t perform that action at this time.
0 commit comments