Skip to content

Commit dead34e

Browse files
committed
test: 更新单元测试
1 parent 8160795 commit dead34e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/UnitTest/Components/DateTimePickerTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,8 +928,9 @@ public async Task AutoClose_OK()
928928
{
929929
pb.Add(a => a.AutoClose, true);
930930
});
931+
button = cut.FindAll(".picker-panel-content .cell").First(i => i.TextContent == $"{DateTime.Today.Day}");
931932
await cut.InvokeAsync(() => button.Click());
932-
Assert.Equal(val, DateTime.MinValue);
933+
Assert.NotEqual(val, DateTime.MinValue);
933934
}
934935

935936
[Fact]

0 commit comments

Comments
 (0)