Improve admin field names and generation-safe dialog lifecycle

This commit is contained in:
Joseph Doherty
2026-11-13 21:15:58 -05:00
parent 06b1743051
commit 169149f1eb
82 changed files with 15839 additions and 73 deletions
@@ -27,6 +27,14 @@ namespace ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages;
[Trait("Category", "Unit")]
public sealed class DeleteConfirmRenderTests : BunitContext
{
/// <summary>Configure only the shared confirmation's documented local DOM adapter.</summary>
public DeleteConfirmRenderTests()
{
JSInterop.Setup<bool>("otDialog.activate", _ => true).SetResult(true);
JSInterop.SetupVoid("otDialog.update", _ => true).SetVoidResult();
JSInterop.SetupVoid("otDialog.deactivate", _ => true).SetVoidResult();
}
private const string ModalSelector = ".modal-dialog";
private IDbContextFactory<OtOpcUaConfigDbContext> NewDb(Action<OtOpcUaConfigDbContext> seed)