We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbf2329 commit 6d2161bCopy full SHA for 6d2161b
tests/MaterialDesignThemes.UITests/WPF/SplitButtons/SplitButtonTests.cs
@@ -99,12 +99,14 @@ public async Task SplitButton_WithButtonInPopup_CanBeInvoked()
99
await Wait.For(async () => await popupContent.GetIsVisible());
100
await Wait.For(async () => await popupContent.GetActualHeight() > 10);
101
await popupContent.LeftClick();
102
- await Task.Delay(50);
103
104
// Assert
105
- var invocations = await clickEvent.GetInvocations();
106
- Assert.Single(invocations);
107
-
+ await Wait.For(async () =>
+ {
+ var invocations = await clickEvent.GetInvocations();
+ Assert.Single(invocations);
108
+ });
109
+
110
recorder.Success();
111
}
112
0 commit comments