We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18553b6 commit 8e15e6dCopy full SHA for 8e15e6d
test/UnitTest/Components/UploadButtonTest.cs
@@ -86,7 +86,7 @@ public void ButtonUpload_IsDisabled_Ok()
86
}
87
88
[Fact]
89
- public void InputUpload_IsMultiple()
+ public async Task InputUpload_IsMultiple()
90
{
91
var cut = Context.RenderComponent<ButtonUpload<string>>(pb =>
92
@@ -108,6 +108,13 @@ public void InputUpload_IsMultiple()
108
var button = cut.Find(".btn-browser");
109
Assert.True(button.IsDisabled());
110
111
+ // 调用 Reset 方法
112
+ await cut.InvokeAsync(() => cut.Instance.Reset());
113
+
114
+ // 重置后上传按钮应该被启用
115
+ button = cut.Find(".btn-browser");
116
+ Assert.False(button.IsDisabled());
117
118
// 开启多选功能
119
cut.SetParametersAndRender(pb =>
120
0 commit comments