diff --git a/tests/Polhem.Chat.Blazor.UnitTests/ComposingTests.cs b/tests/Polhem.Chat.Blazor.UnitTests/ComposingTests.cs index fefa235..4da6101 100644 --- a/tests/Polhem.Chat.Blazor.UnitTests/ComposingTests.cs +++ b/tests/Polhem.Chat.Blazor.UnitTests/ComposingTests.cs @@ -200,7 +200,7 @@ public async Task Edit_CancelButton() view.WaitForAssertion(() => Assert.Single(view.FindAll(".pch-edit"))); await view.Find(".pch-edit").ClickAsync(new()); - view.Find(".pch-cancel-edit").Click(); + await view.Find(".pch-cancel-edit").ClickAsync(new()); Assert.False(view.Instance.IsEditingPrompt); Assert.Equal(string.Empty, view.Find(".pch-prompt-box").GetAttribute("value"));