Skip to content

Commit 668a115

Browse files
committed
test: 更新单元测试
1 parent af170c9 commit 668a115

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

test/UnitTest/Components/TableTest.cs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3265,14 +3265,29 @@ public void ShowFilterHeader_Ok(bool showCheckboxText)
32653265
});
32663266
});
32673267

3268-
cut.Contains("width: 36px;");
3268+
if (showCheckboxText == false)
3269+
{
3270+
cut.Contains("width: 36px;");
3271+
}
3272+
else
3273+
{
3274+
cut.Contains("width: 80px;");
3275+
}
32693276

32703277
var table = cut.FindComponent<Table<Foo>>();
32713278
table.SetParametersAndRender(pb =>
32723279
{
32733280
pb.Add(a => a.TableSize, TableSize.Compact);
32743281
});
3275-
cut.Contains("width: 28px;");
3282+
3283+
if (showCheckboxText == false)
3284+
{
3285+
cut.Contains("width: 28px;");
3286+
}
3287+
else
3288+
{
3289+
cut.Contains("width: 80px;");
3290+
}
32763291
}
32773292

32783293
[Theory]

0 commit comments

Comments
 (0)