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 f2fcd0d commit adaad7cCopy full SHA for adaad7c
test/UnitTest/Components/SelectTreeTest.cs
@@ -190,6 +190,20 @@ public void IsPopover_Ok()
190
cut.DoesNotContain("data-bs-toggle=\"dropdown\"");
191
}
192
193
+ [Fact]
194
+ public void IsActive_Ok()
195
+ {
196
+ var items = TreeFoo.GetTreeItems();
197
+ var cut = Context.RenderComponent<SelectTree<TreeFoo>>(builder =>
198
199
+ builder.Add(p => p.Items, items);
200
+ builder.Add(p => p.Value, new TreeFoo() { Id = "1020", Text = "Navigation Two" });
201
+ });
202
+ var nodes = cut.FindAll(".tree-content");
203
+ Assert.Equal(3, nodes.Count);
204
+ Assert.True(nodes[1].ClassName == "tree-content active");
205
+ }
206
+
207
private List<TreeViewItem<string>> BindItems { get; } =
208
[
209
new TreeViewItem<string>("Test1")
0 commit comments