Skip to content

Commit 2b7bd33

Browse files
committed
test: 更新单元测试
1 parent 9ff9e9e commit 2b7bd33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/UnitTest/Components/PopConfirmButtonTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public async Task Show_Ok()
2929

3030
cut.Contains("fa-solid fa-xmark");
3131
cut.Contains("fa-solid fa-check");
32+
cut.DoesNotContain("data-bb-close=\"true\"");
3233

3334
// Show
3435
var button = cut.Find("div");
@@ -84,6 +85,7 @@ await cut.InvokeAsync(() =>
8485
return Task.FromResult(true);
8586
});
8687
});
88+
cut.Contains("data-bb-close=\"true\"");
8789
// 默认设置增加 shadow 样式
8890
Assert.Contains("data-bs-custom-class=\"test-custom-class shadow\"", cut.Markup);
8991

0 commit comments

Comments
 (0)