test(playwright): provision a HiLo alarm in InstanceConfigureFixture (via typed CLI flags)
This commit is contained in:
+5
@@ -36,6 +36,9 @@ public sealed class InstanceConfigureFixture : IAsyncLifetime
|
|||||||
/// <summary>The single bindable/overridable attribute name on the fixture template.</summary>
|
/// <summary>The single bindable/overridable attribute name on the fixture template.</summary>
|
||||||
public string AttributeName => "Value";
|
public string AttributeName => "Value";
|
||||||
|
|
||||||
|
/// <summary>The single non-locked alarm on the fixture template (for the override test).</summary>
|
||||||
|
public string AlarmName => "HiHi";
|
||||||
|
|
||||||
/// <summary>The fixture data-connection name (for locating it in the bindings UI dropdown).</summary>
|
/// <summary>The fixture data-connection name (for locating it in the bindings UI dropdown).</summary>
|
||||||
public string ConnectionName { get; private set; } = string.Empty;
|
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.
|
// Bindings panel shows "No data-sourced attributes" and binding tests cannot run.
|
||||||
// See the class-level XML doc for the full analysis.
|
// See the class-level XML doc for the full analysis.
|
||||||
await CliRunner.AddAttributeAsync(TemplateId, AttributeName, "Double", dataSourceReference: AttributeName);
|
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");
|
ConnectionName = CliRunner.UniqueName("conn");
|
||||||
ConnectionId = await CliRunner.CreateDataConnectionAsync(SiteAId, ConnectionName);
|
ConnectionId = await CliRunner.CreateDataConnectionAsync(SiteAId, ConnectionName);
|
||||||
AreaId = await CliRunner.CreateAreaAsync(SiteAId, CliRunner.UniqueName("cfgarea"));
|
AreaId = await CliRunner.CreateAreaAsync(SiteAId, CliRunner.UniqueName("cfgarea"));
|
||||||
|
|||||||
Reference in New Issue
Block a user