Associate ScadaBridge controls, guidance and editor errors
This commit is contained in:
@@ -62,6 +62,23 @@ public class TreeViewMultiSelectTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Each checkbox names its visible node, with IDs unique across repeated trees.</summary>
|
||||
[Fact]
|
||||
public void CheckboxNames_ReferenceVisibleNodeAndRemainUniqueAcrossTrees()
|
||||
{
|
||||
var first = RenderCheckboxTree();
|
||||
var second = RenderCheckboxTree();
|
||||
var ids = new HashSet<string>();
|
||||
foreach (var tree in new[] { first, second })
|
||||
foreach (var box in tree.FindAll("input.tv-checkbox"))
|
||||
{
|
||||
var id = box.GetAttribute("aria-labelledby");
|
||||
Assert.False(string.IsNullOrWhiteSpace(id));
|
||||
Assert.True(ids.Add(id!));
|
||||
Assert.Contains(tree.Find("#" + id).TextContent.Trim(), new[] { "Folder1", "Folder2", "Leaf1a", "Leaf1b", "Leaf2a" });
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Verifies that checkbox mode renders a checkbox input for each node.</summary>
|
||||
[Fact]
|
||||
public void Checkbox_mode_renders_input_checkbox_per_node()
|
||||
|
||||
Reference in New Issue
Block a user