Associate ScadaBridge controls, guidance and editor errors

This commit is contained in:
Joseph Doherty
2026-11-13 17:59:00 -05:00
parent 20885b6161
commit 915a8a5914
93 changed files with 24126 additions and 476 deletions
@@ -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()