Skip to content

Commit 96ec39c

Browse files
committed
test: 更新单元测试
1 parent 6748605 commit 96ec39c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/UnitTest/Components/DialogTest.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ await cut.InvokeAsync(() => dialog.Show(new DialogOption()
5858
ShowExportPdfButton = true,
5959
ShowExportPdfButtonInHeader = true,
6060
ExportPdfButtonOptions = new(),
61+
IsFade = false,
6162
OnCloseAsync = () =>
6263
{
6364
closed = true;
6465
return Task.CompletedTask;
6566
}
6667
}));
6768

69+
// 由于设置了 IsFade=false Modal 不应该渲染 fade 样式
70+
Assert.DoesNotContain("modal fade", modal.Markup);
71+
6872
// 由于设置了 ShowMaximizeButton 导致 ShowResize 参数失效
6973
Assert.DoesNotContain("<svg", cut.Markup);
7074
Assert.Contains("data-bs-backdrop=\"static\"", cut.Markup);

0 commit comments

Comments
 (0)