Skip to content

Commit 5f2323c

Browse files
committed
test: 增加单元测试
1 parent f2996ab commit 5f2323c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/UnitTest/Services/DrawerServiceTest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ public async Task Show_Ok()
2525
ShowBackdrop = true,
2626
BodyContext = "test-body-context",
2727
IsKeyboard = true,
28-
BodyScroll = true
28+
BodyScroll = true,
29+
ZIndex = 1066
2930
};
3031
var service = Context.Services.GetRequiredService<DrawerService>();
3132
var cut = Context.RenderComponent<BootstrapBlazorRoot>();
3233
await service.Show(option);
3334
cut.Contains("data-bb-keyboard=\"true\"");
35+
cut.Contains("--bb-drawer-zindex: 1066;");
3436
var button = cut.Find("button");
3537
await cut.InvokeAsync(() => button.Click());
3638

0 commit comments

Comments
 (0)