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 b19ed0c commit 32650d6Copy full SHA for 32650d6
test/UnitTest/Components/DropdownTest.cs
@@ -33,6 +33,25 @@ public async Task ShowSplit_OK()
33
Assert.True(clickedWithoutRender);
34
}
35
36
+ [Fact]
37
+ public async Task IsAsync_Ok()
38
+ {
39
+ var cut = Context.RenderComponent<Dropdown<EnumEducation>>(pb =>
40
41
+ pb.Add(a => a.ShowSplit, true);
42
+ pb.Add(a => a.IsAsync, true);
43
+ pb.Add(a => a.IsKeepDisabled, false);
44
+ pb.Add(a => a.Icon, "fa-solid fa-test-icon");
45
+ pb.Add(a => a.OnClickWithoutRender, () =>
46
47
+ return Task.CompletedTask;
48
+ });
49
50
+ cut.Contains("<i class=\"fa-solid fa-test-icon\"></i>");
51
+ var button = cut.Find("button");
52
+ await cut.InvokeAsync(() => button.Click());
53
+ }
54
+
55
[Fact]
56
public void ShowSize_OK()
57
{
0 commit comments