TimeStamp:");
+
+ // TabItem 内显示异常信息
+ cut.Contains("error-stack");
}
[Fact]
diff --git a/test/UnitTest/Components/LayoutTest.cs b/test/UnitTest/Components/LayoutTest.cs
index 2224df22b62..fa8c89418d0 100644
--- a/test/UnitTest/Components/LayoutTest.cs
+++ b/test/UnitTest/Components/LayoutTest.cs
@@ -535,7 +535,6 @@ public void IHandlerException_Ok()
pb.Add(a => a.EnableErrorLogger, true);
pb.AddChildContent(pb =>
{
- pb.Add(a => a.EnableErrorLogger, true);
// 按钮触发异常
pb.Add(a => a.Main, new RenderFragment(builder =>
{