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"));