From c3d7d8a6a474d6f57e620b58fe7d1b68c111dc07 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sun, 7 Jun 2026 10:13:45 -0400 Subject: [PATCH] test(playwright): provision a HiLo alarm in InstanceConfigureFixture (via typed CLI flags) --- .../Deployment/InstanceConfigureFixture.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Deployment/InstanceConfigureFixture.cs b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Deployment/InstanceConfigureFixture.cs index 760ec95c..7945b7d9 100644 --- a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Deployment/InstanceConfigureFixture.cs +++ b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Deployment/InstanceConfigureFixture.cs @@ -36,6 +36,9 @@ public sealed class InstanceConfigureFixture : IAsyncLifetime /// The single bindable/overridable attribute name on the fixture template. public string AttributeName => "Value"; + /// The single non-locked alarm on the fixture template (for the override test). + public string AlarmName => "HiHi"; + /// The fixture data-connection name (for locating it in the bindings UI dropdown). public string ConnectionName { get; private set; } = string.Empty; @@ -58,6 +61,8 @@ public sealed class InstanceConfigureFixture : IAsyncLifetime // Bindings panel shows "No data-sourced attributes" and binding tests cannot run. // See the class-level XML doc for the full analysis. await CliRunner.AddAttributeAsync(TemplateId, AttributeName, "Double", dataSourceReference: AttributeName); + await CliRunner.AddAlarmAsync(TemplateId, AlarmName, "HiLo", priority: 500, + attribute: AttributeName, hi: 80, hiHi: 95); ConnectionName = CliRunner.UniqueName("conn"); ConnectionId = await CliRunner.CreateDataConnectionAsync(SiteAId, ConnectionName); AreaId = await CliRunner.CreateAreaAsync(SiteAId, CliRunner.UniqueName("cfgarea"));