We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c2a0f commit 12353f5Copy full SHA for 12353f5
1 file changed
test/UnitTest/Components/DialogTest.cs
@@ -398,6 +398,7 @@ await cut.InvokeAsync(() => dialog.Show(new DialogOption()
398
#region 弹窗中的弹窗测试
399
await cut.InvokeAsync(() => dialog.Show(new DialogOption()
400
{
401
+ IsHidePreviousDialog = true,
402
// 弹窗中按钮
403
BodyTemplate = BootstrapDynamicComponent.CreateComponent<Button>(new Dictionary<string, object?>()
404
@@ -414,10 +415,12 @@ await dialog.Show(new DialogOption()
414
415
}
416
}).Render()
417
}));
418
+ Assert.DoesNotContain("modal-multiple", cut.Markup);
419
420
// 弹出第二个弹窗
421
var buttonInDialog = cut.Find(".btn-primary");
422
buttonInDialog.Click();
423
+ Assert.Contains("class=\"modal fade modal-multiple show\"", cut.Markup);
424
Assert.Equal(2, cut.FindComponents<ModalDialog>().Count);
425
426
// 关闭第二个弹窗
0 commit comments