Improve admin field names and generation-safe dialog lifecycle
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user