Skip to content

Commit 54cbafc

Browse files
committed
test: 更新单元测试
1 parent dc05d02 commit 54cbafc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/UnitTest/Components/LayoutTest.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ public void ShowFooter_OK()
2020
{
2121
pb.Add(a => a.ShowFooter, true);
2222
pb.Add(a => a.Footer, CreateFooter());
23+
pb.Add(a => a.ShowGotoTop, true);
2324
});
2425
Assert.Contains("Footer", cut.Markup);
26+
cut.SetParametersAndRender(pb =>
27+
{
28+
pb.Add(a => a.IsFixedTabHeader, true);
29+
});
30+
cut.Contains("data-bb-target=\".tabs-body\"");
2531

2632
cut.SetParametersAndRender(pb => pb.Add(a => a.ShowFooter, false));
2733
cut.WaitForAssertion(() => Assert.DoesNotContain("Footer", cut.Markup));
@@ -54,7 +60,6 @@ public void IsFixedTabHeader_OK()
5460
{
5561
var cut = Context.RenderComponent<Layout>(pb =>
5662
{
57-
pb.Add(a => a.ShowGotoTop, true);
5863
pb.Add(a => a.Side, new RenderFragment(builder =>
5964
{
6065
builder.AddContent(0, "test");

0 commit comments

Comments
 (0)