mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2025-12-06 07:28:50 +08:00
test(EditDialog): update unit test for use IsAsync on submit button (#7243)
This commit is contained in:
@@ -248,8 +248,8 @@ public class DialogTest : BootstrapBlazorTestBase
|
||||
editOption.Model = model;
|
||||
await cut.InvokeAsync(() => dialog.ShowEditDialog(editOption));
|
||||
var form = cut.Find("form");
|
||||
form.Submit();
|
||||
Assert.True(saved);
|
||||
await cut.InvokeAsync(() => form.Submit());
|
||||
cut.WaitForAssertion(() => Assert.True(saved));
|
||||
await cut.InvokeAsync(() => modal.Instance.CloseCallback());
|
||||
|
||||
// edit dialog is tracking true
|
||||
|
||||
Reference in New Issue
Block a user