Associate ScadaBridge controls, guidance and editor errors

This commit is contained in:
Joseph Doherty
2026-11-13 17:59:00 -05:00
parent 20885b6161
commit 915a8a5914
93 changed files with 24126 additions and 476 deletions
@@ -39,3 +39,21 @@ Final lifecycle-refined full suite: **1556/1556 passed**, zero skips/failures, `
Native focus restoration now verifies document.activeElement after attempting the trigger; still-connected disabled/hidden/unfocusable triggers use heading fallback too. `unusable-trigger-red.json` preserves the reproduced disabled/hidden failures, `unusable-trigger-green.json` verifies all four target conditions and clean lock/inert/tabindex restoration. The retained Python test includes a span made unfocusable while still connected, not merely a replacement/disconnection. Native focus restoration now verifies document.activeElement after attempting the trigger; still-connected disabled/hidden/unfocusable triggers use heading fallback too. `unusable-trigger-red.json` preserves the reproduced disabled/hidden failures, `unusable-trigger-green.json` verifies all four target conditions and clean lock/inert/tabindex restoration. The retained Python test includes a span made unfocusable while still connected, not merely a replacement/disconnection.
Published Theme1.0.1 is restored from the official Gitea index into task-local `/tmp/scadabridge-theme101-packages`. Package SHA256995b117b0245577598c91404ed7957c071ebe3413696c8be48b419c9deb1bd5d and runtime DLL parity are in theme101-provenance.json; no stale default cache accepted. Full suite on the patch:1557/1557 passed, zero skips/failures. The added contextual TreeView checkbox regression remains SB03 work; its red failure is retained. Published Theme1.0.1 is restored from the official Gitea index into task-local `/tmp/scadabridge-theme101-packages`. Package SHA256995b117b0245577598c91404ed7957c071ebe3413696c8be48b419c9deb1bd5d and runtime DLL parity are in theme101-provenance.json; no stale default cache accepted. Full suite on the patch:1557/1557 passed, zero skips/failures. The added contextual TreeView checkbox regression remains SB03 work; its red failure is retained.
## SB03 completed source and bounded rendered acceptance (pending parent review)
Accepted dialog source is isolated in87c882ec; published patch pin is20885b61. Remaining SB03 source stays separate. The generic tree checkbox name was replaced with aria-labelledby targeting that row's visible NodeContent; per-tree scope+encoded key makes names unique for repeated trees. The regression renders two trees and resolves each checkbox's unique name target. Selection/keyboard keys are untouched.
Repeated ParameterValueForm instances now use unique encoded field IDs, keep visible primitive labels, name composite groups, name list items by canonical path, and link only their existing parse-error map. A red duplicate-ID regression and linked-error correction test passed. FlowDebugger tests' hard-coded param-* ID selectors were migrated to data-param-path while preserving every typed-payload, state, poll, validity and live/replay assertion. The first full integration run failed28 tests on old selectors; it is retained as sb03-final-suite.log. After selector-only corrections all1559 passed.
Monaco receives an additive AriaLabel creation option and updates it through existing setEditorOption when changed. All seven consumer callsites supply domain context, including parameter JSON paths. Its actual native accessible textbox (role=textbox) reports the supplied name. The hidden readonly IME textarea is intentionally aria-hidden/tabindex=-1; first rendered detector incorrectly included it, first-results.json preserves that false-positive failure. Corrected rendered results exclude aria-hidden nodes and confirm the actual textbox name. No app UI change was made to fix that measurement.
form-help-coverage.json inventories all46 form-text blocks:42 linked field/group descriptions/errors,4 informational notes (log metadata, recompile action explanation, no-running-instance and no-connection empty states). Conditional help/error IDs are emitted only with matching content. Existing OPC/Mx/ServiceLevel validator field matching and parameter parse-error behavior are preserved. Transport passphrase mismatch now announces its existing error and clears describedby/invalid on correction; its existing export test still verifies selection/user identity/export payload. API key/method checkbox groups get group-level guidance, without changing any policy or selected collection. Aggregate errors remain aggregate; fields are not falsely marked invalid by unrelated submission failures.
Rendered matrix: actual SMS and SMTP form components plus repeated Mx/parameter/tree and actual Monaco components at1440/390, six cases pass (forms-browser/results.json, six screenshots). No duplicate IDs, unresolved for/describedby targets, unnamed exposed native fields, or browser errors in those samples. Visual inspection confirms labels/forms retain compact incumbent layout. This directly composed synthetic fixture is not authenticated application route coverage; repository reads are empty and every non-Get proxy operation rejects. No save/test-send/verify/trust/deploy was clicked.
Source-backed inventory plus rendered representative samples and the full integration suite establish this batch's acceptance; they do not imply an assistive-technology certification or complete deployed role matrix. SB00's full-route baseline and Secrets package adoption remain separate pending gates. Frozen source hashes are sb03-source-freeze.json. No SB04+ implementation yet.
### Final SB03 peer correction
Parent review found the raw-JSON escape-hatch error was not described by its composite host. The existing parse-error state now sets invalidity/description on the named `.param-json-editor` group; Monaco retains its domain-specific textbox name. The invalid JSON → valid JSON correction regression fails for the missing role/relationship first, then passes with related ParameterValueForm/Monaco/TreeView tests (`raw-json-association-red.log`, `raw-json-association-green.log`). No validator/value projection change. Last full frozen suite1559/1559 is retained; only this narrow relationship and one regression followed it, with parent approval to use focused verification rather than rerun all tests.
@@ -0,0 +1,25 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
Passed! - Failed: 0, Passed: 98, Skipped: 0, Total: 98, Duration: 247 ms - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
@@ -0,0 +1,45 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.26] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Shared.MonacoEditorLoggingTests.CreateEditor_SuppliesAccessibleName [FAIL]
[xUnit.net 00:00:00.29] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design.ParameterValueFormTests.RepeatedForms_HaveUniqueIdsAndLinkedParseErrors [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Shared.MonacoEditorLoggingTests.CreateEditor_SuppliesAccessibleName [124 ms]
Error Message:
Assert.Equal() Failure: Values differ
Expected: Code editor
Actual: null
Stack Trace:
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Shared.MonacoEditorLoggingTests.CreateEditor_SuppliesAccessibleName() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Shared/MonacoEditorLoggingTests.cs:line 26
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design.ParameterValueFormTests.RepeatedForms_HaveUniqueIdsAndLinkedParseErrors [155 ms]
Error Message:
Assert.NotEqual() Failure: Strings are equal
Expected: Not "param-n"
Actual: "param-n"
Stack Trace:
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design.ParameterValueFormTests.RepeatedForms_HaveUniqueIdsAndLinkedParseErrors() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Design/ParameterValueFormTests.cs:line 39
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Failed! - Failed: 2, Passed: 0, Skipped: 0, Total: 2, Duration: 155 ms - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
@@ -0,0 +1,278 @@
[
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/AlarmTriggerEditor.razor",
"line": 63,
"text": "Selected attribute is @_selectedChoice.DataType \u2014 this trigger type requires a numeric attribute.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/AlarmTriggerEditor.razor",
"line": 69,
"text": "\"@_model.AttributeName\" is not in the current template. Save will still write it as-is.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/AlarmTriggerEditor.razor",
"line": 593,
"text": "A boolean C# expression \u2014 e.g. <code>Attributes[\"Temperature\"] &gt; 80</code>.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/ScriptTriggerEditor.razor",
"line": 275,
"text": "A boolean C# expression \u2014 e.g. <code>Attributes[\"Temperature\"] &gt; 80</code>.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/ScriptTriggerEditor.razor",
"line": 331,
"text": "Re-runs on a timer while the condition holds, at the script's <strong>Min time between runs</strong> interval \u2014 set that field below the script editor, or the trigger fires only once.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/DeployAllDialog.razor",
"line": 28,
"text": "A redeploy resets an instance's static attribute overrides and clears its native alarm state. Disabled instances are never deployed or re-enabled.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Deployment/FlowNodeLogPanel.razor",
"line": 26,
"text": "Lines other actors logged for these executions (Instance Actor, data connections, adapters) \u2014 what the node's log level kept, under the run's log-line cap.",
"classification": "informational metadata/action explanation/empty-state note"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/ApiMethodForm.razor",
"line": 55,
"text": "Every call to this method records its routed site steps as audit rows the Flow Debugger can replay. Adds 7\u201310 audit rows per call; for low-volume integration methods.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/ApiMethodForm.razor",
"line": 68,
"text": "No API keys configured. <a href=\"/admin/api-keys\">Create one</a> to authorize callers for this method.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/ApiMethodForm.razor",
"line": 93,
"text": "Callers must present a checked key in the <code>X-API-Key</code> header to invoke this method.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/ApiMethodForm.razor",
"line": 181,
"text": "Checks the script as saved, not unsaved edits. Recompile re-registers it on this central node, clearing a stale compile failure.",
"classification": "informational metadata/action explanation/empty-state note"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/ExternalSystemForm.razor",
"line": 71,
"text": "0 = use gateway default",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TransportImport.razor",
"line": 92,
"text": "Maximum bundle size: @Options.Value.MaxBundleSizeMb MB.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateAttributeDialog.razor",
"line": 32,
"text": "Data type is fixed once the attribute is created.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor",
"line": 93,
"text": "This is the re-fire interval for the <strong>WhileTrue</strong> trigger above.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor",
"line": 107,
"text": "Optional throttle \u2014 skips trigger invocations that fire sooner than this.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor",
"line": 122,
"text": "Per-script execution timeout. Leave blank (or 0) to use the site's global default.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor",
"line": 176,
"text": "No running instances of this template. <code>Instance</code>/<code>Attributes</code>/<code>CallScript</code> will throw.",
"classification": "informational metadata/action explanation/empty-state note"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor",
"line": 190,
"text": "Routes <code>Instance.GetAttribute/SetAttribute</code>, <code>Attributes</code>, <code>Children</code>, <code>Parent</code>, and <code>CallScript</code> to the selected live instance.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateNativeAlarmSourceDialog.razor",
"line": 31,
"text": "No OPC UA or MxGateway connections defined yet.",
"classification": "informational metadata/action explanation/empty-state note"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DbConnectionForm.razor",
"line": 33,
"text": "Treat as sensitive \u2014 visible to admins only.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DataConnectionForm.razor",
"line": 45,
"text": "Site is locked after creation.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DataConnectionForm.razor",
"line": 66,
"text": "Protocol is locked after creation.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DataConnectionForm.razor",
"line": 89,
"text": "View, trust, and remove OPC UA server certificates in the site's node-wide trusted-peer store.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DataConnectionForm.razor",
"line": 166,
"text": "Retries before failing over to backup endpoint.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DataConnectionForm.razor",
"line": 178,
"text": "Fail over when the connected endpoint's ServiceLevel stays below 200 (Degraded) for the window below and the other endpoint reports a Healthy (200+), higher level. Needed for an OtOpcUa pair in Warm redundancy; a 250/240 pair never triggers it.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateAlarmDialog.razor",
"line": 48,
"text": "Returned by the MES alarm-status API as <code>IsFlaggedForMES</code>. Instances can override this unless the alarm is locked.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/SchemaLibrary.razor",
"line": 36,
"text": "Referenced as <code>lib:@(string.IsNullOrWhiteSpace(_formName) ? \"Name\" : _formName.Trim())</code>.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TransportExport.razor",
"line": 468,
"text": "Strength: @strengthLabel \u00b7 minimum 8 characters.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TransportExport.razor",
"line": 478,
"text": "Passphrases do not match.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/ApiKeyForm.razor",
"line": 81,
"text": "No API methods configured. <a href=\"/design/external-systems\">Create one</a> to grant access.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/ApiKeyForm.razor",
"line": 100,
"text": "Callers using this key can invoke any checked method. At least one is required.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/LdapMappingForm.razor",
"line": 43,
"text": "Deployer role: configure site scope below after saving.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/SiteForm.razor",
"line": 65,
"text": "Retained for historical configuration only \u2014 nothing reads it at runtime. Central dials the gRPC address below.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/SiteForm.razor",
"line": 87,
"text": "Retained for historical configuration only \u2014 nothing reads it at runtime. Central dials the gRPC address below.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/InstanceCreate.razor",
"line": 56,
"text": "No templates exist yet \u2014 <a href=\"/design/templates\">create one on the Templates page</a>.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/InstanceCreate.razor",
"line": 60,
"text": "@_templateHint",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/FlowDebugger.razor",
"line": 255,
"text": "The whole request body, validated against the method's parameter definitions.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/FlowDebugger.razor",
"line": 282,
"text": "@script.TriggerType trigger \u2014 writing the attribute fires the script.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Monitoring/EventLogs.razor",
"line": 27,
"text": "Keyword search covers at most the last 7 days unless a narrower From/To is set.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmsConfiguration.razor",
"line": 90,
"text": "Provide a From Number or a Messaging Service SID (at least one is required).",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmsConfiguration.razor",
"line": 96,
"text": "Optional \u2014 used instead of the From number when set.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmsConfiguration.razor",
"line": 107,
"text": "Treat as sensitive \u2014 visible to admins only. @if (_editingSms != null) { <span>Leave blank to keep the existing token.</span> }",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmtpConfiguration.razor",
"line": 146,
"text": "Treat as sensitive \u2014 visible to admins only.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmtpConfiguration.razor",
"line": 159,
"text": "Token-endpoint URL; leave blank for the Microsoft 365 default. A <code>{tenant}</code> placeholder is substituted from the credential.",
"classification": "linked control/group description or error"
},
{
"file": "src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmtpConfiguration.razor",
"line": 165,
"text": "Scope requested from the token endpoint; leave blank for the Microsoft 365 default.",
"classification": "linked control/group description or error"
}
]
Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

@@ -0,0 +1,476 @@
[
{
"duplicateIds": [],
"labels": [
{
"text": "Gateway endpoint",
"target": "field-6672a6dcddfd402db430a648e78844ca-field-1",
"count": 1
},
{
"text": "API key",
"target": "field-6672a6dcddfd402db430a648e78844ca-field-2",
"count": 1
},
{
"text": "Client name",
"target": "field-6672a6dcddfd402db430a648e78844ca-field-3",
"count": 1
},
{
"text": "Write user id",
"target": "field-6672a6dcddfd402db430a648e78844ca-field-4",
"count": 1
},
{
"text": "Read timeout (ms)",
"target": "field-6672a6dcddfd402db430a648e78844ca-field-5",
"count": 1
},
{
"text": "Use TLS",
"target": "sample-primary-usetls",
"count": 1
},
{
"text": "Gateway endpoint",
"target": "field-12c541e85df34a8991edc0bdc7783922-field-1",
"count": 1
},
{
"text": "API key",
"target": "field-12c541e85df34a8991edc0bdc7783922-field-2",
"count": 1
},
{
"text": "Client name",
"target": "field-12c541e85df34a8991edc0bdc7783922-field-3",
"count": 1
},
{
"text": "Write user id",
"target": "field-12c541e85df34a8991edc0bdc7783922-field-4",
"count": 1
},
{
"text": "Read timeout (ms)",
"target": "field-12c541e85df34a8991edc0bdc7783922-field-5",
"count": 1
},
{
"text": "Use TLS",
"target": "sample-backup-usetls",
"count": 1
},
{
"text": "count\n Integer?",
"target": "param-91ea5655657641669ddf61638fb2e7a2-636F756E74",
"count": 1
},
{
"text": "name\n String?",
"target": "param-91ea5655657641669ddf61638fb2e7a2-64657461696C732E6E616D65",
"count": 1
},
{
"text": "count\n Integer?",
"target": "param-d44fb2711ece4925aaec90e08d2cd6ff-636F756E74",
"count": 1
},
{
"text": "name\n String?",
"target": "param-d44fb2711ece4925aaec90e08d2cd6ff-64657461696C732E6E616D65",
"count": 1
}
],
"descriptions": [],
"controls": [
{
"tag": "INPUT",
"type": "text",
"id": "field-6672a6dcddfd402db430a648e78844ca-field-1",
"name": "Gateway endpoint"
},
{
"tag": "INPUT",
"type": "password",
"id": "field-6672a6dcddfd402db430a648e78844ca-field-2",
"name": "API key"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-6672a6dcddfd402db430a648e78844ca-field-3",
"name": "Client name"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-6672a6dcddfd402db430a648e78844ca-field-4",
"name": "Write user id"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-6672a6dcddfd402db430a648e78844ca-field-5",
"name": "Read timeout (ms)"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "sample-primary-usetls",
"name": "Use TLS"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-12c541e85df34a8991edc0bdc7783922-field-1",
"name": "Gateway endpoint"
},
{
"tag": "INPUT",
"type": "password",
"id": "field-12c541e85df34a8991edc0bdc7783922-field-2",
"name": "API key"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-12c541e85df34a8991edc0bdc7783922-field-3",
"name": "Client name"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-12c541e85df34a8991edc0bdc7783922-field-4",
"name": "Write user id"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-12c541e85df34a8991edc0bdc7783922-field-5",
"name": "Read timeout (ms)"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "sample-backup-usetls",
"name": "Use TLS"
},
{
"tag": "INPUT",
"type": "number",
"id": "param-91ea5655657641669ddf61638fb2e7a2-636F756E74",
"name": "count"
},
{
"tag": "INPUT",
"type": "text",
"id": "param-91ea5655657641669ddf61638fb2e7a2-64657461696C732E6E616D65",
"name": "details.name"
},
{
"tag": "INPUT",
"type": "number",
"id": "param-d44fb2711ece4925aaec90e08d2cd6ff-636F756E74",
"name": "count"
},
{
"tag": "INPUT",
"type": "text",
"id": "param-d44fb2711ece4925aaec90e08d2cd6ff-64657461696C732E6E616D65",
"name": "details.name"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "",
"name": "tree-content-87d99926b7d248ecbb60110b1c521204-506C616E74204120636F6E66696775726174696F6E"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "",
"name": "tree-content-87d99926b7d248ecbb60110b1c521204-506C616E74204220636F6E66696775726174696F6E"
}
],
"layout": {
"innerWidth": 1440,
"scrollWidth": 1440
},
"width": 1440,
"view": "components",
"browserErrors": [],
"treeNames": [
"Plant A configuration",
"Plant B configuration"
],
"monacoName": "Synthetic local JSON payload",
"passed": true
},
{
"duplicateIds": [],
"labels": [],
"descriptions": [],
"controls": [],
"layout": {
"innerWidth": 1440,
"scrollWidth": 1440
},
"width": 1440,
"view": "sms",
"browserErrors": [],
"passed": true
},
{
"duplicateIds": [],
"labels": [],
"descriptions": [],
"controls": [],
"layout": {
"innerWidth": 1440,
"scrollWidth": 1440
},
"width": 1440,
"view": "smtp",
"browserErrors": [],
"passed": true
},
{
"duplicateIds": [],
"labels": [
{
"text": "Gateway endpoint",
"target": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-1",
"count": 1
},
{
"text": "API key",
"target": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-2",
"count": 1
},
{
"text": "Client name",
"target": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-3",
"count": 1
},
{
"text": "Write user id",
"target": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-4",
"count": 1
},
{
"text": "Read timeout (ms)",
"target": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-5",
"count": 1
},
{
"text": "Use TLS",
"target": "sample-primary-usetls",
"count": 1
},
{
"text": "Gateway endpoint",
"target": "field-37900c0eebb8400ab3de7acfb80364a2-field-1",
"count": 1
},
{
"text": "API key",
"target": "field-37900c0eebb8400ab3de7acfb80364a2-field-2",
"count": 1
},
{
"text": "Client name",
"target": "field-37900c0eebb8400ab3de7acfb80364a2-field-3",
"count": 1
},
{
"text": "Write user id",
"target": "field-37900c0eebb8400ab3de7acfb80364a2-field-4",
"count": 1
},
{
"text": "Read timeout (ms)",
"target": "field-37900c0eebb8400ab3de7acfb80364a2-field-5",
"count": 1
},
{
"text": "Use TLS",
"target": "sample-backup-usetls",
"count": 1
},
{
"text": "count\n Integer?",
"target": "param-090c9dec621142309862b46ded608bb4-636F756E74",
"count": 1
},
{
"text": "name\n String?",
"target": "param-090c9dec621142309862b46ded608bb4-64657461696C732E6E616D65",
"count": 1
},
{
"text": "count\n Integer?",
"target": "param-10152127128245bc98d7ada03727568d-636F756E74",
"count": 1
},
{
"text": "name\n String?",
"target": "param-10152127128245bc98d7ada03727568d-64657461696C732E6E616D65",
"count": 1
}
],
"descriptions": [],
"controls": [
{
"tag": "INPUT",
"type": "text",
"id": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-1",
"name": "Gateway endpoint"
},
{
"tag": "INPUT",
"type": "password",
"id": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-2",
"name": "API key"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-3",
"name": "Client name"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-4",
"name": "Write user id"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-5",
"name": "Read timeout (ms)"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "sample-primary-usetls",
"name": "Use TLS"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-37900c0eebb8400ab3de7acfb80364a2-field-1",
"name": "Gateway endpoint"
},
{
"tag": "INPUT",
"type": "password",
"id": "field-37900c0eebb8400ab3de7acfb80364a2-field-2",
"name": "API key"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-37900c0eebb8400ab3de7acfb80364a2-field-3",
"name": "Client name"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-37900c0eebb8400ab3de7acfb80364a2-field-4",
"name": "Write user id"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-37900c0eebb8400ab3de7acfb80364a2-field-5",
"name": "Read timeout (ms)"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "sample-backup-usetls",
"name": "Use TLS"
},
{
"tag": "INPUT",
"type": "number",
"id": "param-090c9dec621142309862b46ded608bb4-636F756E74",
"name": "count"
},
{
"tag": "INPUT",
"type": "text",
"id": "param-090c9dec621142309862b46ded608bb4-64657461696C732E6E616D65",
"name": "details.name"
},
{
"tag": "INPUT",
"type": "number",
"id": "param-10152127128245bc98d7ada03727568d-636F756E74",
"name": "count"
},
{
"tag": "INPUT",
"type": "text",
"id": "param-10152127128245bc98d7ada03727568d-64657461696C732E6E616D65",
"name": "details.name"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "",
"name": "tree-content-5011e83222ad41acb7cb2f00d561d8e2-506C616E74204120636F6E66696775726174696F6E"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "",
"name": "tree-content-5011e83222ad41acb7cb2f00d561d8e2-506C616E74204220636F6E66696775726174696F6E"
}
],
"layout": {
"innerWidth": 390,
"scrollWidth": 390
},
"width": 390,
"view": "components",
"browserErrors": [],
"treeNames": [
"Plant A configuration",
"Plant B configuration"
],
"monacoName": "Synthetic local JSON payload",
"passed": true
},
{
"duplicateIds": [],
"labels": [],
"descriptions": [],
"controls": [],
"layout": {
"innerWidth": 390,
"scrollWidth": 390
},
"width": 390,
"view": "sms",
"browserErrors": [],
"passed": true
},
{
"duplicateIds": [],
"labels": [],
"descriptions": [],
"controls": [],
"layout": {
"innerWidth": 390,
"scrollWidth": 390
},
"width": 390,
"view": "smtp",
"browserErrors": [],
"passed": true
}
]
@@ -0,0 +1,476 @@
[
{
"duplicateIds": [],
"labels": [
{
"text": "Gateway endpoint",
"target": "field-6672a6dcddfd402db430a648e78844ca-field-1",
"count": 1
},
{
"text": "API key",
"target": "field-6672a6dcddfd402db430a648e78844ca-field-2",
"count": 1
},
{
"text": "Client name",
"target": "field-6672a6dcddfd402db430a648e78844ca-field-3",
"count": 1
},
{
"text": "Write user id",
"target": "field-6672a6dcddfd402db430a648e78844ca-field-4",
"count": 1
},
{
"text": "Read timeout (ms)",
"target": "field-6672a6dcddfd402db430a648e78844ca-field-5",
"count": 1
},
{
"text": "Use TLS",
"target": "sample-primary-usetls",
"count": 1
},
{
"text": "Gateway endpoint",
"target": "field-12c541e85df34a8991edc0bdc7783922-field-1",
"count": 1
},
{
"text": "API key",
"target": "field-12c541e85df34a8991edc0bdc7783922-field-2",
"count": 1
},
{
"text": "Client name",
"target": "field-12c541e85df34a8991edc0bdc7783922-field-3",
"count": 1
},
{
"text": "Write user id",
"target": "field-12c541e85df34a8991edc0bdc7783922-field-4",
"count": 1
},
{
"text": "Read timeout (ms)",
"target": "field-12c541e85df34a8991edc0bdc7783922-field-5",
"count": 1
},
{
"text": "Use TLS",
"target": "sample-backup-usetls",
"count": 1
},
{
"text": "count\n Integer?",
"target": "param-91ea5655657641669ddf61638fb2e7a2-636F756E74",
"count": 1
},
{
"text": "name\n String?",
"target": "param-91ea5655657641669ddf61638fb2e7a2-64657461696C732E6E616D65",
"count": 1
},
{
"text": "count\n Integer?",
"target": "param-d44fb2711ece4925aaec90e08d2cd6ff-636F756E74",
"count": 1
},
{
"text": "name\n String?",
"target": "param-d44fb2711ece4925aaec90e08d2cd6ff-64657461696C732E6E616D65",
"count": 1
}
],
"descriptions": [],
"controls": [
{
"tag": "INPUT",
"type": "text",
"id": "field-6672a6dcddfd402db430a648e78844ca-field-1",
"name": "Gateway endpoint"
},
{
"tag": "INPUT",
"type": "password",
"id": "field-6672a6dcddfd402db430a648e78844ca-field-2",
"name": "API key"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-6672a6dcddfd402db430a648e78844ca-field-3",
"name": "Client name"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-6672a6dcddfd402db430a648e78844ca-field-4",
"name": "Write user id"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-6672a6dcddfd402db430a648e78844ca-field-5",
"name": "Read timeout (ms)"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "sample-primary-usetls",
"name": "Use TLS"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-12c541e85df34a8991edc0bdc7783922-field-1",
"name": "Gateway endpoint"
},
{
"tag": "INPUT",
"type": "password",
"id": "field-12c541e85df34a8991edc0bdc7783922-field-2",
"name": "API key"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-12c541e85df34a8991edc0bdc7783922-field-3",
"name": "Client name"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-12c541e85df34a8991edc0bdc7783922-field-4",
"name": "Write user id"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-12c541e85df34a8991edc0bdc7783922-field-5",
"name": "Read timeout (ms)"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "sample-backup-usetls",
"name": "Use TLS"
},
{
"tag": "INPUT",
"type": "number",
"id": "param-91ea5655657641669ddf61638fb2e7a2-636F756E74",
"name": "count"
},
{
"tag": "INPUT",
"type": "text",
"id": "param-91ea5655657641669ddf61638fb2e7a2-64657461696C732E6E616D65",
"name": "details.name"
},
{
"tag": "INPUT",
"type": "number",
"id": "param-d44fb2711ece4925aaec90e08d2cd6ff-636F756E74",
"name": "count"
},
{
"tag": "INPUT",
"type": "text",
"id": "param-d44fb2711ece4925aaec90e08d2cd6ff-64657461696C732E6E616D65",
"name": "details.name"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "",
"name": "tree-content-87d99926b7d248ecbb60110b1c521204-506C616E74204120636F6E66696775726174696F6E"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "",
"name": "tree-content-87d99926b7d248ecbb60110b1c521204-506C616E74204220636F6E66696775726174696F6E"
}
],
"layout": {
"innerWidth": 1440,
"scrollWidth": 1440
},
"width": 1440,
"view": "components",
"browserErrors": [],
"treeNames": [
"Plant A configuration",
"Plant B configuration"
],
"monacoName": "Synthetic local JSON payload",
"passed": true
},
{
"duplicateIds": [],
"labels": [],
"descriptions": [],
"controls": [],
"layout": {
"innerWidth": 1440,
"scrollWidth": 1440
},
"width": 1440,
"view": "sms",
"browserErrors": [],
"passed": true
},
{
"duplicateIds": [],
"labels": [],
"descriptions": [],
"controls": [],
"layout": {
"innerWidth": 1440,
"scrollWidth": 1440
},
"width": 1440,
"view": "smtp",
"browserErrors": [],
"passed": true
},
{
"duplicateIds": [],
"labels": [
{
"text": "Gateway endpoint",
"target": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-1",
"count": 1
},
{
"text": "API key",
"target": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-2",
"count": 1
},
{
"text": "Client name",
"target": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-3",
"count": 1
},
{
"text": "Write user id",
"target": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-4",
"count": 1
},
{
"text": "Read timeout (ms)",
"target": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-5",
"count": 1
},
{
"text": "Use TLS",
"target": "sample-primary-usetls",
"count": 1
},
{
"text": "Gateway endpoint",
"target": "field-37900c0eebb8400ab3de7acfb80364a2-field-1",
"count": 1
},
{
"text": "API key",
"target": "field-37900c0eebb8400ab3de7acfb80364a2-field-2",
"count": 1
},
{
"text": "Client name",
"target": "field-37900c0eebb8400ab3de7acfb80364a2-field-3",
"count": 1
},
{
"text": "Write user id",
"target": "field-37900c0eebb8400ab3de7acfb80364a2-field-4",
"count": 1
},
{
"text": "Read timeout (ms)",
"target": "field-37900c0eebb8400ab3de7acfb80364a2-field-5",
"count": 1
},
{
"text": "Use TLS",
"target": "sample-backup-usetls",
"count": 1
},
{
"text": "count\n Integer?",
"target": "param-090c9dec621142309862b46ded608bb4-636F756E74",
"count": 1
},
{
"text": "name\n String?",
"target": "param-090c9dec621142309862b46ded608bb4-64657461696C732E6E616D65",
"count": 1
},
{
"text": "count\n Integer?",
"target": "param-10152127128245bc98d7ada03727568d-636F756E74",
"count": 1
},
{
"text": "name\n String?",
"target": "param-10152127128245bc98d7ada03727568d-64657461696C732E6E616D65",
"count": 1
}
],
"descriptions": [],
"controls": [
{
"tag": "INPUT",
"type": "text",
"id": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-1",
"name": "Gateway endpoint"
},
{
"tag": "INPUT",
"type": "password",
"id": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-2",
"name": "API key"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-3",
"name": "Client name"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-4",
"name": "Write user id"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-e4b296984e6f4d5a9a79460a46a49aaa-field-5",
"name": "Read timeout (ms)"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "sample-primary-usetls",
"name": "Use TLS"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-37900c0eebb8400ab3de7acfb80364a2-field-1",
"name": "Gateway endpoint"
},
{
"tag": "INPUT",
"type": "password",
"id": "field-37900c0eebb8400ab3de7acfb80364a2-field-2",
"name": "API key"
},
{
"tag": "INPUT",
"type": "text",
"id": "field-37900c0eebb8400ab3de7acfb80364a2-field-3",
"name": "Client name"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-37900c0eebb8400ab3de7acfb80364a2-field-4",
"name": "Write user id"
},
{
"tag": "INPUT",
"type": "number",
"id": "field-37900c0eebb8400ab3de7acfb80364a2-field-5",
"name": "Read timeout (ms)"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "sample-backup-usetls",
"name": "Use TLS"
},
{
"tag": "INPUT",
"type": "number",
"id": "param-090c9dec621142309862b46ded608bb4-636F756E74",
"name": "count"
},
{
"tag": "INPUT",
"type": "text",
"id": "param-090c9dec621142309862b46ded608bb4-64657461696C732E6E616D65",
"name": "details.name"
},
{
"tag": "INPUT",
"type": "number",
"id": "param-10152127128245bc98d7ada03727568d-636F756E74",
"name": "count"
},
{
"tag": "INPUT",
"type": "text",
"id": "param-10152127128245bc98d7ada03727568d-64657461696C732E6E616D65",
"name": "details.name"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "",
"name": "tree-content-5011e83222ad41acb7cb2f00d561d8e2-506C616E74204120636F6E66696775726174696F6E"
},
{
"tag": "INPUT",
"type": "checkbox",
"id": "",
"name": "tree-content-5011e83222ad41acb7cb2f00d561d8e2-506C616E74204220636F6E66696775726174696F6E"
}
],
"layout": {
"innerWidth": 390,
"scrollWidth": 390
},
"width": 390,
"view": "components",
"browserErrors": [],
"treeNames": [
"Plant A configuration",
"Plant B configuration"
],
"monacoName": "Synthetic local JSON payload",
"passed": true
},
{
"duplicateIds": [],
"labels": [],
"descriptions": [],
"controls": [],
"layout": {
"innerWidth": 390,
"scrollWidth": 390
},
"width": 390,
"view": "sms",
"browserErrors": [],
"passed": true
},
{
"duplicateIds": [],
"labels": [],
"descriptions": [],
"controls": [],
"layout": {
"innerWidth": 390,
"scrollWidth": 390
},
"width": 390,
"view": "smtp",
"browserErrors": [],
"passed": true
}
]
Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

@@ -0,0 +1,25 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
Passed! - Failed: 0, Passed: 129, Skipped: 0, Total: 129, Duration: 280 ms - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
@@ -0,0 +1,19 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
/Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor(79,25): error RZ10007: The attribute 'aria-describedby' is used two or more times for this element. Attributes must be unique (case-insensitive). [/Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/ZB.MOM.WW.ScadaBridge.CentralUI.csproj]
@@ -0,0 +1,107 @@
[
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/ExternalSystemForm.razor",
"0 = use gateway default",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor",
"This is the re-fire",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor",
"Optional throttle",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor",
"Per-script execution",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor",
"Routes <code>Instance",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DbConnectionForm.razor",
"Treat as sensitive",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DataConnectionForm.razor",
"Site is locked",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DataConnectionForm.razor",
"Protocol is locked",
"no matching control"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DataConnectionForm.razor",
"Retries before failing",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/SchemaLibrary.razor",
"Referenced as",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TransportExport.razor",
"Strength:",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/SiteForm.razor",
"Retained for historical",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/SiteForm.razor",
"Retained for historical",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/InstanceCreate.razor",
"@_templateHint",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/FlowDebugger.razor",
"@script.TriggerType trigger",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmsConfiguration.razor",
"Provide a From Number",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmsConfiguration.razor",
"Optional \u2014 used instead",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmsConfiguration.razor",
"Treat as sensitive",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmtpConfiguration.razor",
"Treat as sensitive",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmtpConfiguration.razor",
"Token-endpoint URL",
"linked"
],
[
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmtpConfiguration.razor",
"Scope requested",
"linked"
]
]
@@ -0,0 +1,36 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.40] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design.ParameterValueFormMonacoSchemaTests.EscapeHatch_ParseErrorIsLinkedToNamedGroupUntilCorrection [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design.ParameterValueFormMonacoSchemaTests.EscapeHatch_ParseErrorIsLinkedToNamedGroupUntilCorrection [31 ms]
Error Message:
Assert.Equal() Failure: Strings differ
↓ (pos 0)
Expected: "false"
Actual: "true"
↑ (pos 0)
Stack Trace:
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design.ParameterValueFormMonacoSchemaTests.EscapeHatch_ParseErrorIsLinkedToNamedGroupUntilCorrection() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Design/ParameterValueFormMonacoSchemaTests.cs:line 53
--- End of stack trace from previous location ---
Failed! - Failed: 1, Passed: 98, Skipped: 0, Total: 99, Duration: 278 ms - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
@@ -0,0 +1,34 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.35] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design.ParameterValueFormMonacoSchemaTests.EscapeHatch_ParseErrorIsLinkedToNamedGroupUntilCorrection [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design.ParameterValueFormMonacoSchemaTests.EscapeHatch_ParseErrorIsLinkedToNamedGroupUntilCorrection [202 ms]
Error Message:
Assert.Equal() Failure: Strings differ
Expected: "group"
Actual: null
Stack Trace:
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design.ParameterValueFormMonacoSchemaTests.EscapeHatch_ParseErrorIsLinkedToNamedGroupUntilCorrection() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Design/ParameterValueFormMonacoSchemaTests.cs:line 47
--- End of stack trace from previous location ---
Failed! - Failed: 1, Passed: 0, Skipped: 0, Total: 1, Duration: 208 ms - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,26 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
Results File: /Users/dohertj2/Desktop/ScadaBridge/docs/ui-consistency/evidence/sb01-03/sb03-acceptance-corrected.trx
Passed! - Failed: 0, Passed: 1559, Skipped: 0, Total: 1559, Duration: 33 s - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
@@ -0,0 +1,879 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:02.05] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.LiveRun_WithNoPendingStep_NeverPolls [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.LiveRun_WithNoPendingStep_NeverPolls [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.LiveRun_WithNoPendingStep_NeverPolls() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 681
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:03.07] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_RequiredListItemField_LeftEmpty_KeepsRunDisabled [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_RequiredListItemField_LeftEmpty_KeepsRunDisabled [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-SAPID'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_RequiredListItemField_LeftEmpty_KeepsRunDisabled() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1349
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:04.08] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.Run_StandbyNodeRefusal_ShowsInlineAlertVerbatim [FAIL]
[xUnit.net 00:00:04.09] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ScriptEntry_CallKind_ShowsTheParameterForm_AndRunsWithParameters [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.Run_StandbyNodeRefusal_ShowsInlineAlertVerbatim [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.Run_StandbyNodeRefusal_ShowsInlineAlertVerbatim() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 345
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ScriptEntry_CallKind_ShowsTheParameterForm_AndRunsWithParameters [10 ms]
Error Message:
Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-n'
Stack Trace:
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.RenderedComponentExtensions.Find[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ScriptEntry_CallKind_ShowsTheParameterForm_AndRunsWithParameters() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 794
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
[xUnit.net 00:00:05.10] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_ShowsTheInlineLogTruncationBadge [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_ShowsTheInlineLogTruncationBadge [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunWith(FlowDebugOutcome outcome) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1079
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_ShowsTheInlineLogTruncationBadge() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1116
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:06.11] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ParkedNode_Retry_ConfirmsRelaysAndRepollsUntilNotParked [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ParkedNode_Retry_ConfirmsRelaysAndRepollsUntilNotParked [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunToParkedNode(Guid root, FlowDebugOutcome parked) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 436
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ParkedNode_Retry_ConfirmsRelaysAndRepollsUntilNotParked() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 454
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:07.16] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_OmitsLogCounts_WhenTheRunLoggedNothing [FAIL]
[xUnit.net 00:00:08.19] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_SwitchingMethods_ResetsTheFormAndItsValidity [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_OmitsLogCounts_WhenTheRunLoggedNothing [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunWith(FlowDebugOutcome outcome) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1079
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_OmitsLogCounts_WhenTheRunLoggedNothing() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1102
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_SwitchingMethods_ResetsTheFormAndItsValidity [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_SwitchingMethods_ResetsTheFormAndItsValidity() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1435
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:09.20] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.Run_SendsTypedInputs_AndRendersTheReturnedGraph [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.Run_SendsTypedInputs_AndRendersTheReturnedGraph [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.Run_SendsTypedInputs_AndRendersTheReturnedGraph() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 317
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:10.21] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.LiveRun_WithPendingOutbound_PollsReplayUntilTerminal [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.LiveRun_WithPendingOutbound_PollsReplayUntilTerminal [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.LiveRun_WithPendingOutbound_PollsReplayUntilTerminal() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 585
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:11.22] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_RawJson_InvalidDocument_BlocksRun_AndShowsTheError [FAIL]
[xUnit.net 00:00:11.23] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ScriptEntry_SwitchingFromAnInvalidFormToANoParameterScript_EnablesRun [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_RawJson_InvalidDocument_BlocksRun_AndShowsTheError [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_RawJson_InvalidDocument_BlocksRun_AndShowsTheError() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1368
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ScriptEntry_SwitchingFromAnInvalidFormToANoParameterScript_EnablesRun [5 ms]
Error Message:
Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-n'
Stack Trace:
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.RenderedComponentExtensions.Find[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ChooseScriptWithAnInvalidParameter() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 854
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ScriptEntry_SwitchingFromAnInvalidFormToANoParameterScript_EnablesRun() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 884
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[xUnit.net 00:00:12.23] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StepDetail_LogHint_SelectsTheSiblingStepCarryingTheOtherLines [FAIL]
[xUnit.net 00:00:13.24] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_ShowsLogCountsByLevel [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StepDetail_LogHint_SelectsTheSiblingStepCarryingTheOtherLines [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunWith(FlowDebugOutcome outcome) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1079
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StepDetail_LogHint_SelectsTheSiblingStepCarryingTheOtherLines() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1175
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_ShowsLogCountsByLevel [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunWith(FlowDebugOutcome outcome) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1079
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_ShowsLogCountsByLevel() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1091
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:14.26] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ParkedNode_Discard_UsesDangerConfirm_AndDoesNotPollWhenRefused [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ParkedNode_Discard_UsesDangerConfirm_AndDoesNotPollWhenRefused [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunToParkedNode(Guid root, FlowDebugOutcome parked) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 436
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ParkedNode_Discard_UsesDangerConfirm_AndDoesNotPollWhenRefused() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 476
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:15.26] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RefreshOutcomes_ClearsTheInlineCapBadge_OnceItMergesInMoreLogRows [FAIL]
[xUnit.net 00:00:16.27] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.Run_WithNoSiteStepsAndNoChildId_ShowsSiteNotTracedLabel [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RefreshOutcomes_ClearsTheInlineCapBadge_OnceItMergesInMoreLogRows [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunWith(FlowDebugOutcome outcome) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1079
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RefreshOutcomes_ClearsTheInlineCapBadge_OnceItMergesInMoreLogRows() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1237
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.Run_WithNoSiteStepsAndNoChildId_ShowsSiteNotTracedLabel [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.Run_WithNoSiteStepsAndNoChildId_ShowsSiteNotTracedLabel() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 383
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:17.28] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.PendingRefresh_KeepsStepsTheLiveRunAlreadyHad_WhenReplayLagsBehindTelemetry [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.PendingRefresh_KeepsStepsTheLiveRunAlreadyHad_WhenReplayLagsBehindTelemetry [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.PendingRefresh_KeepsStepsTheLiveRunAlreadyHad_WhenReplayLagsBehindTelemetry() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 658
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:18.29] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RefreshOutcomes_KeepsTheInlineCapBadge_WhenTheReReadBringsBackNoNewLines [FAIL]
[xUnit.net 00:00:19.29] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StateChip_StaysCompleted_WhenTheOnlyErrorsAreLogLines [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RefreshOutcomes_KeepsTheInlineCapBadge_WhenTheReReadBringsBackNoNewLines [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunWith(FlowDebugOutcome outcome) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1079
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RefreshOutcomes_KeepsTheInlineCapBadge_WhenTheReReadBringsBackNoNewLines() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1256
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StateChip_StaysCompleted_WhenTheOnlyErrorsAreLogLines [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunWith(FlowDebugOutcome outcome) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1079
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StateChip_StaysCompleted_WhenTheOnlyErrorsAreLogLines() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1141
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:20.30] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_LegacyFlatStringEntry_ThatNoLongerValidates_IsDropped [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_LegacyFlatStringEntry_ThatNoLongerValidates_IsDropped [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_LegacyFlatStringEntry_ThatNoLongerValidates_IsDropped() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1473
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:21.30] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_RawJson_ValidDocument_IsSentVerbatim_AndSurvivesTheSwitchBackToForm [FAIL]
[xUnit.net 00:00:22.33] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ParkedNode_ConfirmDeclined_NeverRelays [FAIL]
[xUnit.net 00:00:22.34] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ChoosingAMethod_ShowsThePredictedGraph_AndTheInputsForm [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_RawJson_ValidDocument_IsSentVerbatim_AndSurvivesTheSwitchBackToForm [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-SAPID'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_RawJson_ValidDocument_IsSentVerbatim_AndSurvivesTheSwitchBackToForm() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1404
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ParkedNode_ConfirmDeclined_NeverRelays [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunToParkedNode(Guid root, FlowDebugOutcome parked) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 436
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ParkedNode_ConfirmDeclined_NeverRelays() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 495
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ChoosingAMethod_ShowsThePredictedGraph_AndTheInputsForm [9 ms]
Error Message:
Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ChoosingAMethod_ShowsThePredictedGraph_AndTheInputsForm() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 300
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[xUnit.net 00:00:23.34] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_ArrayOfObjects_RoundTripsFromItemEditorsToTheRunPayload [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_ArrayOfObjects_RoundTripsFromItemEditorsToTheRunPayload [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-SAPID'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_ArrayOfObjects_RoundTripsFromItemEditorsToTheRunPayload() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1317
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:24.37] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_NotesLinesThatCouldNotBePlacedOnAStep [FAIL]
[xUnit.net 00:00:25.38] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_PersistedValueTree_IsRestoredIntoTheForm [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_NotesLinesThatCouldNotBePlacedOnAStep [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The CSS selector and/or predicate did not result in a matching element before the timeout period passed.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 363
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElementCore[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 353
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForElement[TComponent](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForElement.cs:line 21
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.FillRequiredMethodInput(IRenderedComponent`1 cut) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1301
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.RunWith(FlowDebugOutcome outcome) in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1079
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.StatusStrip_NotesLinesThatCouldNotBePlacedOnAStep() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1127
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at Bunit.Extensions.WaitForHelpers.WaitForElementHelper`2.<>c__DisplayClass5_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForElementHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_PersistedValueTree_IsRestoredIntoTheForm [1 s]
Error Message:
Bunit.Extensions.WaitForHelpers.WaitForFailedException : The assertion did not pass within the timeout period.
If this test does not fail consistently, the reason may be that
the wait timeout is too short, and the runtime did not have enough
time to complete the necessary number of renders of the component under test.
This can happen on highly utilized or slower hardware, for example.
To determine if this is the cause, compare the check and render count(s) below
and see if they match what is expected. If they do not,
consider increasing the timeout, either at the individual
method call level, e.g. WaitForElement("div", TimeSpan.FromSeconds(15)),
or via the static TestContext.DefaultWaitTimeout property.
Check count: 1.
Component render count: 4.
Total render count across all components: 0.
---- Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-MachineCode'
Stack Trace:
at Bunit.RenderedComponentWaitForHelperExtensions.WaitForAssertion[TComponent](IRenderedComponent`1 renderedComponent, Action assertion, Nullable`1 timeout) in /_/src/bunit/Extensions/WaitForHelpers/RenderedComponentWaitForHelperExtensions.WaitForState.cs:line 77
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.MethodEntry_PersistedValueTree_IsRestoredIntoTheForm() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1456
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.<>c__DisplayClass80_0.<MethodEntry_PersistedValueTree_IsRestoredIntoTheForm>b__0() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 1456
at Bunit.Extensions.WaitForHelpers.WaitForAssertionHelper`1.<>c__DisplayClass6_0.<.ctor>b__0() in /_/src/bunit/Extensions/WaitForHelpers/WaitForAssertionHelper.cs:line 35
at Bunit.Extensions.WaitForHelpers.WaitForHelper`2.OnAfterRender(Object sender, EventArgs args) in /_/src/bunit/Extensions/WaitForHelpers/WaitForHelper.cs:line 173
[xUnit.net 00:00:25.41] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ScriptEntry_SwitchingBetweenCallKindScripts_ResetsTheFormAndValidity [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ScriptEntry_SwitchingBetweenCallKindScripts_ResetsTheFormAndValidity [3 ms]
Error Message:
Bunit.ElementNotFoundException : No elements were found that matches the selector '#param-n'
Stack Trace:
at Bunit.RenderedComponentExtensions.Find[TComponent,TElement](IRenderedComponent`1 renderedComponent, String cssSelector) in /_/src/bunit/Extensions/RenderedComponentExtensions.cs:line 42
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ChooseScriptWithAnInvalidParameter() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 854
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Deployment.FlowDebuggerPageTests.ScriptEntry_SwitchingBetweenCallKindScripts_ResetsTheFormAndValidity() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs:line 865
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Results File: /Users/dohertj2/Desktop/ScadaBridge/docs/ui-consistency/evidence/sb01-03/sb03-acceptance.trx
Failed! - Failed: 28, Passed: 1531, Skipped: 0, Total: 1559, Duration: 33 s - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
@@ -0,0 +1,26 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
Results File: /Users/dohertj2/Desktop/ScadaBridge/docs/ui-consistency/evidence/sb01-03/sb03-freeze.trx
Passed! - Failed: 0, Passed: 1559, Skipped: 0, Total: 1559, Duration: 33 s - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,26 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
Results File: /Users/dohertj2/Desktop/ScadaBridge/docs/ui-consistency/evidence/sb01-03/sb03-frozen.trx
Passed! - Failed: 0, Passed: 1559, Skipped: 0, Total: 1559, Duration: 33 s - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
@@ -0,0 +1,26 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
Results File: /Users/dohertj2/Desktop/ScadaBridge/docs/ui-consistency/evidence/sb01-03/sb03-reviewed-final.trx
Passed! - Failed: 0, Passed: 1559, Skipped: 0, Total: 1559, Duration: 33 s - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
@@ -0,0 +1,67 @@
{
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Audit/AuditFilterBar.razor": "2bcdc0f3aa0515ab8f28a49b2164c0e041747274b19b1ee90707f52e4e43b8ba",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Dialogs/NodeBrowserDialog.razor": "8fef5fd69d12f2e31cbc68f5474eb5f226f7a6f80e7d29e9b09293adc950e519",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Forms/MxGatewayEndpointEditor.razor": "de40d6b4ca2ec6b11d811054206271a09dd2aec85275705108206b3c80f28777",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Forms/OpcUaEndpointEditor.razor": "99aaea03e00e32b5b3a09249bd6c4a4f7a3cc018c89e5232db46f2923e2774a2",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/ApiKeyForm.razor": "e570a86aedfbf07e371fd97c8059b731fa3cc6d59fbd9c645bbd8a984b2e3969",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/ApiKeys.razor": "3652d2bed8794b5c30d13c4a4ed57b3c93e71bb5d3421cd2d3f24d8a6b2b0ff3",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/LdapMappingForm.razor": "0586fd3a24db512ed62c179c08921a8fb2a3c119a0cbb1675a9e4e27768438e9",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/LdapMappings.razor": "fb111ea682cb74b2887e1871d6a5360256b2b1207bcd55b0870c0e06156ef4cd",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/SiteForm.razor": "2873169c1aff2afb131cefa667410efec6ea0bacf02644b0027c9aaa987e5dbc",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Admin/Sites.razor": "6901a47bba7b464908a3c6a31ff3261d981d9cbd93b27b078d7e0e8b2ec0f7a9",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/CreateAreaDialog.razor": "fa14117412ef5e92681a101e914853f2422a3d6507e6ffaf8b9719ba35424d37",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/DebugView.razor": "eb3ab54cdc1ce9eba5501f7262b25cd04e2373a3a189dd85a32309c2da5867f4",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/FlowDebugger.razor": "241979045163e15f707f28f6614976aae495e0e36b430785717e0cddb3c37316",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/InstanceConfigure.razor": "a1d4b8f46d373eed1a14b861783dbc64fdf739ca406301fe7b8d425248f1cb11",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/InstanceCreate.razor": "a85eb8e0d8a8b907e3b8102c9f8ac6b6d3cc907bfc65c9cc2a85ec0cafec9352",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/MoveAreaDialog.razor": "b8b85d377676c3483ecd125502aa3c515046932c1c2c181ad20b4ecbe002f158",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/MoveInstanceDialog.razor": "feec5322422159685fd8ea4721709e244bc9c453efdd26c04a45ee536c7cb9a3",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Deployment/Topology.razor": "e3c91d6fc976c86007110ac0a819479f822540cbe365934223450c4835384f0e",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/ApiMethodForm.razor": "17fd593bd83b7071bf6284d826385194f8e83e2faa7418e3404e62661481d520",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DataConnectionForm.razor": "6b2230d07556ae49d775339443ea71bd16a000127011f240b3a7b77c1fbff4b9",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DataConnections.razor": "12fc2ff8a5c6b744d4c70760fedf6b5f9a43249743b1c18e53ca906cf1c6d0cd",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/DbConnectionForm.razor": "8b8f5df35fea669ab970251e8ff806433a2a381cb4b27e7867ff68eed9647c87",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/ExternalSystemForm.razor": "c6676d330b3648656aec7016b7c54e717dcee63ffcc214de76004bc08cd9ef20",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/ExternalSystems.razor": "f98bc6a6bf4586b927ad5edfe9047fbfe6300fb394ecdbf641398a4524161892",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/SchemaLibrary.razor": "edb6c10cc68c1b20defb1871fa69c67973ab86c2c35e81b00e45d8ad1a2c47f3",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/SharedScriptForm.razor": "36331cd27d41774d894b2d179322b6acc0d71d621f9a960528fe68766044cf3f",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/SharedScripts.razor": "a525cb72c6dbcdc6bf705a9da57d8ab36f410c6520c4aedca3409d06d90a2668",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateAlarmDialog.razor": "c7692a2fea772fd48ed089b6d1ec0848238bd2c3c51af2780bff04d8cba40d3a",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateAttributeDialog.razor": "28dbaef42cf94290abaede243548e48e4e1f3d1333c6841e28f171dc99f01657",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateCreate.razor": "38074169da5d3d8c890d2440eea13e92209d0b62553b083589041d80983ef1da",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateEdit.razor": "a7f5431b2676a46a8dd8426e53229e08af44cc4b3496b9380348e609a977921a",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor": "2446ae972b91d2f9dca52a0f04a0d9cf948a15cf6bcfb91b30427762f8de8cb6",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/Templates.razor": "6f253bc40b8b7fff66257c1e542ce237205cd1c5008219762a32a6f53628665b",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TransportExport.razor": "d7cb5a6a013d714f1993856f4e6b3bb15aee21201743538e2b7f6f9315959426",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TransportImport.razor": "23fd7ebeb6be48b406bd0a17e53fbf9ba731ce3a61faa962af977af5321432c3",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Monitoring/Health.razor": "0f2779609ef54edb4304599a2979048c180fe09c421d1926ce6648ecad31a898",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/NotificationListForm.razor": "a138d4d53121140f88a8ce9678ae4c9e2185cd659c6d5bc917b3daf85f28ee0b",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmsConfiguration.razor": "b52a4e87dbdbc50c2c9b4c5968381bcfd3c69346d44298017a413c792f0b6e3c",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Notifications/SmtpConfiguration.razor": "a0ab690b0759d6d6c6770183bdf781e9d8d0f5bfbac911c994fe5374f98a51f1",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Operations/SecuredWrites.razor": "72ab4d79c3dd360970333998ffeffbe13943977e27e2b272ede3558644d588ef",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/AlarmTriggerEditor.razor": "9b9b9dbe565c4736a3a22f97bdb526d0311843e0a20d5f09bca58c9ff2934490",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/AttributeListEditor.razor": "efd2a47f67187a82ad2b4d0c1324f8b283562f8d3cb1958691179c467a2db1c9",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/ComposeIntoDialog.razor": "2af91f3c923c75767827019df77e3da6908ac9094593489d426d502e71897c39",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/DataTable.razor": "65deb2f88b520f1c7e809cc0f0021d636166f49c125f8f33a516c44876d592a4",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/DeployAllDialog.razor": "f61ce4e4e3909f54e394ee40cb4fdb12e8626cd0ca19a05d7a95835ffa1e4d42",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/MonacoEditor.razor": "5d2857baf99d3bcfd71b5680107630f1edfa2ba9a5b52073ac9e9da92e25c68a",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/MoveDataConnectionDialog.razor": "21aa5fccf1b82310d45fb5fe19623a1e6946ddb16c7df4f3d0e687e2326405b5",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/MoveFolderDialog.razor": "82cb7bab20b5e3d7660b8d8e56e658037eef8d3cf3bb3aa101566e85169f6d29",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/MoveTemplateDialog.razor": "2b9d29ef921a5996d11d0cbacc13fdb7ee291678da8c8827fa66de0b86bd264e",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/MultiSelectDropdown.razor": "7b3a13b67e996b8380703cd0264bf1db3f962017614659ee50aa0bbcc6ca6428",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/MultiSelectDropdown.razor.cs": "85bcd2c03d96e695976ddab9e41777f7614e0ac4116ba2cfc13b990635fb4922",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/ParameterValueForm.razor": "7fa3ffcb09274b8b23c7cd8434efdff0d7d7b1fb828b6cbd0420b22e90a39432",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/RenameFolderDialog.razor": "5a9104184180f23e718df8a9866b465fb2cd711064f6a6bdd40ac5506ffe9821",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/SchemaBuilder.razor": "182c15aa50f8528da4aac6c30ae2bcc38caf95c2e0f43dcf732b8d8b7d685ba4",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/ScriptTriggerEditor.razor": "baeda2c1dc80ecb92042157946d9b93796f02d86dea3e3433578a44679a45b59",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/TemplatePickerDialog.razor": "5415a5cd85df0276a058a33578a998a9fcd143181c9638a0a7dc3825cac16cdc",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Shared/TreeView.razor": "99c35c99f5db339e4fce75d1d68903accd90028e5c03e592dd02f2799e04fff4",
"src/ZB.MOM.WW.ScadaBridge.CentralUI/wwwroot/js/monaco-init.js": "b4d7d2c47279bf247390733a1c253ba95e2b0c99bd6ada03510d80701cacc5e4",
"tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Deployment/FlowDebuggerPageTests.cs": "1ffff52e458302f2164656edded9620c6c69227ce49325fff9e521c455675a4c",
"tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Design/ParameterValueFormTests.cs": "3b6fef8ea94441fe3ae38fcbd8cae9981b83ca460bfe26ac23df1f2f4ed02f0a",
"tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Forms/OpcUaEndpointEditorTests.cs": "778553af9313e01eae482eb509dd0f1d930fd7431c35b916d18c5286c93449ba",
"tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Pages/Design/TransportExportPageTests.cs": "123b3c31bf59f5a1b39ffc67a8cc5e0102bbbeefacbee6905f3fd22504baf279",
"tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Shared/MonacoEditorLoggingTests.cs": "67f4d8cb757dc74d9f16916e1b84281d313c3c08b291857609481ef26adfeebe",
"tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/TreeViewMultiSelectTests.cs": "aedd611175a4babfe67b50dab1a1e9dba07512c9ba6f869bd729534984d47477",
"tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Shared/ControlLabelTests.cs": "bc88e1ec88b635379ded223a467b775223fa8686b510c91bd370790b75693e4c"
}
@@ -0,0 +1,34 @@
ZB.MOM.WW.ScadaBridge.Commons -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Commons/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Commons.dll
ZB.MOM.WW.ScadaBridge.KpiHistory -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.KpiHistory/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.KpiHistory.dll
ZB.MOM.WW.ScadaBridge.ConfigurationDatabase -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ConfigurationDatabase.dll
ZB.MOM.WW.ScadaBridge.Communication -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Communication/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Communication.dll
ZB.MOM.WW.ScadaBridge.Security -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Security/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Security.dll
ZB.MOM.WW.ScadaBridge.ScriptAnalysis -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ScriptAnalysis/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ScriptAnalysis.dll
ZB.MOM.WW.ScadaBridge.SiteEventLogging -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.SiteEventLogging/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.SiteEventLogging.dll
ZB.MOM.WW.ScadaBridge.StoreAndForward -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.StoreAndForward/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.StoreAndForward.dll
ZB.MOM.WW.ScadaBridge.TemplateEngine -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.TemplateEngine/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.TemplateEngine.dll
ZB.MOM.WW.ScadaBridge.AuditLog -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.AuditLog/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.AuditLog.dll
ZB.MOM.WW.ScadaBridge.Transport -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.Transport/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.Transport.dll
ZB.MOM.WW.ScadaBridge.DeploymentManager -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.DeploymentManager/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.DeploymentManager.dll
ZB.MOM.WW.ScadaBridge.NotificationService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationService.dll
ZB.MOM.WW.ScadaBridge.HealthMonitoring -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.HealthMonitoring/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.HealthMonitoring.dll
ZB.MOM.WW.ScadaBridge.ExternalSystemGateway -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ExternalSystemGateway.dll
ZB.MOM.WW.ScadaBridge.InboundAPI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.InboundAPI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.InboundAPI.dll
ZB.MOM.WW.ScadaBridge.NotificationOutbox -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.NotificationOutbox/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.NotificationOutbox.dll
ZB.MOM.WW.ScadaBridge.ManagementService -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.ManagementService/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.ManagementService.dll
ZB.MOM.WW.ScadaBridge.CentralUI -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.dll
ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker -> /Users/dohertj2/Desktop/ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.SandboxWorker.dll
ZB.MOM.WW.ScadaBridge.CentralUI.Tests -> /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll
Test run for /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/bin/Release/net10.0/ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.41] ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Pages.Design.TransportExportPageTests.Step4_triggers_ExportAsync_with_selected_artifacts_and_user_identity [FAIL]
Failed ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Pages.Design.TransportExportPageTests.Step4_triggers_ExportAsync_with_selected_artifacts_and_user_identity [5 ms]
Error Message:
Assert.Equal() Failure: Strings differ
Expected: "true"
Actual: null
Stack Trace:
at ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Pages.Design.TransportExportPageTests.Step4_triggers_ExportAsync_with_selected_artifacts_and_user_identity() in /Users/dohertj2/Desktop/ScadaBridge/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Pages/Design/TransportExportPageTests.cs:line 309
--- End of stack trace from previous location ---
Failed! - Failed: 1, Passed: 11, Skipped: 0, Total: 12, Duration: 289 ms - ZB.MOM.WW.ScadaBridge.CentralUI.Tests.dll (net10.0)
+18
View File
@@ -0,0 +1,18 @@
from pathlib import Path
import json
from playwright.sync_api import sync_playwright
out=Path('docs/ui-consistency/evidence/sb01-03/forms-browser');out.mkdir(exist_ok=True);results=[]
with sync_playwright() as p:
b=p.chromium.launch(channel='chromium')
for width in [1440,390]:
for view in ['components','sms','smtp']:
page=b.new_page(viewport={'width':width,'height':1000},reduced_motion='reduce');errors=[];page.on('pageerror',lambda e:errors.append(str(e)));page.goto('http://127.0.0.1:5201/form-samples?view='+view,wait_until='networkidle')
if view=='sms':page.get_by_role('button',name='Add SMS configuration',exact=True).click()
if view=='smtp':page.get_by_role('button',name='Add SMTP configuration',exact=True).click()
if view=='components':page.locator('.monaco-editor textarea').wait_for();page.locator('#parameter-samples input[type=number]').first.fill('3');page.locator('#parameter-samples input[type=number]').first.dispatch_event('input');page.wait_for_timeout(200)
record=page.evaluate(r'''()=>{let ids=[...document.querySelectorAll('[id]')].map(e=>e.id);let duplicateIds=ids.filter((id,i)=>ids.indexOf(id)!==i);let labels=[...document.querySelectorAll('label[for]')].map(e=>({text:e.textContent.trim(),target:e.htmlFor,count:document.querySelectorAll('[id="'+e.htmlFor+'"]').length}));let descriptions=[...document.querySelectorAll('[aria-describedby]')].map(e=>({control:e.id||e.tagName,ids:e.getAttribute('aria-describedby').split(/\s+/).filter(Boolean),valid:e.getAttribute('aria-describedby').split(/\s+/).filter(Boolean).every(id=>document.getElementById(id))}));let controls=[...document.querySelectorAll('input,select,textarea')].filter(e=>e.type!=='hidden'&&!e.closest('[aria-hidden=true]')&&e.getClientRects().length>0).map(e=>({tag:e.tagName,type:e.type,id:e.id,name:e.getAttribute('aria-label')||e.getAttribute('aria-labelledby')||[...e.labels||[]].map(l=>l.textContent.trim()).join(' ')}));return {duplicateIds,labels,descriptions,controls,layout:{innerWidth,scrollWidth:document.documentElement.scrollWidth}};}''');record.update({'width':width,'view':view,'browserErrors':errors})
if view=='components':record['treeNames']=page.locator('#tree-samples input').evaluate_all('xs=>xs.map(e=>document.getElementById(e.getAttribute("aria-labelledby")).textContent.trim())');record['monacoName']=page.locator('.monaco-editor [role=textbox]').get_attribute('aria-label')
record['passed']=not record['duplicateIds'] and all(l['count']==1 for l in record['labels']) and all(d['valid'] for d in record['descriptions']) and all(c['name'] for c in record['controls']) and not errors
page.screenshot(path=str(out/f'{view}-{width}.png'),full_page=True);results.append(record);page.close()
b.close()
(out/'results.json').write_text(json.dumps(results,indent=2)+'\n');print([(r['width'],r['view'],r['passed'],r['duplicateIds']) for r in results])
@@ -29,34 +29,34 @@
@* Kind options are narrowed by the Channel selection (VisibleKinds). *@ @* Kind options are narrowed by the Channel selection (VisibleKinds). *@
<div class="col-auto" data-test="filter-kind"> <div class="col-auto" data-test="filter-kind">
<label class="form-label small mb-1">Kind</label> <label id="audit-kind-label" class="form-label small mb-1">Kind</label>
<div> <div>
<MultiSelectDropdown TValue="AuditKind" <MultiSelectDropdown TValue="AuditKind"
Items="_model.VisibleKinds()" Items="_model.VisibleKinds()"
Selected="_model.Kinds" Selected="_model.Kinds"
DataTest="filter-kind-ms" /> LabelledBy="audit-kind-label" DataTest="filter-kind-ms" />
</div> </div>
</div> </div>
<div class="col-auto" data-test="filter-status"> <div class="col-auto" data-test="filter-status">
<label class="form-label small mb-1">Status</label> <label id="audit-status-label" class="form-label small mb-1">Status</label>
<div> <div>
<MultiSelectDropdown TValue="AuditStatus" <MultiSelectDropdown TValue="AuditStatus"
Items="_statuses" Items="_statuses"
Selected="_model.Statuses" Selected="_model.Statuses"
DataTest="filter-status-ms" /> LabelledBy="audit-status-label" DataTest="filter-status-ms" />
</div> </div>
</div> </div>
<div class="col-auto" data-test="filter-site"> <div class="col-auto" data-test="filter-site">
<label class="form-label small mb-1">Site</label> <label id="audit-site-label" class="form-label small mb-1">Site</label>
<div> <div>
<MultiSelectDropdown TValue="string" <MultiSelectDropdown TValue="string"
Items="_siteIds" Items="_siteIds"
Selected="_model.SiteIdentifiers" Selected="_model.SiteIdentifiers"
Display="SiteName" Display="SiteName"
EmptyText="No sites available" EmptyText="No sites available"
DataTest="filter-site-ms" /> LabelledBy="audit-site-label" DataTest="filter-site-ms" />
</div> </div>
</div> </div>
@@ -65,13 +65,13 @@
for 60s so a render of this bar costs at most one DB hit per for 60s so a render of this bar costs at most one DB hit per
minute per circuit. *@ minute per circuit. *@
<div class="col-auto" data-test="filter-node"> <div class="col-auto" data-test="filter-node">
<label class="form-label small mb-1">Node</label> <label id="audit-node-label" class="form-label small mb-1">Node</label>
<div> <div>
<MultiSelectDropdown TValue="string" <MultiSelectDropdown TValue="string"
Items="_sourceNodes" Items="_sourceNodes"
Selected="_model.SourceNodes" Selected="_model.SourceNodes"
EmptyText="No nodes available" EmptyText="No nodes available"
DataTest="filter-node-ms" /> LabelledBy="audit-node-label" DataTest="filter-node-ms" />
</div> </div>
</div> </div>
@@ -26,7 +26,7 @@
@if (ShowSearch) @if (ShowSearch)
{ {
<div class="input-group mb-3"> <div class="input-group mb-3">
<input class="form-control" data-test="node-search-input" <input aria-label="Search nodes" class="form-control" data-test="node-search-input"
@bind="_searchQuery" @bind:event="oninput" @bind="_searchQuery" @bind:event="oninput"
@onkeydown="SearchOnEnter" @onkeydown="SearchOnEnter"
placeholder="Search the address space by name or path…" /> placeholder="Search the address space by name or path…" />
@@ -112,7 +112,7 @@
<div class="input-group"> <div class="input-group">
<span class="input-group-text">Manual node id:</span> <span class="input-group-text">Manual node id:</span>
<input class="form-control" @bind="_manualNodeId" @bind:event="oninput" placeholder="nsu=&lt;namespace-uri&gt;;s=..." /> <input aria-label="Node identifier" class="form-control" @bind="_manualNodeId" @bind:event="oninput" placeholder="nsu=&lt;namespace-uri&gt;;s=..." />
<button class="btn btn-outline-secondary" @onclick="UseManual" disabled="@string.IsNullOrWhiteSpace(_manualNodeId)">Use</button> <button class="btn btn-outline-secondary" @onclick="UseManual" disabled="@string.IsNullOrWhiteSpace(_manualNodeId)">Use</button>
</div> </div>
@if (!OpcUaReferenceForm.IsDurable(_manualNodeId)) @if (!OpcUaReferenceForm.IsDurable(_manualNodeId))
@@ -12,15 +12,15 @@
<legend class="h6">Connection</legend> <legend class="h6">Connection</legend>
<div class="row g-2 mb-2"> <div class="row g-2 mb-2">
<div class="col-md-7"> <div class="col-md-7">
<label class="form-label small">Gateway endpoint</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">Gateway endpoint</label>
<input type="text" class="form-control form-control-sm" <input aria-invalid="@(FieldError("Endpoint") is not null ? "true" : "false")" aria-describedby="@(FieldError("Endpoint") is not null ? ErrorId("Endpoint") : null)" id="@($"{_fieldScope}-field-1")" type="text" class="form-control form-control-sm"
@bind="Config.Endpoint" @bind="Config.Endpoint"
placeholder="http://host:5000" /> placeholder="http://host:5000" />
@RenderFieldError("Endpoint") @RenderFieldError("Endpoint")
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<label class="form-label small">API key</label> <label class="form-label small" for="@($"{_fieldScope}-field-2")">API key</label>
<input type="password" class="form-control form-control-sm" <input aria-invalid="@(FieldError("ApiKey") is not null ? "true" : "false")" aria-describedby="@(FieldError("ApiKey") is not null ? ErrorId("ApiKey") : null)" id="@($"{_fieldScope}-field-2")" type="password" class="form-control form-control-sm"
@bind="Config.ApiKey" @bind="Config.ApiKey"
placeholder="gateway API key" /> placeholder="gateway API key" />
@RenderFieldError("ApiKey") @RenderFieldError("ApiKey")
@@ -29,19 +29,19 @@
<div class="row g-2 mb-2"> <div class="row g-2 mb-2">
<div class="col-md-5"> <div class="col-md-5">
<label class="form-label small">Client name</label> <label class="form-label small" for="@($"{_fieldScope}-field-3")">Client name</label>
<input type="text" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-3")" type="text" class="form-control form-control-sm"
@bind="Config.ClientName" @bind="Config.ClientName"
placeholder="(defaults to scadabridge)" /> placeholder="(defaults to scadabridge)" />
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Write user id</label> <label class="form-label small" for="@($"{_fieldScope}-field-4")">Write user id</label>
<input type="number" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-4")" type="number" class="form-control form-control-sm"
@bind="Config.WriteUserId" min="0" /> @bind="Config.WriteUserId" min="0" />
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label small">Read timeout (ms)</label> <label class="form-label small" for="@($"{_fieldScope}-field-5")">Read timeout (ms)</label>
<input type="number" class="form-control form-control-sm" <input aria-invalid="@(FieldError("ReadTimeoutMs") is not null ? "true" : "false")" aria-describedby="@(FieldError("ReadTimeoutMs") is not null ? ErrorId("ReadTimeoutMs") : null)" id="@($"{_fieldScope}-field-5")" type="number" class="form-control form-control-sm"
@bind="Config.ReadTimeoutMs" min="1" /> @bind="Config.ReadTimeoutMs" min="1" />
@RenderFieldError("ReadTimeoutMs") @RenderFieldError("ReadTimeoutMs")
</div> </div>
@@ -63,14 +63,14 @@
@if (Config.UseTls) @if (Config.UseTls)
{ {
<div class="col-md-6"> <div class="col-md-6">
<label class="form-label small">CA certificate path</label> <label class="form-label small" for="@($"{_fieldScope}-field-6")">CA certificate path</label>
<input type="text" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-6")" type="text" class="form-control form-control-sm"
@bind="Config.CaFile" @bind="Config.CaFile"
placeholder="/etc/scadabridge/pki/gateway-ca.pem" /> placeholder="/etc/scadabridge/pki/gateway-ca.pem" />
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label small">Server name override</label> <label class="form-label small" for="@($"{_fieldScope}-field-7")">Server name override</label>
<input type="text" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-7")" type="text" class="form-control form-control-sm"
@bind="Config.ServerName" @bind="Config.ServerName"
placeholder="gateway.example.local" /> placeholder="gateway.example.local" />
</div> </div>
@@ -85,15 +85,19 @@
[Parameter] public string IdPrefix { get; set; } = "mxgateway-endpoint"; [Parameter] public string IdPrefix { get; set; } = "mxgateway-endpoint";
[Parameter] public ValidationResult? Errors { get; set; } [Parameter] public ValidationResult? Errors { get; set; }
private ValidationEntry? FieldError(string field) => Errors?.Errors.FirstOrDefault(e =>
e.EntityName != null && (e.EntityName == field || e.EntityName.EndsWith("." + field)));
private string ErrorId(string field) => _fieldScope + "-error-" + field.Replace('.', '-');
private RenderFragment? RenderFieldError(string field) private RenderFragment? RenderFieldError(string field)
{ {
var match = Errors?.Errors.FirstOrDefault(e => var match = FieldError(field);
e.EntityName != null
&& (e.EntityName == field || e.EntityName.EndsWith("." + field)));
// Validator text can carry raw, unbounded detail — clamp it and keep the full // Validator text can carry raw, unbounded detail — clamp it and keep the full
// message reachable via the title so it cannot reflow the surrounding row. // message reachable via the title so it cannot reflow the surrounding row.
return match is null return match is null
? null ? null
: @<div class="text-danger small cell-clamp-2" title="@match.Message">@match.Message</div>; : @<div id="@ErrorId(field)" role="alert" class="text-danger small cell-clamp-2" title="@match.Message">@match.Message</div>;
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -25,15 +25,15 @@
<legend class="h6">Connection</legend> <legend class="h6">Connection</legend>
<div class="row g-2 mb-2"> <div class="row g-2 mb-2">
<div class="col-md-7"> <div class="col-md-7">
<label class="form-label small">Endpoint URL</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">Endpoint URL</label>
<input type="text" class="form-control form-control-sm" <input aria-invalid="@(FieldError("EndpointUrl") is not null ? "true" : "false")" aria-describedby="@(FieldError("EndpointUrl") is not null ? ErrorId("EndpointUrl") : null)" id="@($"{_fieldScope}-field-1")" type="text" class="form-control form-control-sm"
@bind="Config.EndpointUrl" @bind="Config.EndpointUrl"
placeholder="opc.tcp://host:4840" /> placeholder="opc.tcp://host:4840" />
@RenderFieldError("EndpointUrl") @RenderFieldError("EndpointUrl")
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Security Mode</label> <label class="form-label small" for="@($"{_fieldScope}-field-2")">Security Mode</label>
<select class="form-select form-select-sm" @bind="Config.SecurityMode"> <select id="@($"{_fieldScope}-field-2")" class="form-select form-select-sm" @bind="Config.SecurityMode">
<option value="@OpcUaSecurityMode.None">None</option> <option value="@OpcUaSecurityMode.None">None</option>
<option value="@OpcUaSecurityMode.Sign">Sign</option> <option value="@OpcUaSecurityMode.Sign">Sign</option>
<option value="@OpcUaSecurityMode.SignAndEncrypt">Sign &amp; Encrypt</option> <option value="@OpcUaSecurityMode.SignAndEncrypt">Sign &amp; Encrypt</option>
@@ -164,8 +164,8 @@
{ {
<div class="row g-2 mb-2"> <div class="row g-2 mb-2">
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Token type</label> <label class="form-label small" for="@($"{_fieldScope}-field-3")">Token type</label>
<select class="form-select form-select-sm" @bind="Config.UserIdentity.TokenType"> <select id="@($"{_fieldScope}-field-3")" class="form-select form-select-sm" @bind="Config.UserIdentity.TokenType">
<option value="@OpcUaUserTokenType.Anonymous">Anonymous</option> <option value="@OpcUaUserTokenType.Anonymous">Anonymous</option>
<option value="@OpcUaUserTokenType.UsernamePassword">Username / Password</option> <option value="@OpcUaUserTokenType.UsernamePassword">Username / Password</option>
<option value="@OpcUaUserTokenType.X509Certificate">X.509 Certificate</option> <option value="@OpcUaUserTokenType.X509Certificate">X.509 Certificate</option>
@@ -174,29 +174,29 @@
@if (Config.UserIdentity.TokenType == OpcUaUserTokenType.UsernamePassword) @if (Config.UserIdentity.TokenType == OpcUaUserTokenType.UsernamePassword)
{ {
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Username</label> <label class="form-label small" for="@($"{_fieldScope}-field-4")">Username</label>
<input type="text" class="form-control form-control-sm" <input aria-invalid="@(FieldError("UserIdentity.Username") is not null ? "true" : "false")" aria-describedby="@(FieldError("UserIdentity.Username") is not null ? ErrorId("UserIdentity.Username") : null)" id="@($"{_fieldScope}-field-4")" type="text" class="form-control form-control-sm"
@bind="Config.UserIdentity.Username" /> @bind="Config.UserIdentity.Username" />
@RenderFieldError("UserIdentity.Username") @RenderFieldError("UserIdentity.Username")
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Password</label> <label class="form-label small" for="@($"{_fieldScope}-field-5")">Password</label>
<input type="password" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-5")" type="password" class="form-control form-control-sm"
@bind="Config.UserIdentity.Password" /> @bind="Config.UserIdentity.Password" />
</div> </div>
} }
else if (Config.UserIdentity.TokenType == OpcUaUserTokenType.X509Certificate) else if (Config.UserIdentity.TokenType == OpcUaUserTokenType.X509Certificate)
{ {
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label small">Certificate path</label> <label class="form-label small" for="@($"{_fieldScope}-field-6")">Certificate path</label>
<input type="text" class="form-control form-control-sm" <input aria-invalid="@(FieldError("UserIdentity.CertificatePath") is not null ? "true" : "false")" aria-describedby="@(FieldError("UserIdentity.CertificatePath") is not null ? ErrorId("UserIdentity.CertificatePath") : null)" id="@($"{_fieldScope}-field-6")" type="text" class="form-control form-control-sm"
@bind="Config.UserIdentity.CertificatePath" @bind="Config.UserIdentity.CertificatePath"
placeholder="/etc/scadabridge/pki/client.pfx" /> placeholder="/etc/scadabridge/pki/client.pfx" />
@RenderFieldError("UserIdentity.CertificatePath") @RenderFieldError("UserIdentity.CertificatePath")
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Certificate password</label> <label class="form-label small" for="@($"{_fieldScope}-field-7")">Certificate password</label>
<input type="password" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-7")" type="password" class="form-control form-control-sm"
@bind="Config.UserIdentity.CertificatePassword" /> @bind="Config.UserIdentity.CertificatePassword" />
</div> </div>
} }
@@ -214,14 +214,14 @@
<legend class="h6">Timing</legend> <legend class="h6">Timing</legend>
<div class="row g-2 mb-2"> <div class="row g-2 mb-2">
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Session timeout (ms)</label> <label class="form-label small" for="@($"{_fieldScope}-field-8")">Session timeout (ms)</label>
<input type="number" class="form-control form-control-sm" <input aria-invalid="@(FieldError("SessionTimeoutMs") is not null ? "true" : "false")" aria-describedby="@(FieldError("SessionTimeoutMs") is not null ? ErrorId("SessionTimeoutMs") : null)" id="@($"{_fieldScope}-field-8")" type="number" class="form-control form-control-sm"
@bind="Config.SessionTimeoutMs" min="1" /> @bind="Config.SessionTimeoutMs" min="1" />
@RenderFieldError("SessionTimeoutMs") @RenderFieldError("SessionTimeoutMs")
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Operation timeout (ms)</label> <label class="form-label small" for="@($"{_fieldScope}-field-9")">Operation timeout (ms)</label>
<input type="number" class="form-control form-control-sm" <input aria-invalid="@(FieldError("OperationTimeoutMs") is not null ? "true" : "false")" aria-describedby="@(FieldError("OperationTimeoutMs") is not null ? ErrorId("OperationTimeoutMs") : null)" id="@($"{_fieldScope}-field-9")" type="number" class="form-control form-control-sm"
@bind="Config.OperationTimeoutMs" min="1" /> @bind="Config.OperationTimeoutMs" min="1" />
@RenderFieldError("OperationTimeoutMs") @RenderFieldError("OperationTimeoutMs")
</div> </div>
@@ -232,38 +232,38 @@
<legend class="h6">Subscription</legend> <legend class="h6">Subscription</legend>
<div class="row g-2 mb-2"> <div class="row g-2 mb-2">
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Publishing interval (ms)</label> <label class="form-label small" for="@($"{_fieldScope}-field-10")">Publishing interval (ms)</label>
<input type="number" class="form-control form-control-sm" <input aria-invalid="@(FieldError("PublishingIntervalMs") is not null ? "true" : "false")" aria-describedby="@(FieldError("PublishingIntervalMs") is not null ? ErrorId("PublishingIntervalMs") : null)" id="@($"{_fieldScope}-field-10")" type="number" class="form-control form-control-sm"
@bind="Config.PublishingIntervalMs" min="1" /> @bind="Config.PublishingIntervalMs" min="1" />
@RenderFieldError("PublishingIntervalMs") @RenderFieldError("PublishingIntervalMs")
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Sampling interval (ms)</label> <label class="form-label small" for="@($"{_fieldScope}-field-11")">Sampling interval (ms)</label>
<input type="number" class="form-control form-control-sm" <input aria-invalid="@(FieldError("SamplingIntervalMs") is not null ? "true" : "false")" aria-describedby="@(FieldError("SamplingIntervalMs") is not null ? ErrorId("SamplingIntervalMs") : null)" id="@($"{_fieldScope}-field-11")" type="number" class="form-control form-control-sm"
@bind="Config.SamplingIntervalMs" min="1" /> @bind="Config.SamplingIntervalMs" min="1" />
@RenderFieldError("SamplingIntervalMs") @RenderFieldError("SamplingIntervalMs")
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<label class="form-label small">Queue size</label> <label class="form-label small" for="@($"{_fieldScope}-field-12")">Queue size</label>
<input type="number" class="form-control form-control-sm" <input aria-invalid="@(FieldError("QueueSize") is not null ? "true" : "false")" aria-describedby="@(FieldError("QueueSize") is not null ? ErrorId("QueueSize") : null)" id="@($"{_fieldScope}-field-12")" type="number" class="form-control form-control-sm"
@bind="Config.QueueSize" min="1" /> @bind="Config.QueueSize" min="1" />
@RenderFieldError("QueueSize") @RenderFieldError("QueueSize")
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<label class="form-label small">Keep-alive count</label> <label class="form-label small" for="@($"{_fieldScope}-field-13")">Keep-alive count</label>
<input type="number" class="form-control form-control-sm" <input aria-invalid="@(FieldError("KeepAliveCount") is not null ? "true" : "false")" aria-describedby="@(FieldError("KeepAliveCount") is not null ? ErrorId("KeepAliveCount") : null)" id="@($"{_fieldScope}-field-13")" type="number" class="form-control form-control-sm"
@bind="Config.KeepAliveCount" min="1" /> @bind="Config.KeepAliveCount" min="1" />
@RenderFieldError("KeepAliveCount") @RenderFieldError("KeepAliveCount")
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<label class="form-label small">Lifetime count</label> <label class="form-label small" for="@($"{_fieldScope}-field-14")">Lifetime count</label>
<input type="number" class="form-control form-control-sm" <input aria-invalid="@(FieldError("LifetimeCount") is not null ? "true" : "false")" aria-describedby="@(FieldError("LifetimeCount") is not null ? ErrorId("LifetimeCount") : null)" id="@($"{_fieldScope}-field-14")" type="number" class="form-control form-control-sm"
@bind="Config.LifetimeCount" min="1" /> @bind="Config.LifetimeCount" min="1" />
@RenderFieldError("LifetimeCount") @RenderFieldError("LifetimeCount")
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Max notifications / publish</label> <label class="form-label small" for="@($"{_fieldScope}-field-15")">Max notifications / publish</label>
<input type="number" class="form-control form-control-sm" <input aria-invalid="@(FieldError("MaxNotificationsPerPublish") is not null ? "true" : "false")" aria-describedby="@(FieldError("MaxNotificationsPerPublish") is not null ? ErrorId("MaxNotificationsPerPublish") : null)" id="@($"{_fieldScope}-field-15")" type="number" class="form-control form-control-sm"
@bind="Config.MaxNotificationsPerPublish" min="1" /> @bind="Config.MaxNotificationsPerPublish" min="1" />
@RenderFieldError("MaxNotificationsPerPublish") @RenderFieldError("MaxNotificationsPerPublish")
</div> </div>
@@ -274,19 +274,19 @@
<legend class="h6">Advanced subscription</legend> <legend class="h6">Advanced subscription</legend>
<div class="row g-2 mb-2"> <div class="row g-2 mb-2">
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Subscription display name</label> <label class="form-label small" for="@($"{_fieldScope}-field-16")">Subscription display name</label>
<input type="text" class="form-control form-control-sm" <input aria-invalid="@(FieldError("SubscriptionDisplayName") is not null ? "true" : "false")" aria-describedby="@(FieldError("SubscriptionDisplayName") is not null ? ErrorId("SubscriptionDisplayName") : null)" id="@($"{_fieldScope}-field-16")" type="text" class="form-control form-control-sm"
@bind="Config.SubscriptionDisplayName" /> @bind="Config.SubscriptionDisplayName" />
@RenderFieldError("SubscriptionDisplayName") @RenderFieldError("SubscriptionDisplayName")
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
<label class="form-label small">Subscription priority</label> <label class="form-label small" for="@($"{_fieldScope}-field-17")">Subscription priority</label>
<input type="number" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-17")" type="number" class="form-control form-control-sm"
@bind="Config.SubscriptionPriority" min="0" max="255" /> @bind="Config.SubscriptionPriority" min="0" max="255" />
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Timestamps to return</label> <label class="form-label small" for="@($"{_fieldScope}-field-18")">Timestamps to return</label>
<select class="form-select form-select-sm" @bind="Config.TimestampsToReturn"> <select id="@($"{_fieldScope}-field-18")" class="form-select form-select-sm" @bind="Config.TimestampsToReturn">
<option value="@OpcUaTimestampsToReturn.Source">Source</option> <option value="@OpcUaTimestampsToReturn.Source">Source</option>
<option value="@OpcUaTimestampsToReturn.Server">Server</option> <option value="@OpcUaTimestampsToReturn.Server">Server</option>
<option value="@OpcUaTimestampsToReturn.Both">Both</option> <option value="@OpcUaTimestampsToReturn.Both">Both</option>
@@ -315,15 +315,15 @@
{ {
<div class="row g-2 mb-2"> <div class="row g-2 mb-2">
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Type</label> <label class="form-label small" for="@($"{_fieldScope}-field-19")">Type</label>
<select class="form-select form-select-sm" @bind="Config.Deadband.Type"> <select id="@($"{_fieldScope}-field-19")" class="form-select form-select-sm" @bind="Config.Deadband.Type">
<option value="@OpcUaDeadbandType.Absolute">Absolute</option> <option value="@OpcUaDeadbandType.Absolute">Absolute</option>
<option value="@OpcUaDeadbandType.Percent">Percent</option> <option value="@OpcUaDeadbandType.Percent">Percent</option>
</select> </select>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Value</label> <label class="form-label small" for="@($"{_fieldScope}-field-20")">Value</label>
<input type="number" step="0.01" class="form-control form-control-sm" <input aria-invalid="@(FieldError("Deadband.Value") is not null ? "true" : "false")" aria-describedby="@(FieldError("Deadband.Value") is not null ? ErrorId("Deadband.Value") : null)" id="@($"{_fieldScope}-field-20")" type="number" step="0.01" class="form-control form-control-sm"
@bind="Config.Deadband.Value" min="0" /> @bind="Config.Deadband.Value" min="0" />
@RenderFieldError("Deadband.Value") @RenderFieldError("Deadband.Value")
</div> </div>
@@ -348,15 +348,15 @@
{ {
<div class="row g-2 mb-2"> <div class="row g-2 mb-2">
<div class="col-md-6"> <div class="col-md-6">
<label class="form-label small">Tag path</label> <label class="form-label small" for="@($"{_fieldScope}-field-21")">Tag path</label>
<input type="text" class="form-control form-control-sm" <input aria-invalid="@(FieldError("Heartbeat.TagPath") is not null ? "true" : "false")" aria-describedby="@(FieldError("Heartbeat.TagPath") is not null ? ErrorId("Heartbeat.TagPath") : null)" id="@($"{_fieldScope}-field-21")" type="text" class="form-control form-control-sm"
@bind="Config.Heartbeat.TagPath" @bind="Config.Heartbeat.TagPath"
placeholder="Sensors.Heartbeat" /> placeholder="Sensors.Heartbeat" />
@RenderFieldError("Heartbeat.TagPath") @RenderFieldError("Heartbeat.TagPath")
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Max silence (s)</label> <label class="form-label small" for="@($"{_fieldScope}-field-22")">Max silence (s)</label>
<input type="number" class="form-control form-control-sm" <input aria-invalid="@(FieldError("Heartbeat.MaxSilenceSeconds") is not null ? "true" : "false")" aria-describedby="@(FieldError("Heartbeat.MaxSilenceSeconds") is not null ? ErrorId("Heartbeat.MaxSilenceSeconds") : null)" id="@($"{_fieldScope}-field-22")" type="number" class="form-control form-control-sm"
@bind="Config.Heartbeat.MaxSilenceSeconds" min="1" /> @bind="Config.Heartbeat.MaxSilenceSeconds" min="1" />
@RenderFieldError("Heartbeat.MaxSilenceSeconds") @RenderFieldError("Heartbeat.MaxSilenceSeconds")
</div> </div>
@@ -468,13 +468,17 @@
private void EnableDeadband() => private void EnableDeadband() =>
Config.Deadband = new OpcUaDeadbandConfig(); Config.Deadband = new OpcUaDeadbandConfig();
private ValidationEntry? FieldError(string field) => Errors?.Errors.FirstOrDefault(e =>
e.EntityName != null && (e.EntityName == field || e.EntityName.EndsWith("." + field)));
private string ErrorId(string field) => _fieldScope + "-error-" + field.Replace('.', '-');
private RenderFragment? RenderFieldError(string field) private RenderFragment? RenderFieldError(string field)
{ {
var match = Errors?.Errors.FirstOrDefault(e => var match = FieldError(field);
e.EntityName != null
&& (e.EntityName == field || e.EntityName.EndsWith("." + field)));
return match is null return match is null
? null ? null
: @<div class="text-danger small">@match.Message</div>; : @<div id="@ErrorId(field)" role="alert" class="text-danger small">@match.Message</div>;
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -70,15 +70,15 @@
else else
{ {
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Name</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">Name</label>
@* Name is fixed on edit — the seam has no rename. *@ @* Name is fixed on edit — the seam has no rename. *@
<input type="text" class="form-control form-control-sm" @bind="_formName" disabled="@IsEditMode" /> <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control form-control-sm" @bind="_formName" disabled="@IsEditMode" />
</div> </div>
<div class="mb-2"> <div class="mb-2" role="group" aria-labelledby="@($"{_fieldScope}-methods-label")" aria-describedby="@($"{_fieldScope}-methods-hint")">
<label class="form-label small">API Method Access</label> <div id="@($"{_fieldScope}-methods-label")" class="form-label small">API Method Access</div>
@if (_allMethods.Count == 0) @if (_allMethods.Count == 0)
{ {
<div class="form-text"> <div id="@($"{_fieldScope}-methods-hint")" class="form-text">
No API methods configured. No API methods configured.
<a href="/design/external-systems">Create one</a> to grant access. <a href="/design/external-systems">Create one</a> to grant access.
</div> </div>
@@ -97,7 +97,7 @@
</div> </div>
} }
</div> </div>
<div class="form-text"> <div id="@($"{_fieldScope}-methods-hint")" class="form-text">
Callers using this key can invoke any checked method. At least one is required. Callers using this key can invoke any checked method. At least one is required.
</div> </div>
} }
@@ -237,3 +237,5 @@
} }
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -27,7 +27,7 @@
else else
{ {
<div class="mb-3" style="max-width: 320px;"> <div class="mb-3" style="max-width: 320px;">
<input class="form-control form-control-sm" <input aria-label="Filter API keys" class="form-control form-control-sm"
placeholder="Filter by name…" placeholder="Filter by name…"
@bind="_search" @bind:event="oninput" /> @bind="_search" @bind:event="oninput" />
</div> </div>
@@ -26,12 +26,12 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title">Mapping</h5> <h5 class="card-title">Mapping</h5>
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">LDAP Group Name</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">LDAP Group Name</label>
<input type="text" class="form-control form-control-sm" @bind="_formGroupName" /> <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control form-control-sm" @bind="_formGroupName" />
</div> </div>
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Role</label> <label class="form-label small" for="@($"{_fieldScope}-field-2")">Role</label>
<select class="form-select form-select-sm" @bind="_formRole"> <select aria-describedby="@($"{_fieldScope}-role-hint")" id="@($"{_fieldScope}-field-2")" class="form-select form-select-sm" @bind="_formRole">
<option value="">Select role...</option> <option value="">Select role...</option>
<option value="@Roles.Administrator">Administrator</option> <option value="@Roles.Administrator">Administrator</option>
<option value="@Roles.Designer">Designer</option> <option value="@Roles.Designer">Designer</option>
@@ -40,7 +40,7 @@
<option value="@Roles.Operator">Operator</option> <option value="@Roles.Operator">Operator</option>
<option value="@Roles.Verifier">Verifier</option> <option value="@Roles.Verifier">Verifier</option>
</select> </select>
<div class="form-text">Deployer role: configure site scope below after saving.</div> <div id="@($"{_fieldScope}-role-hint")" class="form-text">Deployer role: configure site scope below after saving.</div>
</div> </div>
@if (_formError != null) @if (_formError != null)
{ {
@@ -89,8 +89,8 @@
<div class="row g-2 align-items-end"> <div class="row g-2 align-items-end">
<div class="col-auto"> <div class="col-auto">
<label class="form-label small">Site</label> <label class="form-label small" for="@($"{_fieldScope}-field-3")">Site</label>
<select class="form-select form-select-sm" @bind="_scopeRuleSiteId"> <select id="@($"{_fieldScope}-field-3")" class="form-select form-select-sm" @bind="_scopeRuleSiteId">
<option value="0">Select site...</option> <option value="0">Select site...</option>
@foreach (var site in _sites) @foreach (var site in _sites)
{ {
@@ -219,3 +219,5 @@
} }
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -26,7 +26,7 @@
else else
{ {
<div class="mb-3" style="max-width: 320px;"> <div class="mb-3" style="max-width: 320px;">
<input class="form-control form-control-sm" <input aria-label="Filter LDAP mappings" class="form-control form-control-sm"
placeholder="Filter by name, LDAP group, or role…" placeholder="Filter by name, LDAP group, or role…"
@bind="_search" @bind:event="oninput" /> @bind="_search" @bind:event="oninput" />
</div> </div>
@@ -38,17 +38,17 @@
</div> </div>
<div class="card-body"> <div class="card-body">
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Identifier</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">Identifier</label>
<input type="text" class="form-control form-control-sm" @bind="_formIdentifier" <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control form-control-sm" @bind="_formIdentifier"
disabled="@IsEditMode" /> disabled="@IsEditMode" />
</div> </div>
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Name</label> <label class="form-label small" for="@($"{_fieldScope}-field-2")">Name</label>
<input type="text" class="form-control form-control-sm" @bind="_formName" /> <input id="@($"{_fieldScope}-field-2")" type="text" class="form-control form-control-sm" @bind="_formName" />
</div> </div>
<div class="mb-0"> <div class="mb-0">
<label class="form-label small">Description</label> <label class="form-label small" for="@($"{_fieldScope}-field-3")">Description</label>
<input type="text" class="form-control form-control-sm" @bind="_formDescription" /> <input id="@($"{_fieldScope}-field-3")" type="text" class="form-control form-control-sm" @bind="_formDescription" />
</div> </div>
</div> </div>
</div> </div>
@@ -59,17 +59,17 @@
</div> </div>
<div class="card-body"> <div class="card-body">
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Akka Address (legacy — unused)</label> <label class="form-label small" for="@($"{_fieldScope}-field-4")">Akka Address (legacy — unused)</label>
<input type="text" class="form-control form-control-sm" @bind="_formNodeAAddress" <input aria-describedby="@($"{_helpScope}-0")" id="@($"{_fieldScope}-field-4")" type="text" class="form-control form-control-sm" @bind="_formNodeAAddress"
placeholder="akka.tcp://scadabridge@host:port/user/site-communication" /> placeholder="akka.tcp://scadabridge@host:port/user/site-communication" />
<div class="form-text"> <div class="form-text" id="@($"{_helpScope}-0")">
Retained for historical configuration only — nothing reads it at runtime. Retained for historical configuration only — nothing reads it at runtime.
Central dials the gRPC address below. Central dials the gRPC address below.
</div> </div>
</div> </div>
<div class="mb-0"> <div class="mb-0">
<label class="form-label small">gRPC Address</label> <label class="form-label small" for="@($"{_fieldScope}-field-5")">gRPC Address</label>
<input type="text" class="form-control form-control-sm" @bind="_formGrpcNodeAAddress" <input id="@($"{_fieldScope}-field-5")" type="text" class="form-control form-control-sm" @bind="_formGrpcNodeAAddress"
placeholder="http://host:8083" /> placeholder="http://host:8083" />
</div> </div>
</div> </div>
@@ -81,17 +81,17 @@
</div> </div>
<div class="card-body"> <div class="card-body">
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Akka Address (legacy — unused)</label> <label class="form-label small" for="@($"{_fieldScope}-field-6")">Akka Address (legacy — unused)</label>
<input type="text" class="form-control form-control-sm" @bind="_formNodeBAddress" <input aria-describedby="@($"{_helpScope}-1")" id="@($"{_fieldScope}-field-6")" type="text" class="form-control form-control-sm" @bind="_formNodeBAddress"
placeholder="akka.tcp://scadabridge@host:port/user/site-communication" /> placeholder="akka.tcp://scadabridge@host:port/user/site-communication" />
<div class="form-text"> <div class="form-text" id="@($"{_helpScope}-1")">
Retained for historical configuration only — nothing reads it at runtime. Retained for historical configuration only — nothing reads it at runtime.
Central dials the gRPC address below. Central dials the gRPC address below.
</div> </div>
</div> </div>
<div class="mb-0"> <div class="mb-0">
<label class="form-label small">gRPC Address</label> <label class="form-label small" for="@($"{_fieldScope}-field-7")">gRPC Address</label>
<input type="text" class="form-control form-control-sm" @bind="_formGrpcNodeBAddress" <input id="@($"{_fieldScope}-field-7")" type="text" class="form-control form-control-sm" @bind="_formGrpcNodeBAddress"
placeholder="http://host:8083" /> placeholder="http://host:8083" />
</div> </div>
</div> </div>
@@ -180,3 +180,7 @@
} }
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -86,7 +86,7 @@
else else
{ {
<div class="mb-3" style="max-width: 320px;"> <div class="mb-3" style="max-width: 320px;">
<input class="form-control form-control-sm" <input aria-label="Filter sites" class="form-control form-control-sm"
placeholder="Filter by name or identifier…" placeholder="Filter by name or identifier…"
@bind="_search" @bind:event="oninput" /> @bind="_search" @bind:event="oninput" />
</div> </div>
@@ -11,8 +11,8 @@
@if (RequireSitePicker) @if (RequireSitePicker)
{ {
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Site</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">Site</label>
<select class="form-select form-select-sm" @bind="_siteId"> <select id="@($"{_fieldScope}-field-1")" class="form-select form-select-sm" @bind="_siteId">
<option value="0">(Select a site)</option> <option value="0">(Select a site)</option>
@foreach (var opt in SiteOptions) @foreach (var opt in SiteOptions)
{ {
@@ -21,8 +21,8 @@
</select> </select>
</div> </div>
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Parent area</label> <label class="form-label small" for="@($"{_fieldScope}-field-2")">Parent area</label>
<select class="form-select form-select-sm" @bind="_parentAreaId"> <select id="@($"{_fieldScope}-field-2")" class="form-select form-select-sm" @bind="_parentAreaId">
<option value="0">(Site root)</option> <option value="0">(Site root)</option>
@foreach (var opt in ParentOptions.Where(o => SelectedSiteMatches(o))) @foreach (var opt in ParentOptions.Where(o => SelectedSiteMatches(o)))
{ {
@@ -37,8 +37,8 @@
@ContextLabel @ContextLabel
</div> </div>
} }
<label class="form-label small">Name</label> <label class="form-label small" for="@($"{_fieldScope}-field-3")">Name</label>
<input class="form-control form-control-sm" placeholder="Area name" @bind="_name" /> <input id="@($"{_fieldScope}-field-3")" class="form-control form-control-sm" placeholder="Area name" @bind="_name" />
@if (!string.IsNullOrEmpty(ErrorMessage)) { <div class="text-danger small mt-1">@ErrorMessage</div> } @if (!string.IsNullOrEmpty(ErrorMessage)) { <div class="text-danger small mt-1">@ErrorMessage</div> }
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
@@ -94,3 +94,5 @@
await OnSubmit.InvokeAsync((effectiveSite, effectiveParent, _name.Trim())); await OnSubmit.InvokeAsync((effectiveSite, effectiveParent, _name.Trim()));
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -70,8 +70,8 @@
<div class="row mb-3 g-2"> <div class="row mb-3 g-2">
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small">Site</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">Site</label>
<select class="form-select form-select-sm" data-test="debug-site-select" <select id="@($"{_fieldScope}-field-1")" class="form-select form-select-sm" data-test="debug-site-select"
@bind="_selectedSiteId" @bind:after="LoadInstancesForSite" disabled="@_connected"> @bind="_selectedSiteId" @bind:after="LoadInstancesForSite" disabled="@_connected">
<option value="0">Select site...</option> <option value="0">Select site...</option>
@foreach (var site in _sites) @foreach (var site in _sites)
@@ -81,7 +81,7 @@
</select> </select>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label small">Instance</label> <div class="form-label small">Instance</div>
<InstancePicker Areas="_siteAreas" Instances="_siteInstances" <InstancePicker Areas="_siteAreas" Instances="_siteInstances"
ItemLabel="InstanceLabel" ItemLabel="InstanceLabel"
SelectedInstanceId="_selectedInstanceId" SelectedInstanceIdChanged="OnInstancePicked" SelectedInstanceId="_selectedInstanceId" SelectedInstanceIdChanged="OnInstancePicked"
@@ -837,3 +837,5 @@
} }
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -20,7 +20,7 @@
@if (_canLive) @if (_canLive)
{ {
<div class="col-auto"> <div class="col-auto">
<label class="form-label form-label-sm">Entry point</label> <div class="form-label form-label-sm">Entry point</div>
<div class="btn-group btn-group-sm d-block" role="group" aria-label="Entry point"> <div class="btn-group btn-group-sm d-block" role="group" aria-label="Entry point">
<button type="button" class="btn @(_entry == EntryKind.Method ? "btn-primary" : "btn-outline-secondary")" <button type="button" class="btn @(_entry == EntryKind.Method ? "btn-primary" : "btn-outline-secondary")"
data-test="flow-entry-method" disabled="@(_running || _methodLiveRefused)" data-test="flow-entry-method" disabled="@(_running || _methodLiveRefused)"
@@ -37,8 +37,8 @@
@if (_entry == EntryKind.Method) @if (_entry == EntryKind.Method)
{ {
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label form-label-sm">Method</label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-1")">Method</label>
<select class="form-select form-select-sm" data-test="flow-method-select" <select id="@($"{_fieldScope}-field-1")" class="form-select form-select-sm" data-test="flow-method-select"
@bind="_selectedMethodId" @bind:after="OnMethodChangedAsync" disabled="@_running"> @bind="_selectedMethodId" @bind:after="OnMethodChangedAsync" disabled="@_running">
<option value="0">— choose —</option> <option value="0">— choose —</option>
@foreach (var m in _methods) @foreach (var m in _methods)
@@ -51,8 +51,8 @@
else else
{ {
<div class="col-md-2"> <div class="col-md-2">
<label class="form-label form-label-sm">Site</label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-2")">Site</label>
<select class="form-select form-select-sm" data-test="flow-site-select" <select id="@($"{_fieldScope}-field-2")" class="form-select form-select-sm" data-test="flow-site-select"
@bind="_selectedSiteId" @bind:after="OnSiteChangedAsync" disabled="@_running"> @bind="_selectedSiteId" @bind:after="OnSiteChangedAsync" disabled="@_running">
<option value="0">— choose —</option> <option value="0">— choose —</option>
@foreach (var s in _sites) @foreach (var s in _sites)
@@ -65,7 +65,7 @@
name, not a short site name. The script-entry branch still sums to 8 of 12 name, not a short site name. The script-entry branch still sums to 8 of 12
(site 2 + instance 3 + script 3) alongside the auto-width toolbar columns. *@ (site 2 + instance 3 + script 3) alongside the auto-width toolbar columns. *@
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label form-label-sm">Instance</label> <div class="form-label form-label-sm">Instance</div>
@* A site can hold hundreds of instances, so this is the shared area-tree @* A site can hold hundreds of instances, so this is the shared area-tree
combobox, not a flat list (design 2026-09-08). _areas/_instances are combobox, not a flat list (design 2026-09-08). _areas/_instances are
loaded once per site — the picker treats a new list as a site change. *@ loaded once per site — the picker treats a new list as a site change. *@
@@ -75,8 +75,8 @@
Placeholder="Search instances…" DataTestPrefix="flow-instance" /> Placeholder="Search instances…" DataTestPrefix="flow-instance" />
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label form-label-sm">Script</label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-3")">Script</label>
<select class="form-select form-select-sm" data-test="flow-script-select" <select id="@($"{_fieldScope}-field-3")" class="form-select form-select-sm" data-test="flow-script-select"
@bind="_selectedScript" @bind:after="OnScriptChangedAsync" disabled="@(_running || _selectedInstanceId == 0)"> @bind="_selectedScript" @bind:after="OnScriptChangedAsync" disabled="@(_running || _selectedInstanceId == 0)">
<option value="">— choose —</option> <option value="">— choose —</option>
@foreach (var s in _scripts) @foreach (var s in _scripts)
@@ -90,8 +90,8 @@
else else
{ {
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label form-label-sm">Execution ID</label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-4")">Execution ID</label>
<input class="form-control form-control-sm font-monospace" data-test="flow-execution-id" <input id="@($"{_fieldScope}-field-4")" class="form-control form-control-sm font-monospace" data-test="flow-execution-id"
placeholder="any execution id in the chain" @bind="_replayExecutionIdText" disabled="@_running" /> placeholder="any execution id in the chain" @bind="_replayExecutionIdText" disabled="@_running" />
</div> </div>
} }
@@ -100,7 +100,7 @@
@if (_canLive) @if (_canLive)
{ {
<div class="col-auto"> <div class="col-auto">
<label class="form-label form-label-sm">Mode</label> <div class="form-label form-label-sm">Mode</div>
<div class="btn-group btn-group-sm d-block" role="group" aria-label="Mode"> <div class="btn-group btn-group-sm d-block" role="group" aria-label="Mode">
<button type="button" class="btn @(_mode == FlowMode.Live ? "btn-primary" : "btn-outline-secondary")" <button type="button" class="btn @(_mode == FlowMode.Live ? "btn-primary" : "btn-outline-secondary")"
data-test="flow-mode-live" disabled="@_running" @onclick="() => SetMode(FlowMode.Live)">Live</button> data-test="flow-mode-live" disabled="@_running" @onclick="() => SetMode(FlowMode.Live)">Live</button>
@@ -241,18 +241,18 @@
</div> </div>
@if (_methodRawMode) @if (_methodRawMode)
{ {
<div data-test="flow-method-raw"> <div data-test="flow-method-raw" role="group" aria-label="Method request body" aria-describedby="@($"{_fieldScope}-raw-description")">
<MonacoEditor Language="json" Height="220px" ShowToolbar="false" <MonacoEditor AriaLabel="Flow request body JSON" Language="json" Height="220px" ShowToolbar="false"
JsonSchema="@MethodRawJsonSchema" JsonSchema="@MethodRawJsonSchema"
Value="@_methodRawText" Value="@_methodRawText"
ValueChanged="@(v => SetMethodRawJson(v))" /> ValueChanged="@(v => SetMethodRawJson(v))" />
@if (_methodRawError is { } rawError) @if (_methodRawError is { } rawError)
{ {
<div class="text-danger small mt-1" data-test="flow-method-raw-error">@rawError</div> <div id="@($"{_fieldScope}-raw-description")" role="alert" class="text-danger small mt-1" data-test="flow-method-raw-error">@rawError</div>
} }
else else
{ {
<div class="form-text">The whole request body, validated against the method's parameter definitions.</div> <div id="@($"{_fieldScope}-raw-description")" class="form-text">The whole request body, validated against the method's parameter definitions.</div>
} }
</div> </div>
} }
@@ -276,10 +276,10 @@
@if (script.IsWriteKind) @if (script.IsWriteKind)
{ {
<div class="mb-2"> <div class="mb-2">
<label class="form-label form-label-sm">New value for <span class="font-monospace">@(script.TriggerAttribute ?? "…")</span></label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-5")">New value for <span class="font-monospace">@(script.TriggerAttribute ?? "…")</span></label>
<input class="form-control form-control-sm" data-test="flow-input-value" <input aria-describedby="@($"{_helpScope}-0")" id="@($"{_fieldScope}-field-5")" class="form-control form-control-sm" data-test="flow-input-value"
@bind="_valueChangeValue" @bind:event="oninput" disabled="@_running" /> @bind="_valueChangeValue" @bind:event="oninput" disabled="@_running" />
<div class="form-text">@script.TriggerType trigger — writing the attribute fires the script.</div> <div class="form-text" id="@($"{_helpScope}-0")">@script.TriggerType trigger — writing the attribute fires the script.</div>
</div> </div>
} }
else if (string.IsNullOrWhiteSpace(script.ParameterDefinitions)) else if (string.IsNullOrWhiteSpace(script.ParameterDefinitions))
@@ -359,3 +359,7 @@
</div> </div>
</div> </div>
</div> </div>
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -174,7 +174,7 @@
} }
</span> </span>
<span class="text-muted small">@g.Members.Count</span> <span class="text-muted small">@g.Members.Count</span>
<select class="form-select form-select-sm" style="width: 160px;" data-test="binding-group-connection" <select aria-label="Binding group connection" class="form-select form-select-sm" style="width: 160px;" data-test="binding-group-connection"
value="@GroupConnectionInput(g)" value="@GroupConnectionInput(g)"
@onchange="e => _groupConnectionInput[g.Key] = int.TryParse(e.Value?.ToString(), out var v) ? v : 0"> @onchange="e => _groupConnectionInput[g.Key] = int.TryParse(e.Value?.ToString(), out var v) ? v : 0">
<option value="0">@(g.ConnectionState == BindingConnectionState.Mixed ? "— mixed —" : "— none —")</option> <option value="0">@(g.ConnectionState == BindingConnectionState.Mixed ? "— mixed —" : "— none —")</option>
@@ -183,7 +183,7 @@
<option value="@c.Id">@c.Name</option> <option value="@c.Id">@c.Name</option>
} }
</select> </select>
<input class="form-control form-control-sm font-monospace" style="max-width: 260px;" data-test="binding-group-object" <input aria-label="Binding group object reference" class="form-control form-control-sm font-monospace" style="max-width: 260px;" data-test="binding-group-object"
value="@GroupObjectInput(g)" value="@GroupObjectInput(g)"
placeholder="@(g.IsObjectMixed ? "mixed — enter object to unify" : "object, e.g. MESReceiver_022")" placeholder="@(g.IsObjectMixed ? "mixed — enter object to unify" : "object, e.g. MESReceiver_022")"
title="Object path the module's members hang off; Apply rewrites every member to <object>.<member>. Blank clears the overrides." title="Object path the module's members hang off; Apply rewrites every member to <object>.<member>. Blank clears the overrides."
@@ -241,7 +241,7 @@
} }
</td> </td>
<td> <td>
<select class="form-select form-select-sm" <select aria-label="Attribute data connection" class="form-select form-select-sm"
value="@connId" value="@connId"
@onchange="(e) => OnBindingChanged(name, e)"> @onchange="(e) => OnBindingChanged(name, e)">
<option value="0">— none —</option> <option value="0">— none —</option>
@@ -252,7 +252,7 @@
</select> </select>
</td> </td>
<td> <td>
<input class="form-control form-control-sm font-monospace" <input aria-label="Attribute source reference" class="form-control form-control-sm font-monospace"
value="@GetOverrideForAttr(name)" value="@GetOverrideForAttr(name)"
@onchange="(e) => OnOverrideForAttrChanged(name, e)" @onchange="(e) => OnOverrideForAttrChanged(name, e)"
placeholder="@(m.Row.DefaultReference ?? "(no default)")" /> placeholder="@(m.Row.DefaultReference ?? "(no default)")" />
@@ -407,7 +407,7 @@
} }
else else
{ {
<input type="text" class="form-control form-control-sm" <input aria-label="Attribute override value" type="text" class="form-control form-control-sm"
value="@GetOverrideValue(attr.Name)" value="@GetOverrideValue(attr.Name)"
@onchange="(e) => OnOverrideChanged(attr.Name, e)" /> @onchange="(e) => OnOverrideChanged(attr.Name, e)" />
} }
@@ -537,10 +537,10 @@
<div class="row g-2"> <div class="row g-2">
<div class="col-md-6"> <div class="col-md-6">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-1")">
Priority override Priority override
</label> </label>
<input type="number" min="0" max="1000" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-1")" type="number" min="0" max="1000" class="form-control form-control-sm"
data-test="alarm-priority-input" data-test="alarm-priority-input"
placeholder="@_editingAlarm.PriorityLevel" placeholder="@_editingAlarm.PriorityLevel"
@bind="_editingPriorityText" @bind:event="oninput" /> @bind="_editingPriorityText" @bind:event="oninput" />
@@ -549,8 +549,8 @@
@* Tri-state: blank = inherit the template alarm's flag. @* Tri-state: blank = inherit the template alarm's flag.
"Not reportable" is a real override, not a clear — it "Not reportable" is a real override, not a clear — it
pins a reportable template alarm off for this instance. *@ pins a reportable template alarm off for this instance. *@
<label class="form-label small text-uppercase text-muted fw-semibold mb-1">MES reportable override</label> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-2")">MES reportable override</label>
<select class="form-select form-select-sm" data-test="alarm-mes-select" @bind="_editingMesReportableText"> <select id="@($"{_fieldScope}-field-2")" class="form-select form-select-sm" data-test="alarm-mes-select" @bind="_editingMesReportableText">
<option value="">Inherited (@(_editingAlarm.IsMesReportable ? "reportable" : "not reportable"))</option> <option value="">Inherited (@(_editingAlarm.IsMesReportable ? "reportable" : "not reportable"))</option>
<option value="true">Reportable</option> <option value="true">Reportable</option>
<option value="false">Not reportable</option> <option value="false">Not reportable</option>
@@ -676,7 +676,7 @@
<div class="text-muted font-monospace text-truncate">@src.SourceReference</div> <div class="text-muted font-monospace text-truncate">@src.SourceReference</div>
</td> </td>
<td> <td>
<select class="form-select form-select-sm" <select aria-label="Native alarm data connection" class="form-select form-select-sm"
value="@(_nasConnEdit.GetValueOrDefault(src.Name) ?? "")" value="@(_nasConnEdit.GetValueOrDefault(src.Name) ?? "")"
@onchange="e => _nasConnEdit[src.Name] = string.IsNullOrEmpty((string?)e.Value) ? null : (string?)e.Value"> @onchange="e => _nasConnEdit[src.Name] = string.IsNullOrEmpty((string?)e.Value) ? null : (string?)e.Value">
<option value="">(inherited)</option> <option value="">(inherited)</option>
@@ -687,19 +687,19 @@
</select> </select>
</td> </td>
<td> <td>
<input class="form-control form-control-sm font-monospace" <input aria-label="Native alarm source reference" class="form-control form-control-sm font-monospace"
placeholder="@src.SourceReference" placeholder="@src.SourceReference"
value="@(_nasRefEdit.GetValueOrDefault(src.Name) ?? "")" value="@(_nasRefEdit.GetValueOrDefault(src.Name) ?? "")"
@onchange="e => _nasRefEdit[src.Name] = string.IsNullOrWhiteSpace((string?)e.Value) ? null : ((string?)e.Value)!.Trim()" /> @onchange="e => _nasRefEdit[src.Name] = string.IsNullOrWhiteSpace((string?)e.Value) ? null : ((string?)e.Value)!.Trim()" />
</td> </td>
<td> <td>
<input class="form-control form-control-sm" <input aria-label="Native alarm condition filter" class="form-control form-control-sm"
placeholder="@(string.IsNullOrEmpty(src.ConditionFilter) ? "(all)" : src.ConditionFilter)" placeholder="@(string.IsNullOrEmpty(src.ConditionFilter) ? "(all)" : src.ConditionFilter)"
value="@(_nasFilterEdit.GetValueOrDefault(src.Name) ?? "")" value="@(_nasFilterEdit.GetValueOrDefault(src.Name) ?? "")"
@onchange="e => _nasFilterEdit[src.Name] = string.IsNullOrWhiteSpace((string?)e.Value) ? null : ((string?)e.Value)!.Trim()" /> @onchange="e => _nasFilterEdit[src.Name] = string.IsNullOrWhiteSpace((string?)e.Value) ? null : ((string?)e.Value)!.Trim()" />
</td> </td>
<td> <td>
<select class="form-select form-select-sm" data-test="@($"nas-mes-{src.Name}")" <select aria-label="Native alarm MES reportable override" class="form-select form-select-sm" data-test="@($"nas-mes-{src.Name}")"
value="@MesText(_nasMesEdit.GetValueOrDefault(src.Name))" value="@MesText(_nasMesEdit.GetValueOrDefault(src.Name))"
@onchange="e => _nasMesEdit[src.Name] = ParseMes((string?)e.Value)"> @onchange="e => _nasMesEdit[src.Name] = ParseMes((string?)e.Value)">
<option value="" selected="@(_nasMesEdit.GetValueOrDefault(src.Name) == null)">Inherited (@(src.IsMesReportable ? "reportable" : "not reportable"))</option> <option value="" selected="@(_nasMesEdit.GetValueOrDefault(src.Name) == null)">Inherited (@(src.IsMesReportable ? "reportable" : "not reportable"))</option>
@@ -733,7 +733,7 @@
</div> </div>
<div class="card-body py-2"> <div class="card-body py-2">
<div class="d-flex align-items-center gap-2"> <div class="d-flex align-items-center gap-2">
<select class="form-select form-select-sm" style="width: auto;" data-test="area-select" @bind="_reassignAreaId"> <select aria-label="Assigned area" class="form-select form-select-sm" style="width: auto;" data-test="area-select" @bind="_reassignAreaId">
<option value="0">No area</option> <option value="0">No area</option>
@foreach (var a in _siteAreas) @foreach (var a in _siteAreas)
{ {
@@ -2008,3 +2008,5 @@
_ => "bg-secondary" _ => "bg-secondary"
}; };
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -38,13 +38,13 @@
<div class="card mb-3"> <div class="card mb-3">
<div class="card-body"> <div class="card-body">
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Instance Name</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">Instance Name</label>
<input type="text" class="form-control form-control-sm" @bind="_createName" placeholder="e.g. Motor-1" /> <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control form-control-sm" @bind="_createName" placeholder="e.g. Motor-1" />
</div> </div>
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Template</label> <label class="form-label small" for="@($"{_fieldScope}-field-2")">Template</label>
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<input type="text" class="form-control" data-test="create-template" readonly <input aria-describedby="@(_templates.Count == 0 || _templateHint is not null ? $"{_helpScope}-0" : null)" id="@($"{_fieldScope}-field-2")" type="text" class="form-control" data-test="create-template" readonly
placeholder="Choose a template…" value="@TemplatePathLabel" placeholder="Choose a template…" value="@TemplatePathLabel"
style="cursor: pointer; background-color: var(--bs-body-bg);" style="cursor: pointer; background-color: var(--bs-body-bg);"
@onclick="OpenTemplatePickerAsync" /> @onclick="OpenTemplatePickerAsync" />
@@ -53,16 +53,16 @@
</div> </div>
@if (_templates.Count == 0) @if (_templates.Count == 0)
{ {
<div class="form-text">No templates exist yet — <a href="/design/templates">create one on the Templates page</a>.</div> <div class="form-text" id="@($"{_helpScope}-0")">No templates exist yet — <a href="/design/templates">create one on the Templates page</a>.</div>
} }
else if (_templateHint is not null) else if (_templateHint is not null)
{ {
<div class="form-text text-warning-emphasis">@_templateHint</div> <div class="form-text text-warning-emphasis" id="@($"{_helpScope}-0")">@_templateHint</div>
} }
</div> </div>
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Site</label> <label class="form-label small" for="@($"{_fieldScope}-field-3")">Site</label>
<select class="form-select form-select-sm" data-test="create-site" <select id="@($"{_fieldScope}-field-3")" class="form-select form-select-sm" data-test="create-site"
value="@_createSiteId" value="@_createSiteId"
@onchange="async e => { _createSiteId = int.TryParse(e.Value?.ToString(), out var v) ? v : 0; _createAreaId = 0; await OnTemplateOrSiteChangedAsync(); }"> @onchange="async e => { _createSiteId = int.TryParse(e.Value?.ToString(), out var v) ? v : 0; _createAreaId = 0; await OnTemplateOrSiteChangedAsync(); }">
<option value="0">Select site...</option> <option value="0">Select site...</option>
@@ -73,8 +73,8 @@
</select> </select>
</div> </div>
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Area</label> <label class="form-label small" for="@($"{_fieldScope}-field-4")">Area</label>
<select class="form-select form-select-sm" @bind="_createAreaId"> <select id="@($"{_fieldScope}-field-4")" class="form-select form-select-sm" @bind="_createAreaId">
<option value="0">No area</option> <option value="0">No area</option>
@foreach (var a in _allAreas.Where(a => a.SiteId == _createSiteId)) @foreach (var a in _allAreas.Where(a => a.SiteId == _createSiteId))
{ {
@@ -138,14 +138,14 @@
{ {
<div class="card-body border-bottom py-2 d-flex align-items-center gap-2 flex-wrap small"> <div class="card-body border-bottom py-2 d-flex align-items-center gap-2 flex-wrap small">
<span>Bind all to</span> <span>Bind all to</span>
<select class="form-select form-select-sm" style="width: auto;" data-test="create-root-connection" @bind="_rootConnectionId"> <select aria-label="Root data connection" class="form-select form-select-sm" style="width: auto;" data-test="create-root-connection" @bind="_rootConnectionId">
<option value="0">Select connection...</option> <option value="0">Select connection...</option>
@foreach (var c in _siteConnections) @foreach (var c in _siteConnections)
{ {
<option value="@c.Id">@c.Name (@c.Protocol)</option> <option value="@c.Id">@c.Name (@c.Protocol)</option>
} }
</select> </select>
<input class="form-control form-control-sm font-monospace" style="max-width: 260px;" data-test="create-root-object" <input aria-label="Root object reference" class="form-control form-control-sm font-monospace" style="max-width: 260px;" data-test="create-root-object"
@bind="_rootObject" placeholder="root object, e.g. Z28063" /> @bind="_rootObject" placeholder="root object, e.g. Z28063" />
<button class="btn btn-outline-primary btn-sm" data-test="create-root-browse" <button class="btn btn-outline-primary btn-sm" data-test="create-root-browse"
disabled="@(!IsBrowsable(_rootConnectionId))" @onclick="() => OpenBrowser(null)">Browse…</button> disabled="@(!IsBrowsable(_rootConnectionId))" @onclick="() => OpenBrowser(null)">Browse…</button>
@@ -169,7 +169,7 @@
} }
</span> </span>
<span class="text-muted small">@g.Members.Count</span> <span class="text-muted small">@g.Members.Count</span>
<select class="form-select form-select-sm" style="width: 160px;" data-test="create-group-connection" <select aria-label="Binding group connection" class="form-select form-select-sm" style="width: 160px;" data-test="create-group-connection"
value="@(input?.ConnectionId ?? 0)" value="@(input?.ConnectionId ?? 0)"
@onchange="e => SetGroupConnection(g, int.TryParse(e.Value?.ToString(), out var v) ? v : 0)"> @onchange="e => SetGroupConnection(g, int.TryParse(e.Value?.ToString(), out var v) ? v : 0)">
<option value="0">— none —</option> <option value="0">— none —</option>
@@ -178,7 +178,7 @@
<option value="@c.Id">@c.Name</option> <option value="@c.Id">@c.Name</option>
} }
</select> </select>
<input class="form-control form-control-sm font-monospace" style="max-width: 260px;" data-test="create-group-object" <input aria-label="Binding group object reference" class="form-control form-control-sm font-monospace" style="max-width: 260px;" data-test="create-group-object"
value="@input?.Object" value="@input?.Object"
placeholder="@(g.IsInstanceGroup ? "object, e.g. Z28063" : $"object, e.g. {g.Key}")" placeholder="@(g.IsInstanceGroup ? "object, e.g. Z28063" : $"object, e.g. {g.Key}")"
title="Object path this module's members hang off; every member binds as <object>.<member>." title="Object path this module's members hang off; every member binds as <object>.<member>."
@@ -400,3 +400,7 @@
await OnTemplateOrSiteChangedAsync(); await OnTemplateOrSiteChangedAsync();
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -8,7 +8,7 @@
<button type="button" class="btn-close" @onclick="Close"></button> <button type="button" class="btn-close" @onclick="Close"></button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<select class="form-select form-select-sm" @bind="_targetParentId"> <select aria-label="Parent area" class="form-select form-select-sm" @bind="_targetParentId">
@foreach (var opt in ParentOptions) @foreach (var opt in ParentOptions)
{ {
<option value="@opt.Id">@opt.Label</option> <option value="@opt.Id">@opt.Label</option>
@@ -8,7 +8,7 @@
<button type="button" class="btn-close" @onclick="Close"></button> <button type="button" class="btn-close" @onclick="Close"></button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<select class="form-select form-select-sm" @bind="_targetAreaId"> <select aria-label="Target area" class="form-select form-select-sm" @bind="_targetAreaId">
@foreach (var opt in AreaOptions) @foreach (var opt in AreaOptions)
{ {
<option value="@opt.Id">@opt.Label</option> <option value="@opt.Id">@opt.Label</option>
@@ -72,7 +72,7 @@
<h4 class="mb-0">Topology</h4> <h4 class="mb-0">Topology</h4>
</div> </div>
<div class="d-flex align-items-center mb-2 gap-2 flex-wrap"> <div class="d-flex align-items-center mb-2 gap-2 flex-wrap">
<input type="text" class="form-control form-control-sm" style="max-width: 320px;" <input aria-label="Search loaded sites, areas and instances" type="text" class="form-control form-control-sm" style="max-width: 320px;"
placeholder="Search loaded sites, areas, instances..." placeholder="Search loaded sites, areas, instances..."
@bind="_searchText" @bind:event="oninput" @bind:after="OnSearchChanged" /> @bind="_searchText" @bind:event="oninput" @bind:after="OnSearchChanged" />
<div class="btn-group btn-group-sm" role="group" aria-label="Topology actions"> <div class="btn-group btn-group-sm" role="group" aria-label="Topology actions">
@@ -39,20 +39,20 @@
<fieldset class="mb-4"> <fieldset class="mb-4">
<legend class="h6">Method</legend> <legend class="h6">Method</legend>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Name</label> <label class="form-label" for="@($"{_fieldScope}-field-1")">Name</label>
<input type="text" class="form-control" @bind="_name" disabled="@Id.HasValue" /> <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control" @bind="_name" disabled="@Id.HasValue" />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Timeout (seconds)</label> <label class="form-label" for="@($"{_fieldScope}-field-2")">Timeout (seconds)</label>
<input type="number" class="form-control" @bind="_timeoutSeconds" min="1" /> <input id="@($"{_fieldScope}-field-2")" type="number" class="form-control" @bind="_timeoutSeconds" min="1" />
</div> </div>
<div class="form-check mb-0"> <div class="form-check mb-0">
<input class="form-check-input" type="checkbox" id="api-method-trace-all-calls" <input class="form-check-input" type="checkbox" id="api-method-trace-all-calls" aria-describedby="@($"{_fieldScope}-trace-hint")"
data-test="api-method-trace-all-calls" @bind="_traceAllCalls" /> data-test="api-method-trace-all-calls" @bind="_traceAllCalls" />
<label class="form-check-label" for="api-method-trace-all-calls"> <label class="form-check-label" for="api-method-trace-all-calls">
Trace all calls (Flow Debugger) Trace all calls (Flow Debugger)
</label> </label>
<div class="form-text"> <div class="form-text" id="@($"{_fieldScope}-trace-hint")">
Every call to this method records its routed site steps as audit rows the Every call to this method records its routed site steps as audit rows the
Flow Debugger can replay. Adds 7–10 audit rows per call; for low-volume Flow Debugger can replay. Adds 7–10 audit rows per call; for low-volume
integration methods. integration methods.
@@ -60,12 +60,12 @@
</div> </div>
</fieldset> </fieldset>
<fieldset class="mb-4"> <fieldset class="mb-4" aria-describedby="@($"{_fieldScope}-keys-hint")">
<legend class="h6">Approved API Keys</legend> <legend class="h6">Approved API Keys</legend>
<div class="mb-0"> <div class="mb-0">
@if (_allKeys.Count == 0) @if (_allKeys.Count == 0)
{ {
<div class="form-text"> <div class="form-text" id="@($"{_fieldScope}-keys-hint")">
No API keys configured. No API keys configured.
<a href="/admin/api-keys">Create one</a> to authorize callers for this method. <a href="/admin/api-keys">Create one</a> to authorize callers for this method.
</div> </div>
@@ -90,7 +90,7 @@
</div> </div>
} }
</div> </div>
<div class="form-text"> <div class="form-text" id="@($"{_fieldScope}-keys-hint")">
Callers must present a checked key in the <code>X-API-Key</code> header to invoke this method. Callers must present a checked key in the <code>X-API-Key</code> header to invoke this method.
</div> </div>
} }
@@ -100,13 +100,13 @@
<fieldset class="mb-4"> <fieldset class="mb-4">
<legend class="h6">Contract</legend> <legend class="h6">Contract</legend>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Parameters</label> <div class="form-label">Parameters</div>
<SchemaBuilder Mode="object" <SchemaBuilder Mode="object"
Value="@_params" Value="@_params"
ValueChanged="@(v => _params = v)" /> ValueChanged="@(v => _params = v)" />
</div> </div>
<div class="mb-0"> <div class="mb-0">
<label class="form-label">Return value</label> <div class="form-label">Return value</div>
<SchemaBuilder Mode="value" <SchemaBuilder Mode="value"
Value="@_returns" Value="@_returns"
ValueChanged="@(v => _returns = v)" /> ValueChanged="@(v => _returns = v)" />
@@ -116,7 +116,7 @@
<fieldset class="mb-4"> <fieldset class="mb-4">
<legend class="h6">Script</legend> <legend class="h6">Script</legend>
<div class="mb-0"> <div class="mb-0">
<MonacoEditor @ref="_editor" Value="@_script" ValueChanged="@(v => _script = v)" <MonacoEditor AriaLabel="Inbound API method code" @ref="_editor" Value="@_script" ValueChanged="@(v => _script = v)"
Language="csharp" Height="320px" Language="csharp" Height="320px"
ScriptKind="ZB.MOM.WW.ScadaBridge.CentralUI.ScriptAnalysis.ScriptKind.InboundApi" ScriptKind="ZB.MOM.WW.ScadaBridge.CentralUI.ScriptAnalysis.ScriptKind.InboundApi"
DeclaredParameters="@ScriptParameterNames.Parse(_params)" DeclaredParameters="@ScriptParameterNames.Parse(_params)"
@@ -216,7 +216,7 @@
routing needs a deployed site reachable over the cluster transport. routing needs a deployed site reachable over the cluster transport.
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label small">Parameter values</label> <div class="form-label small">Parameter values</div>
<ParameterValueForm ParameterDefinitions="@_params" <ParameterValueForm ParameterDefinitions="@_params"
Values="_paramValues" Values="_paramValues"
ValuesChanged="@(v => _paramValues = v)" /> ValuesChanged="@(v => _paramValues = v)" />
@@ -244,18 +244,18 @@
@if (_runResult.Success) @if (_runResult.Success)
{ {
<div class="mb-3"> <div class="mb-3">
<label class="form-label small text-success mb-1"> <div class="form-label small text-success mb-1">
Return value <span class="badge bg-secondary-subtle text-secondary-emphasis ms-1">@_runResult.ReturnTypeName</span> Return value <span class="badge bg-secondary-subtle text-secondary-emphasis ms-1">@_runResult.ReturnTypeName</span>
</label> </div>
<pre class="bg-body-secondary border rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ReturnValueJson</pre> <pre class="bg-body-secondary border rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ReturnValueJson</pre>
</div> </div>
} }
else else
{ {
<div class="mb-3"> <div class="mb-3">
<label class="form-label small text-danger mb-1"> <div class="form-label small text-danger mb-1">
<span class="badge bg-danger me-1">@ErrorKindLabel(_runResult.ErrorKind)</span> <span class="badge bg-danger me-1">@ErrorKindLabel(_runResult.ErrorKind)</span>
</label> </div>
<pre class="border border-danger-subtle rounded p-2 small mb-0 font-monospace text-danger" style="white-space: pre-wrap;">@_runResult.Error</pre> <pre class="border border-danger-subtle rounded p-2 small mb-0 font-monospace text-danger" style="white-space: pre-wrap;">@_runResult.Error</pre>
@if (_runResult.Markers is { Count: > 0 }) @if (_runResult.Markers is { Count: > 0 })
{ {
@@ -272,7 +272,7 @@
@if (!string.IsNullOrEmpty(_runResult.ConsoleOutput)) @if (!string.IsNullOrEmpty(_runResult.ConsoleOutput))
{ {
<div class="mb-0"> <div class="mb-0">
<label class="form-label small mb-1">Console output</label> <div class="form-label small mb-1">Console output</div>
<pre class="bg-dark text-light rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ConsoleOutput</pre> <pre class="bg-dark text-light rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ConsoleOutput</pre>
</div> </div>
} }
@@ -532,3 +532,5 @@
_ => "Error" _ => "Error"
}; };
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -35,18 +35,18 @@
</div> </div>
<div class="card-body"> <div class="card-body">
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Site</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">Site</label>
@if (_siteLocked) @if (_siteLocked)
{ {
<input type="text" <input aria-describedby="@($"{_helpScope}-0")" id="@($"{_fieldScope}-field-1")" type="text"
class="form-control form-control-plaintext form-control-sm" class="form-control form-control-plaintext form-control-sm"
readonly readonly
value="@_siteName" /> value="@_siteName" />
<div class="form-text">Site is locked after creation.</div> <div class="form-text" id="@($"{_helpScope}-0")">Site is locked after creation.</div>
} }
else else
{ {
<select class="form-select form-select-sm" @bind="_formSiteId"> <select id="@($"{_fieldScope}-field-1")" aria-label="Site" class="form-select form-select-sm" @bind="_formSiteId">
<option value="0">Select site...</option> <option value="0">Select site...</option>
@foreach (var site in _sites) @foreach (var site in _sites)
{ {
@@ -56,37 +56,37 @@
} }
</div> </div>
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Protocol</label> <label class="form-label small" for="@($"{_fieldScope}-field-2")">Protocol</label>
@if (_protocolLocked) @if (_protocolLocked)
{ {
<input type="text" <input aria-describedby="@($"{_helpScope}-1")" id="@($"{_fieldScope}-field-2")" type="text"
class="form-control form-control-plaintext form-control-sm" class="form-control form-control-plaintext form-control-sm"
readonly readonly
value="@_protocol" /> value="@_protocol" />
<div class="form-text">Protocol is locked after creation.</div> <div class="form-text" id="@($"{_helpScope}-1")">Protocol is locked after creation.</div>
} }
else else
{ {
<select class="form-select form-select-sm" @bind="_protocol"> <select id="@($"{_fieldScope}-field-2")" aria-label="Protocol" class="form-select form-select-sm" @bind="_protocol">
<option value="OpcUa">OPC UA</option> <option value="OpcUa">OPC UA</option>
<option value="MxGateway">MxGateway</option> <option value="MxGateway">MxGateway</option>
</select> </select>
} }
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label small">Name</label> <label class="form-label small" for="@($"{_fieldScope}-field-3")">Name</label>
<input type="text" class="form-control form-control-sm" @bind="_formName" /> <input id="@($"{_fieldScope}-field-3")" type="text" class="form-control form-control-sm" @bind="_formName" />
</div> </div>
@if (Id.HasValue && _protocol == "OpcUa") @if (Id.HasValue && _protocol == "OpcUa")
{ {
<div class="mb-2"> <div class="mb-2">
<a class="btn btn-outline-secondary btn-sm" <a class="btn btn-outline-secondary btn-sm"
data-test="manage-certificates-link" data-test="manage-certificates-link" aria-describedby="@($"{_helpScope}-certificate-hint")"
href="@($"/design/connections/{Id}/certificates")"> href="@($"/design/connections/{Id}/certificates")">
Manage certificates Manage certificates
</a> </a>
<div class="form-text"> <div id="@($"{_helpScope}-certificate-hint")" class="form-text">
View, trust, and remove OPC UA server certificates in the View, trust, and remove OPC UA server certificates in the
site's node-wide trusted-peer store. site's node-wide trusted-peer store.
</div> </div>
@@ -160,22 +160,22 @@
Errors="_backupErrors" /> Errors="_backupErrors" />
} }
<div class="mb-2"> <div class="mb-2">
<label class="form-label small">Failover Retry Count</label> <label class="form-label small" for="@($"{_fieldScope}-field-4")">Failover Retry Count</label>
<input type="number" class="form-control form-control-sm" style="max-width: 120px;" <input aria-describedby="@($"{_helpScope}-2")" id="@($"{_fieldScope}-field-4")" type="number" class="form-control form-control-sm" style="max-width: 120px;"
min="1" max="20" @bind="_formFailoverRetryCount" /> min="1" max="20" @bind="_formFailoverRetryCount" />
<div class="form-text">Retries before failing over to backup endpoint.</div> <div class="form-text" id="@($"{_helpScope}-2")">Retries before failing over to backup endpoint.</div>
</div> </div>
@if (_protocol != "MxGateway") @if (_protocol != "MxGateway")
{ {
<div class="mb-2" data-test="servicelevel-failover"> <div class="mb-2" data-test="servicelevel-failover">
<div class="form-check"> <div class="form-check">
<input type="checkbox" class="form-check-input" id="sl-failover-enabled" <input type="checkbox" class="form-check-input" id="sl-failover-enabled" aria-describedby="@($"{_helpScope}-servicelevel")"
@bind="_formSlEnabled" /> @bind="_formSlEnabled" />
<label class="form-check-label small" for="sl-failover-enabled"> <label class="form-check-label small" for="sl-failover-enabled">
ServiceLevel failover ServiceLevel failover
</label> </label>
</div> </div>
<div class="form-text"> <div class="form-text" id="@($"{_helpScope}-servicelevel")">
Fail over when the connected endpoint's ServiceLevel stays below 200 (Degraded) Fail over when the connected endpoint's ServiceLevel stays below 200 (Degraded)
for the window below and the other endpoint reports a Healthy (200+), higher level. for the window below and the other endpoint reports a Healthy (200+), higher level.
Needed for an OtOpcUa pair in Warm redundancy; a 250/240 pair never triggers it. Needed for an OtOpcUa pair in Warm redundancy; a 250/240 pair never triggers it.
@@ -185,13 +185,13 @@
<div class="row g-2 mt-1"> <div class="row g-2 mt-1">
<div class="col-auto"> <div class="col-auto">
<label class="form-label small" for="sl-failover-window">Degraded window (s)</label> <label class="form-label small" for="sl-failover-window">Degraded window (s)</label>
<input type="number" id="sl-failover-window" class="form-control form-control-sm" <input aria-invalid="@(PrimaryError("ServiceLevelFailover.DegradedWindowSeconds") is not null ? "true" : "false")" aria-describedby="@(PrimaryError("ServiceLevelFailover.DegradedWindowSeconds") is not null ? PrimaryErrorId("ServiceLevelFailover.DegradedWindowSeconds") : null)" type="number" id="sl-failover-window" class="form-control form-control-sm"
style="max-width: 120px;" min="1" max="3600" @bind="_formSlWindowSeconds" /> style="max-width: 120px;" min="1" max="3600" @bind="_formSlWindowSeconds" />
@RenderPrimaryError("ServiceLevelFailover.DegradedWindowSeconds") @RenderPrimaryError("ServiceLevelFailover.DegradedWindowSeconds")
</div> </div>
<div class="col-auto"> <div class="col-auto">
<label class="form-label small" for="sl-failover-dwell">Minimum dwell (s)</label> <label class="form-label small" for="sl-failover-dwell">Minimum dwell (s)</label>
<input type="number" id="sl-failover-dwell" class="form-control form-control-sm" <input aria-invalid="@(PrimaryError("ServiceLevelFailover.MinDwellSeconds") is not null ? "true" : "false")" aria-describedby="@(PrimaryError("ServiceLevelFailover.MinDwellSeconds") is not null ? PrimaryErrorId("ServiceLevelFailover.MinDwellSeconds") : null)" type="number" id="sl-failover-dwell" class="form-control form-control-sm"
style="max-width: 120px;" min="0" max="86400" @bind="_formSlDwellSeconds" /> style="max-width: 120px;" min="0" max="86400" @bind="_formSlDwellSeconds" />
@RenderPrimaryError("ServiceLevelFailover.MinDwellSeconds") @RenderPrimaryError("ServiceLevelFailover.MinDwellSeconds")
</div> </div>
@@ -406,13 +406,20 @@
_formSlDwellSeconds = OpcUaServiceLevelFailoverConfig.DefaultMinDwellSeconds; _formSlDwellSeconds = OpcUaServiceLevelFailoverConfig.DefaultMinDwellSeconds;
} }
private ValidationEntry? PrimaryError(string field) => _primaryErrors?.Errors.FirstOrDefault(e => e.EntityName == "Primary." + field);
private string PrimaryErrorId(string field) => _fieldScope + "-primary-error-" + field.Replace('.', '-');
private RenderFragment? RenderPrimaryError(string field) private RenderFragment? RenderPrimaryError(string field)
{ {
var match = _primaryErrors?.Errors.FirstOrDefault(e => e.EntityName == "Primary." + field); var match = PrimaryError(field);
return match is null return match is null
? null ? null
: @<div class="text-danger small">@match.Message</div>; : @<div id="@PrimaryErrorId(field)" role="alert" class="text-danger small">@match.Message</div>;
} }
private void GoBack() => NavigationManager.NavigateTo("/design/connections"); private void GoBack() => NavigationManager.NavigateTo("/design/connections");
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -56,7 +56,7 @@
else else
{ {
<div class="mb-3" style="max-width: 320px;"> <div class="mb-3" style="max-width: 320px;">
<input type="text" class="form-control form-control-sm" <input aria-label="Search sites or connections" type="text" class="form-control form-control-sm"
placeholder="Search sites or connections..." placeholder="Search sites or connections..."
@bind="_searchText" @bind:event="oninput" @bind:after="OnSearchChanged" /> @bind="_searchText" @bind:event="oninput" @bind:after="OnSearchChanged" />
</div> </div>
@@ -24,21 +24,21 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Name</label> <label class="form-label" for="@($"{_fieldScope}-field-1")">Name</label>
<input type="text" class="form-control" @bind="_name" /> <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control" @bind="_name" />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Connection String</label> <label class="form-label" for="@($"{_fieldScope}-field-2")">Connection String</label>
<input type="text" class="form-control" @bind="_connectionString" /> <input aria-describedby="@($"{_helpScope}-0")" id="@($"{_fieldScope}-field-2")" type="text" class="form-control" @bind="_connectionString" />
<div class="form-text">Treat as sensitive — visible to admins only.</div> <div class="form-text" id="@($"{_helpScope}-0")">Treat as sensitive — visible to admins only.</div>
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Max Retries</label> <label class="form-label" for="@($"{_fieldScope}-field-3")">Max Retries</label>
<input type="number" class="form-control" @bind="_maxRetries" min="0" /> <input id="@($"{_fieldScope}-field-3")" type="number" class="form-control" @bind="_maxRetries" min="0" />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Retry Delay (seconds)</label> <label class="form-label" for="@($"{_fieldScope}-field-4")">Retry Delay (seconds)</label>
<input type="number" class="form-control" @bind="_retryDelaySeconds" min="0" /> <input id="@($"{_fieldScope}-field-4")" type="number" class="form-control" @bind="_retryDelaySeconds" min="0" />
</div> </div>
@if (_formError != null) @if (_formError != null)
@@ -107,3 +107,7 @@
private void GoBack() => NavigationManager.NavigateTo("/design/external-systems"); private void GoBack() => NavigationManager.NavigateTo("/design/external-systems");
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -37,38 +37,38 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Name</label> <label class="form-label" for="@($"{_fieldScope}-field-1")">Name</label>
<input type="text" class="form-control" @bind="_name" /> <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control" @bind="_name" />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Endpoint URL</label> <label class="form-label" for="@($"{_fieldScope}-field-2")">Endpoint URL</label>
<input type="text" class="form-control" @bind="_endpointUrl" /> <input id="@($"{_fieldScope}-field-2")" type="text" class="form-control" @bind="_endpointUrl" />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Auth Type</label> <label class="form-label" for="@($"{_fieldScope}-field-3")">Auth Type</label>
<select class="form-select" @bind="_authType"> <select id="@($"{_fieldScope}-field-3")" class="form-select" @bind="_authType">
<option>ApiKey</option> <option>ApiKey</option>
<option>BasicAuth</option> <option>BasicAuth</option>
<option>None</option> <option>None</option>
</select> </select>
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Auth Config (JSON)</label> <label class="form-label" for="@($"{_fieldScope}-field-4")">Auth Config (JSON)</label>
<input type="text" class="form-control" @bind="_authConfig" <input id="@($"{_fieldScope}-field-4")" type="text" class="form-control" @bind="_authConfig"
placeholder="@_authConfigPlaceholder" /> placeholder="@_authConfigPlaceholder" />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Max Retries</label> <label class="form-label" for="@($"{_fieldScope}-field-5")">Max Retries</label>
<input type="number" class="form-control" @bind="_maxRetries" min="0" /> <input id="@($"{_fieldScope}-field-5")" type="number" class="form-control" @bind="_maxRetries" min="0" />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Retry Delay (seconds)</label> <label class="form-label" for="@($"{_fieldScope}-field-6")">Retry Delay (seconds)</label>
<input type="number" class="form-control" @bind="_retryDelaySeconds" min="0" /> <input id="@($"{_fieldScope}-field-6")" type="number" class="form-control" @bind="_retryDelaySeconds" min="0" />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Timeout (seconds)</label> <label class="form-label" for="@($"{_fieldScope}-field-7")">Timeout (seconds)</label>
<input type="number" class="form-control" @bind="_timeoutSeconds" min="0" /> <input aria-describedby="@($"{_helpScope}-0")" id="@($"{_fieldScope}-field-7")" type="number" class="form-control" @bind="_timeoutSeconds" min="0" />
<div class="form-text">0 = use gateway default</div> <div class="form-text" id="@($"{_helpScope}-0")">0 = use gateway default</div>
</div> </div>
@if (_formError != null) @if (_formError != null)
@@ -150,3 +150,7 @@
private void GoBack() => NavigationManager.NavigateTo("/design/external-systems"); private void GoBack() => NavigationManager.NavigateTo("/design/external-systems");
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -144,7 +144,7 @@
else else
{ {
<div class="mb-3" style="max-width: 320px;"> <div class="mb-3" style="max-width: 320px;">
<input class="form-control form-control-sm" <input aria-label="Filter external systems" class="form-control form-control-sm"
placeholder="Filter by name…" placeholder="Filter by name…"
@bind="_extsysSearch" @bind:event="oninput" /> @bind="_extsysSearch" @bind:event="oninput" />
</div> </div>
@@ -217,7 +217,7 @@
else else
{ {
<div class="mb-3" style="max-width: 320px;"> <div class="mb-3" style="max-width: 320px;">
<input class="form-control form-control-sm" <input aria-label="Filter database connections" class="form-control form-control-sm"
placeholder="Filter by name…" placeholder="Filter by name…"
@bind="_dbConnSearch" @bind:event="oninput" /> @bind="_dbConnSearch" @bind:event="oninput" />
</div> </div>
@@ -290,7 +290,7 @@
else else
{ {
<div class="mb-3" style="max-width: 320px;"> <div class="mb-3" style="max-width: 320px;">
<input class="form-control form-control-sm" <input aria-label="Filter API methods" class="form-control form-control-sm"
placeholder="Filter by name…" placeholder="Filter by name…"
@bind="_apiMethodSearch" @bind:event="oninput" /> @bind="_apiMethodSearch" @bind:event="oninput" />
</div> </div>
@@ -30,19 +30,19 @@
<div class="row g-3 mb-3"> <div class="row g-3 mb-3">
<div class="col-md-6"> <div class="col-md-6">
<label class="form-label small">Name</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">Name</label>
<input type="text" class="form-control form-control-sm" <input aria-describedby="@($"{_helpScope}-0")" id="@($"{_fieldScope}-field-1")" type="text" class="form-control form-control-sm"
placeholder="e.g. Address" @bind="_formName" /> placeholder="e.g. Address" @bind="_formName" />
<div class="form-text">Referenced as <code>lib:@(string.IsNullOrWhiteSpace(_formName) ? "Name" : _formName.Trim())</code>.</div> <div class="form-text" id="@($"{_helpScope}-0")">Referenced as <code>lib:@(string.IsNullOrWhiteSpace(_formName) ? "Name" : _formName.Trim())</code>.</div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label class="form-label small">Scope <span class="text-muted">(optional)</span></label> <label class="form-label small" for="@($"{_fieldScope}-field-2")">Scope <span class="text-muted">(optional)</span></label>
<input type="text" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-2")" type="text" class="form-control form-control-sm"
placeholder="(global)" @bind="_formScope" /> placeholder="(global)" @bind="_formScope" />
</div> </div>
</div> </div>
<label class="form-label small">Schema</label> <div class="form-label small">Schema</div>
<SchemaBuilder Mode="value" <SchemaBuilder Mode="value"
Value="@_formSchemaJson" Value="@_formSchemaJson"
ValueChanged="@(v => _formSchemaJson = v)" /> ValueChanged="@(v => _formSchemaJson = v)" />
@@ -249,3 +249,7 @@
} }
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -28,8 +28,8 @@
<div class="card mb-3"> <div class="card mb-3">
<div class="card-body"> <div class="card-body">
<div class="mb-3"> <div class="mb-3">
<label class="form-label small">Name</label> <label class="form-label small" for="@($"{_fieldScope}-field-1")">Name</label>
<input type="text" class="form-control form-control-sm" @bind="_formName" <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control form-control-sm" @bind="_formName"
disabled="@(Id.HasValue)" /> disabled="@(Id.HasValue)" />
</div> </div>
@@ -61,7 +61,7 @@
</ul> </ul>
<div class="border border-top-0 rounded-bottom p-3"> <div class="border border-top-0 rounded-bottom p-3">
<div style="display: @(_formTab == "code" ? "block" : "none")"> <div style="display: @(_formTab == "code" ? "block" : "none")">
<MonacoEditor @ref="_editor" Value="@_formCode" ValueChanged="@(v => _formCode = v)" <MonacoEditor AriaLabel="Shared script code" @ref="_editor" Value="@_formCode" ValueChanged="@(v => _formCode = v)"
Language="csharp" Height="320px" Language="csharp" Height="320px"
DeclaredParameters="@ScriptParameterNames.Parse(_formParameters)" DeclaredParameters="@ScriptParameterNames.Parse(_formParameters)"
DeclaredParameterShapes="@ScriptParameterNames.ParseShapes(_formParameters)" DeclaredParameterShapes="@ScriptParameterNames.ParseShapes(_formParameters)"
@@ -115,7 +115,7 @@
<code>Attributes</code> and <code>CallScript</code> still throw. <code>Attributes</code> and <code>CallScript</code> still throw.
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label small">Parameter values</label> <div class="form-label small">Parameter values</div>
<ParameterValueForm ParameterDefinitions="@_formParameters" <ParameterValueForm ParameterDefinitions="@_formParameters"
Values="_paramValues" Values="_paramValues"
ValuesChanged="@(v => _paramValues = v)" /> ValuesChanged="@(v => _paramValues = v)" />
@@ -143,18 +143,18 @@
@if (_runResult.Success) @if (_runResult.Success)
{ {
<div class="mb-3"> <div class="mb-3">
<label class="form-label small text-success mb-1"> <div class="form-label small text-success mb-1">
Return value <span class="badge bg-secondary-subtle text-secondary-emphasis ms-1">@_runResult.ReturnTypeName</span> Return value <span class="badge bg-secondary-subtle text-secondary-emphasis ms-1">@_runResult.ReturnTypeName</span>
</label> </div>
<pre class="bg-body-secondary border rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ReturnValueJson</pre> <pre class="bg-body-secondary border rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ReturnValueJson</pre>
</div> </div>
} }
else else
{ {
<div class="mb-3"> <div class="mb-3">
<label class="form-label small text-danger mb-1"> <div class="form-label small text-danger mb-1">
<span class="badge bg-danger me-1">@ErrorKindLabel(_runResult.ErrorKind)</span> <span class="badge bg-danger me-1">@ErrorKindLabel(_runResult.ErrorKind)</span>
</label> </div>
<pre class="border border-danger-subtle rounded p-2 small mb-0 font-monospace text-danger" style="white-space: pre-wrap;">@_runResult.Error</pre> <pre class="border border-danger-subtle rounded p-2 small mb-0 font-monospace text-danger" style="white-space: pre-wrap;">@_runResult.Error</pre>
@if (_runResult.Markers is { Count: > 0 }) @if (_runResult.Markers is { Count: > 0 })
{ {
@@ -171,7 +171,7 @@
@if (!string.IsNullOrEmpty(_runResult.ConsoleOutput)) @if (!string.IsNullOrEmpty(_runResult.ConsoleOutput))
{ {
<div class="mb-0"> <div class="mb-0">
<label class="form-label small mb-1">Console output</label> <div class="form-label small mb-1">Console output</div>
<pre class="bg-dark text-light rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ConsoleOutput</pre> <pre class="bg-dark text-light rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ConsoleOutput</pre>
</div> </div>
} }
@@ -381,3 +381,5 @@
return null; return null;
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -39,7 +39,7 @@
else else
{ {
<div class="mb-3" style="max-width: 320px;"> <div class="mb-3" style="max-width: 320px;">
<input class="form-control form-control-sm" <input aria-label="Filter shared scripts" class="form-control form-control-sm"
placeholder="Filter by name or code…" placeholder="Filter by name or code…"
@bind="_search" @bind:event="oninput" /> @bind="_search" @bind:event="oninput" />
</div> </div>
@@ -28,7 +28,7 @@
<input id="alarm-priority" type="number" class="form-control" @bind="_priority" min="0" max="1000" /> <input id="alarm-priority" type="number" class="form-control" @bind="_priority" min="0" max="1000" />
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label">Trigger Configuration</label> <div class="form-label">Trigger Configuration</div>
<AlarmTriggerEditor TriggerType="@_triggerType" <AlarmTriggerEditor TriggerType="@_triggerType"
Value="@_triggerConfig" Value="@_triggerConfig"
ValueChanged="@(v => _triggerConfig = v)" ValueChanged="@(v => _triggerConfig = v)"
@@ -43,9 +43,9 @@
</div> </div>
<div class="col-12"> <div class="col-12">
<div class="form-check"> <div class="form-check">
<input class="form-check-input" type="checkbox" @bind="_isMesReportable" id="alarmMesReportable" /> <input class="form-check-input" type="checkbox" @bind="_isMesReportable" id="alarmMesReportable" aria-describedby="alarm-mes-hint" />
<label class="form-check-label" for="alarmMesReportable">MES reportable</label> <label class="form-check-label" for="alarmMesReportable">MES reportable</label>
<div class="form-text">Returned by the MES alarm-status API as <code>IsFlaggedForMES</code>. Instances can override this unless the alarm is locked.</div> <div id="alarm-mes-hint" class="form-text">Returned by the MES alarm-status API as <code>IsFlaggedForMES</code>. Instances can override this unless the alarm is locked.</div>
</div> </div>
</div> </div>
@if (_error != null) @if (_error != null)
@@ -21,7 +21,7 @@
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label" for="attr-data-type">Data Type</label> <label class="form-label" for="attr-data-type">Data Type</label>
<select id="attr-data-type" class="form-select" value="@_dataType" @onchange="OnDataTypeChanged" disabled="@Editing"> <select aria-describedby="@(Editing ? "attr-type-hint" : null)" id="attr-data-type" class="form-select" value="@_dataType" @onchange="OnDataTypeChanged" disabled="@Editing">
@foreach (var dt in Enum.GetValues<DataType>()) @foreach (var dt in Enum.GetValues<DataType>())
{ {
<option value="@dt">@dt</option> <option value="@dt">@dt</option>
@@ -29,7 +29,7 @@
</select> </select>
@if (Editing) @if (Editing)
{ {
<div class="form-text">Data type is fixed once the attribute is created.</div> <div id="attr-type-hint" class="form-text">Data type is fixed once the attribute is created.</div>
} }
</div> </div>
@if (_dataType == DataType.List) @if (_dataType == DataType.List)
@@ -28,12 +28,12 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Name</label> <label class="form-label" for="@($"{_fieldScope}-field-1")">Name</label>
<input type="text" class="form-control" @bind="_createName" /> <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control" @bind="_createName" />
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Parent Template</label> <label class="form-label" for="@($"{_fieldScope}-field-2")">Parent Template</label>
<select class="form-select" @bind="_createParentId"> <select id="@($"{_fieldScope}-field-2")" class="form-select" @bind="_createParentId">
<option value="0">(None - root template)</option> <option value="0">(None - root template)</option>
@foreach (var t in _templates) @foreach (var t in _templates)
{ {
@@ -42,8 +42,8 @@
</select> </select>
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Description</label> <label class="form-label" for="@($"{_fieldScope}-field-3")">Description</label>
<input type="text" class="form-control" @bind="_createDescription" /> <input id="@($"{_fieldScope}-field-3")" type="text" class="form-control" @bind="_createDescription" />
</div> </div>
@if (_formError != null) @if (_formError != null)
{ {
@@ -125,3 +125,5 @@
private Task<string> GetCurrentUserAsync() private Task<string> GetCurrentUserAsync()
=> AuthStateProvider.RequireRoleAsync(ZB.MOM.WW.ScadaBridge.Security.Roles.Designer); => AuthStateProvider.RequireRoleAsync(ZB.MOM.WW.ScadaBridge.Security.Roles.Designer);
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -355,12 +355,12 @@
<div class="card-body"> <div class="card-body">
<div class="row g-3"> <div class="row g-3">
<div class="col-12"> <div class="col-12">
<label class="form-label">Name</label> <label class="form-label" for="@($"{_fieldScope}-field-1")">Name</label>
<input type="text" class="form-control" @bind="_editName" /> <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control" @bind="_editName" />
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label">Description</label> <label class="form-label" for="@($"{_fieldScope}-field-2")">Description</label>
<input type="text" class="form-control" @bind="_editDescription" /> <input id="@($"{_fieldScope}-field-2")" type="text" class="form-control" @bind="_editDescription" />
</div> </div>
@* Parent template is shown in the header above (the "inherits" @* Parent template is shown in the header above (the "inherits"
/ "Derived from" line), so it is not repeated here. *@ / "Derived from" line), so it is not repeated here. *@
@@ -746,7 +746,7 @@
{ {
<td> <td>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" <input aria-label="Lock attribute in derived templates" class="form-check-input" type="checkbox" role="switch"
checked="@attr.LockedInDerived" checked="@attr.LockedInDerived"
@onchange="(e) => ToggleAttrLockedInDerived(attr, e)" /> @onchange="(e) => ToggleAttrLockedInDerived(attr, e)" />
</div> </div>
@@ -1214,7 +1214,7 @@
{ {
<td> <td>
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" <input aria-label="Lock script in derived templates" class="form-check-input" type="checkbox" role="switch"
checked="@script.LockedInDerived" checked="@script.LockedInDerived"
@onchange="(e) => ToggleScriptLockedInDerived(script, e)" /> @onchange="(e) => ToggleScriptLockedInDerived(script, e)" />
</div> </div>
@@ -1794,3 +1794,5 @@
_ => "Object" _ => "Object"
}; };
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -73,15 +73,15 @@
@if (ScriptTriggerConfigCodec.SupportsMinTimeBetweenRuns(_triggerType)) @if (ScriptTriggerConfigCodec.SupportsMinTimeBetweenRuns(_triggerType))
{ {
<div class="mt-3"> <div class="mt-3">
<label class="form-label">Min time between runs</label> <label class="form-label" for="@($"{_fieldScope}-field-1")">Min time between runs</label>
<div class="row g-2" style="max-width: 420px;"> <div class="row g-2" style="max-width: 420px;">
<div class="col-7"> <div class="col-7">
<input type="number" min="1" step="1" class="form-control" <input aria-describedby="@($"{_helpScope}-0")" id="@($"{_fieldScope}-field-1")" type="number" min="1" step="1" class="form-control"
placeholder="(optional)" placeholder="(optional)"
@bind="_minTimeValue" @bind:event="oninput" /> @bind="_minTimeValue" @bind:event="oninput" />
</div> </div>
<div class="col-5"> <div class="col-5">
<select class="form-select" @bind="_minTimeUnit"> <select aria-label="Minimum run interval unit" class="form-select" @bind="_minTimeUnit">
<option value="ms">milliseconds</option> <option value="ms">milliseconds</option>
<option value="sec">seconds</option> <option value="sec">seconds</option>
<option value="min">minutes</option> <option value="min">minutes</option>
@@ -90,7 +90,7 @@
</div> </div>
@if (TriggerIsWhileTrue()) @if (TriggerIsWhileTrue())
{ {
<div class="form-text"> <div class="form-text" id="@($"{_helpScope}-0")">
This is the re-fire interval for the This is the re-fire interval for the
<strong>WhileTrue</strong> trigger above. <strong>WhileTrue</strong> trigger above.
</div> </div>
@@ -104,7 +104,7 @@
} }
else else
{ {
<div class="form-text"> <div class="form-text" id="@($"{_helpScope}-0")">
Optional throttle — skips trigger invocations that fire Optional throttle — skips trigger invocations that fire
sooner than this. sooner than this.
</div> </div>
@@ -112,21 +112,21 @@
</div> </div>
} }
<div class="mt-3"> <div class="mt-3">
<label class="form-label">Execution timeout</label> <label class="form-label" for="@($"{_fieldScope}-field-2")">Execution timeout</label>
<div class="input-group" style="max-width: 280px;"> <div class="input-group" style="max-width: 280px;">
<input type="number" min="1" step="1" class="form-control" <input aria-describedby="@($"{_helpScope}-2")" id="@($"{_fieldScope}-field-2")" type="number" min="1" step="1" class="form-control"
placeholder="(site default)" placeholder="(site default)"
@bind="_executionTimeoutSeconds" @bind:event="oninput" /> @bind="_executionTimeoutSeconds" @bind:event="oninput" />
<span class="input-group-text">seconds</span> <span class="input-group-text">seconds</span>
</div> </div>
<div class="form-text"> <div class="form-text" id="@($"{_helpScope}-2")">
Per-script execution timeout. Leave blank (or 0) to use the Per-script execution timeout. Leave blank (or 0) to use the
site's global default. site's global default.
</div> </div>
</div> </div>
</div> </div>
<div style="display: @(_tab == "code" ? "block" : "none")"> <div style="display: @(_tab == "code" ? "block" : "none")">
<MonacoEditor @ref="_editor" Value="@_code" ValueChanged="@(v => _code = v)" <MonacoEditor AriaLabel="Template script code" @ref="_editor" Value="@_code" ValueChanged="@(v => _code = v)"
Language="csharp" Height="360px" Language="csharp" Height="360px"
DeclaredParameters="@ScriptParameterNames.Parse(_parameters)" DeclaredParameters="@ScriptParameterNames.Parse(_parameters)"
DeclaredParameterShapes="@ScriptParameterNames.ParseShapes(_parameters)" DeclaredParameterShapes="@ScriptParameterNames.ParseShapes(_parameters)"
@@ -170,7 +170,7 @@
</div> </div>
<div class="card-body"> <div class="card-body">
<div class="mb-3"> <div class="mb-3">
<label class="form-label small">Bind to instance <span class="text-muted">(optional)</span></label> <div class="form-label small">Bind to instance <span class="text-muted">(optional)</span></div>
@if (DeployedInstances.Count == 0) @if (DeployedInstances.Count == 0)
{ {
<div class="form-text"> <div class="form-text">
@@ -180,14 +180,14 @@
} }
else else
{ {
<select class="form-select form-select-sm" @bind="_bindInstance"> <select aria-describedby="@($"{_helpScope}-3")" aria-label="Bound instance" class="form-select form-select-sm" @bind="_bindInstance">
<option value="">— None (Instance/Attributes throw) —</option> <option value="">— None (Instance/Attributes throw) —</option>
@foreach (var inst in DeployedInstances) @foreach (var inst in DeployedInstances)
{ {
<option value="@inst.UniqueName">@inst.UniqueName</option> <option value="@inst.UniqueName">@inst.UniqueName</option>
} }
</select> </select>
<div class="form-text"> <div class="form-text" id="@($"{_helpScope}-3")">
Routes <code>Instance.GetAttribute/SetAttribute</code>, Routes <code>Instance.GetAttribute/SetAttribute</code>,
<code>Attributes</code>, <code>Children</code>, <code>Parent</code>, and <code>Attributes</code>, <code>Children</code>, <code>Parent</code>, and
<code>CallScript</code> to the selected live instance. <code>CallScript</code> to the selected live instance.
@@ -195,7 +195,7 @@
} }
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label class="form-label small">Parameter values</label> <div class="form-label small">Parameter values</div>
<ParameterValueForm ParameterDefinitions="@_parameters" <ParameterValueForm ParameterDefinitions="@_parameters"
Values="_paramValues" Values="_paramValues"
ValuesChanged="@(v => _paramValues = v)" /> ValuesChanged="@(v => _paramValues = v)" />
@@ -223,18 +223,18 @@
@if (_runResult.Success) @if (_runResult.Success)
{ {
<div class="mb-3"> <div class="mb-3">
<label class="form-label small text-success mb-1"> <div class="form-label small text-success mb-1">
Return value <span class="badge bg-secondary-subtle text-secondary-emphasis ms-1">@_runResult.ReturnTypeName</span> Return value <span class="badge bg-secondary-subtle text-secondary-emphasis ms-1">@_runResult.ReturnTypeName</span>
</label> </div>
<pre class="bg-body-secondary border rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ReturnValueJson</pre> <pre class="bg-body-secondary border rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ReturnValueJson</pre>
</div> </div>
} }
else else
{ {
<div class="mb-3"> <div class="mb-3">
<label class="form-label small text-danger mb-1"> <div class="form-label small text-danger mb-1">
<span class="badge bg-danger me-1">@ScriptErrorKindLabel(_runResult.ErrorKind)</span> <span class="badge bg-danger me-1">@ScriptErrorKindLabel(_runResult.ErrorKind)</span>
</label> </div>
<pre class="border border-danger-subtle rounded p-2 small mb-0 font-monospace text-danger" style="white-space: pre-wrap;">@_runResult.Error</pre> <pre class="border border-danger-subtle rounded p-2 small mb-0 font-monospace text-danger" style="white-space: pre-wrap;">@_runResult.Error</pre>
@if (_runResult.Markers is { Count: > 0 }) @if (_runResult.Markers is { Count: > 0 })
{ {
@@ -251,7 +251,7 @@
@if (!string.IsNullOrEmpty(_runResult.ConsoleOutput)) @if (!string.IsNullOrEmpty(_runResult.ConsoleOutput))
{ {
<div class="mb-0"> <div class="mb-0">
<label class="form-label small mb-1">Console output</label> <div class="form-label small mb-1">Console output</div>
<pre class="bg-dark text-light rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ConsoleOutput</pre> <pre class="bg-dark text-light rounded p-2 small mb-0 font-monospace" style="white-space: pre-wrap;">@_runResult.ConsoleOutput</pre>
</div> </div>
} }
@@ -492,3 +492,7 @@
bool IsLocked, bool IsLocked,
int? ExecutionTimeoutSeconds); int? ExecutionTimeoutSeconds);
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -59,7 +59,7 @@
<div class="mb-3" style="max-width: 320px;"> <div class="mb-3" style="max-width: 320px;">
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<input type="text" class="form-control form-control-sm" <input aria-label="Search templates" type="text" class="form-control form-control-sm"
placeholder="Search templates..." placeholder="Search templates..."
value="@_searchText" value="@_searchText"
@oninput="e => _searchText = e.Value?.ToString() ?? string.Empty" /> @oninput="e => _searchText = e.Value?.ToString() ?? string.Empty" />
@@ -456,26 +456,26 @@
<div class="mb-3"> <div class="mb-3">
<label for="passphrase" class="form-label">Passphrase</label> <label for="passphrase" class="form-label">Passphrase</label>
<input id="passphrase" type="password" class="form-control" <input aria-describedby="@($"{_helpScope}-0")" id="passphrase" type="password" class="form-control"
autocomplete="new-password" autocomplete="new-password"
@bind="_passphrase" @bind:event="oninput" /> @bind="_passphrase" @bind:event="oninput" />
<div class="progress mt-1" style="height: 4px;"> <div class="progress mt-1" style="height: 4px;">
<div class="progress-bar @strengthColor" <div class="progress-bar @strengthColor"
role="progressbar" role="progressbar" aria-label="Passphrase strength"
style="width: @(strength * 25)%;" style="width: @(strength * 25)%;"
aria-valuenow="@(strength * 25)" aria-valuemin="0" aria-valuemax="100"></div> aria-valuenow="@(strength * 25)" aria-valuemin="0" aria-valuemax="100"></div>
</div> </div>
<div class="form-text">Strength: @strengthLabel · minimum 8 characters.</div> <div class="form-text" id="@($"{_helpScope}-0")">Strength: @strengthLabel · minimum 8 characters.</div>
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="passphrase-confirm" class="form-label">Confirm passphrase</label> <label for="passphrase-confirm" class="form-label">Confirm passphrase</label>
<input id="passphrase-confirm" type="password" class="form-control" <input aria-invalid="@(!string.IsNullOrEmpty(_passphraseConfirm) && _passphrase != _passphraseConfirm ? "true" : "false")" aria-describedby="@(!string.IsNullOrEmpty(_passphraseConfirm) && _passphrase != _passphraseConfirm ? $"{_helpScope}-confirm-error" : null)" id="passphrase-confirm" type="password" class="form-control"
autocomplete="new-password" autocomplete="new-password"
@bind="_passphraseConfirm" @bind:event="oninput" /> @bind="_passphraseConfirm" @bind:event="oninput" />
@if (!string.IsNullOrEmpty(_passphraseConfirm) && _passphrase != _passphraseConfirm) @if (!string.IsNullOrEmpty(_passphraseConfirm) && _passphrase != _passphraseConfirm)
{ {
<div class="form-text text-danger">Passphrases do not match.</div> <div id="@($"{_helpScope}-confirm-error")" role="alert" class="form-text text-danger">Passphrases do not match.</div>
} }
</div> </div>
@@ -575,3 +575,5 @@
return $"{bytes / (1024.0 * 1024.0):0.00} MB"; return $"{bytes / (1024.0 * 1024.0):0.00} MB";
} }
} }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -87,9 +87,9 @@
size hint already say what belongs here. *@ size hint already say what belongs here. *@
<div class="mb-3"> <div class="mb-3">
<label for="bundle-input" class="form-label">Bundle file</label> <label for="bundle-input" class="form-label">Bundle file</label>
<InputFile id="bundle-input" OnChange="OnFileSelectedAsync" <InputFile aria-describedby="bundle-size-hint" id="bundle-input" OnChange="OnFileSelectedAsync"
class="form-control" accept=".scadabundle,application/zip" /> class="form-control" accept=".scadabundle,application/zip" />
<div class="form-text"> <div id="bundle-size-hint" class="form-text">
Maximum bundle size: @Options.Value.MaxBundleSizeMb MB. Maximum bundle size: @Options.Value.MaxBundleSizeMb MB.
</div> </div>
</div> </div>
@@ -362,7 +362,7 @@
<td><code>@rsm.SourceSiteIdentifier</code></td> <td><code>@rsm.SourceSiteIdentifier</code></td>
<td><span class="cell-clip" title="@rsm.SourceSiteName">@rsm.SourceSiteName</span></td> <td><span class="cell-clip" title="@rsm.SourceSiteName">@rsm.SourceSiteName</span></td>
<td> <td>
<select class="form-select form-select-sm" <select aria-label="Target data connection" class="form-select form-select-sm"
style="max-width: 22rem;" style="max-width: 22rem;"
data-testid="@($"map-site-select-{rsm.SourceSiteIdentifier}")" data-testid="@($"map-site-select-{rsm.SourceSiteIdentifier}")"
value="@chosen" value="@chosen"
@@ -412,7 +412,7 @@
<tr data-testid="map-conn-row"> <tr data-testid="map-conn-row">
<td><span class="cell-clip" title="@rcm.SourceConnectionName">@rcm.SourceConnectionName</span></td> <td><span class="cell-clip" title="@rcm.SourceConnectionName">@rcm.SourceConnectionName</span></td>
<td> <td>
<select class="form-select form-select-sm" <select aria-label="Target data connection" class="form-select form-select-sm"
style="max-width: 22rem;" style="max-width: 22rem;"
data-testid="@($"map-conn-select-{rcm.SourceSiteIdentifier}-{rcm.SourceConnectionName}")" data-testid="@($"map-conn-select-{rcm.SourceSiteIdentifier}-{rcm.SourceConnectionName}")"
value="@chosenConn" value="@chosenConn"
@@ -492,7 +492,7 @@
} }
@if (current.Action == ResolutionAction.Rename) @if (current.Action == ResolutionAction.Rename)
{ {
<input type="text" class="form-control form-control-sm" <input aria-label="Imported item name" type="text" class="form-control form-control-sm"
style="max-width: 14rem;" style="max-width: 14rem;"
placeholder="New name" placeholder="New name"
value="@(current.RenameTo ?? string.Empty)" value="@(current.RenameTo ?? string.Empty)"
@@ -118,7 +118,7 @@
@if (_trendSiteKeys.Count > 0) @if (_trendSiteKeys.Count > 0)
{ {
@* OnTrendSiteChangedAsync is async — Blazor wraps it in an EventCallback so the returned Task IS awaited; keep the Async signature, do not change it to a void/fire-and-forget handler. This comment MUST stay OUTSIDE the <select> start tag: a Razor comment placed between attributes renders as an invalid attribute name and crashes the SignalR circuit (InvalidCharacterError on setAttribute). *@ @* OnTrendSiteChangedAsync is async — Blazor wraps it in an EventCallback so the returned Task IS awaited; keep the Async signature, do not change it to a void/fire-and-forget handler. This comment MUST stay OUTSIDE the <select> start tag: a Razor comment placed between attributes renders as an invalid attribute name and crashes the SignalR circuit (InvalidCharacterError on setAttribute). *@
<select class="form-select form-select-sm" style="width:auto" <select aria-label="Site for health trends" class="form-select form-select-sm" style="width:auto"
data-test="site-health-trends-site" data-test="site-health-trends-site"
value="@_trendSiteId" value="@_trendSiteId"
@onchange="OnTrendSiteChangedAsync"> @onchange="OnTrendSiteChangedAsync">
@@ -26,16 +26,16 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Name</label> <label class="form-label" for="@($"{_fieldScope}-field-1")">Name</label>
<input type="text" class="form-control" @bind="_name" /> <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control" @bind="_name" />
</div> </div>
@* Type is create-only: a list's channel fixes which contact field its @* Type is create-only: a list's channel fixes which contact field its
recipients carry (email vs phone), so changing it after recipients exist recipients carry (email vs phone), so changing it after recipients exist
would orphan them. Disabled on edit (Id.HasValue). *@ would orphan them. Disabled on edit (Id.HasValue). *@
<div class="mb-3"> <div class="mb-3">
<label class="form-label">Type</label> <label class="form-label" for="@($"{_fieldScope}-field-2")">Type</label>
<select class="form-select" @bind="_type" disabled="@Id.HasValue"> <select id="@($"{_fieldScope}-field-2")" class="form-select" @bind="_type" disabled="@Id.HasValue">
@foreach (var channel in ChannelCatalog.SupportedChannels) @foreach (var channel in ChannelCatalog.SupportedChannels)
{ {
<option value="@channel">@ChannelLabel(channel)</option> <option value="@channel">@ChannelLabel(channel)</option>
@@ -62,24 +62,24 @@
<div class="card mb-3"> <div class="card mb-3">
<div class="card-body"> <div class="card-body">
<div class="mb-2"> <div class="mb-2">
<label class="form-label">Name</label> <label class="form-label" for="@($"{_fieldScope}-field-3")">Name</label>
<input type="text" class="form-control" @bind="_recipientName" /> <input id="@($"{_fieldScope}-field-3")" type="text" class="form-control" @bind="_recipientName" />
</div> </div>
@* Per-type contact field: email lists collect an email address; SMS @* Per-type contact field: email lists collect an email address; SMS
lists collect an E.164 phone number. *@ lists collect an E.164 phone number. *@
@if (_type == NotificationType.Sms) @if (_type == NotificationType.Sms)
{ {
<div class="mb-2"> <div class="mb-2">
<label class="form-label">Phone</label> <label class="form-label" for="@($"{_fieldScope}-field-4")">Phone</label>
<input type="tel" class="form-control" placeholder="+15551234567" <input id="@($"{_fieldScope}-field-4")" type="tel" class="form-control" placeholder="+15551234567"
@bind="_recipientPhone" /> @bind="_recipientPhone" />
</div> </div>
} }
else else
{ {
<div class="mb-2"> <div class="mb-2">
<label class="form-label">Email</label> <label class="form-label" for="@($"{_fieldScope}-field-5")">Email</label>
<input type="email" class="form-control" @bind="_recipientEmail" /> <input id="@($"{_fieldScope}-field-5")" type="email" class="form-control" @bind="_recipientEmail" />
</div> </div>
} }
@if (_recipientFormError != null) @if (_recipientFormError != null)
@@ -262,3 +262,5 @@
private void GoBack() => NavigationManager.NavigateTo("/notifications/lists"); private void GoBack() => NavigationManager.NavigateTo("/notifications/lists");
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -81,30 +81,30 @@
<div class="card-body"> <div class="card-body">
<div class="row g-3"> <div class="row g-3">
<div class="col-12"> <div class="col-12">
<label class="form-label">Account SID</label> <label class="form-label" for="@($"{_fieldScope}-field-1")">Account SID</label>
<input type="text" class="form-control" @bind="_accountSid" placeholder="ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> <input id="@($"{_fieldScope}-field-1")" type="text" class="form-control" @bind="_accountSid" placeholder="ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label">From Number</label> <label class="form-label" for="@($"{_fieldScope}-field-2")">From Number</label>
<input type="text" class="form-control" @bind="_fromNumber" placeholder="+15551234567" /> <input aria-describedby="@($"{_helpScope}-0")" id="@($"{_fieldScope}-field-2")" type="text" class="form-control" @bind="_fromNumber" placeholder="+15551234567" />
<div class="form-text">Provide a From Number or a Messaging Service SID (at least one is required).</div> <div class="form-text" id="@($"{_helpScope}-0")">Provide a From Number or a Messaging Service SID (at least one is required).</div>
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label">Messaging Service SID</label> <label class="form-label" for="@($"{_fieldScope}-field-3")">Messaging Service SID</label>
<input type="text" class="form-control" @bind="_messagingServiceSid" <input aria-describedby="@($"{_helpScope}-1")" id="@($"{_fieldScope}-field-3")" type="text" class="form-control" @bind="_messagingServiceSid"
placeholder="MGxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (optional)" /> placeholder="MGxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (optional)" />
<div class="form-text">Optional — used instead of the From number when set.</div> <div class="form-text" id="@($"{_helpScope}-1")">Optional — used instead of the From number when set.</div>
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label">API Base URL</label> <label class="form-label" for="@($"{_fieldScope}-field-4")">API Base URL</label>
<input type="text" class="form-control" @bind="_apiBaseUrl" <input id="@($"{_fieldScope}-field-4")" type="text" class="form-control" @bind="_apiBaseUrl"
placeholder="Leave blank to use the provider default" /> placeholder="Leave blank to use the provider default" />
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label">Auth Token</label> <label class="form-label" for="@($"{_fieldScope}-field-5")">Auth Token</label>
<input type="password" class="form-control" @bind="_authToken" <input aria-describedby="@($"{_helpScope}-2")" id="@($"{_fieldScope}-field-5")" type="password" class="form-control" @bind="_authToken"
placeholder="@(_editingSms != null ? "Leave blank to keep the stored token" : "Twilio Auth Token")" /> placeholder="@(_editingSms != null ? "Leave blank to keep the stored token" : "Twilio Auth Token")" />
<div class="form-text"> <div class="form-text" id="@($"{_helpScope}-2")">
Treat as sensitive — visible to admins only. Treat as sensitive — visible to admins only.
@if (_editingSms != null) @if (_editingSms != null)
{ {
@@ -113,16 +113,16 @@
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label">Connection Timeout (s)</label> <label class="form-label" for="@($"{_fieldScope}-field-6")">Connection Timeout (s)</label>
<input type="number" class="form-control" @bind="_connectionTimeoutSeconds" min="1" /> <input id="@($"{_fieldScope}-field-6")" type="number" class="form-control" @bind="_connectionTimeoutSeconds" min="1" />
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label">Max Retries</label> <label class="form-label" for="@($"{_fieldScope}-field-7")">Max Retries</label>
<input type="number" class="form-control" @bind="_maxRetries" min="0" /> <input id="@($"{_fieldScope}-field-7")" type="number" class="form-control" @bind="_maxRetries" min="0" />
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label">Retry Delay (s)</label> <label class="form-label" for="@($"{_fieldScope}-field-8")">Retry Delay (s)</label>
<input type="number" class="form-control" @bind="_retryDelaySeconds" min="0" /> <input id="@($"{_fieldScope}-field-8")" type="number" class="form-control" @bind="_retryDelaySeconds" min="0" />
</div> </div>
@if (_formError != null) @if (_formError != null)
{ {
@@ -270,3 +270,7 @@
} }
} }
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -106,33 +106,33 @@
<div class="card-body"> <div class="card-body">
<div class="row g-3"> <div class="row g-3">
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label">Transport</label> <label class="form-label" for="@($"{_fieldScope}-field-1")">Transport</label>
<select class="form-select" @bind="Transport"> <select id="@($"{_fieldScope}-field-1")" class="form-select" @bind="Transport">
<option>Smtp</option> <option>Smtp</option>
<option>Ews</option> <option>Ews</option>
</select> </select>
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label">@(IsEwsForm ? "EWS URL" : "Host")</label> <label class="form-label" for="@($"{_fieldScope}-field-2")">@(IsEwsForm ? "EWS URL" : "Host")</label>
<input type="text" class="form-control" @bind="_host" <input id="@($"{_fieldScope}-field-2")" type="text" class="form-control" @bind="_host"
placeholder="@(IsEwsForm ? "https://mail.example.com/ews/exchange.asmx" : "smtp.example.com")" /> placeholder="@(IsEwsForm ? "https://mail.example.com/ews/exchange.asmx" : "smtp.example.com")" />
</div> </div>
@if (!IsEwsForm) @if (!IsEwsForm)
{ {
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label">Port</label> <label class="form-label" for="@($"{_fieldScope}-field-3")">Port</label>
<input type="number" class="form-control" @bind="_port" min="1" max="65535" /> <input id="@($"{_fieldScope}-field-3")" type="number" class="form-control" @bind="_port" min="1" max="65535" />
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label">Auth Type</label> <label class="form-label" for="@($"{_fieldScope}-field-4")">Auth Type</label>
<select class="form-select" @bind="_authType"> <select id="@($"{_fieldScope}-field-4")" class="form-select" @bind="_authType">
<option>OAuth2</option> <option>OAuth2</option>
<option>Basic</option> <option>Basic</option>
</select> </select>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label">TLS Mode</label> <label class="form-label" for="@($"{_fieldScope}-field-5")">TLS Mode</label>
<select class="form-select" @bind="_tlsMode"> <select id="@($"{_fieldScope}-field-5")" class="form-select" @bind="_tlsMode">
<option>None</option> <option>None</option>
<option>StartTLS</option> <option>StartTLS</option>
<option>SSL</option> <option>SSL</option>
@@ -140,29 +140,29 @@
</div> </div>
} }
<div class="col-12"> <div class="col-12">
<label class="form-label">Credentials</label> <label class="form-label" for="@($"{_fieldScope}-field-6")">Credentials</label>
<input type="password" class="form-control" @bind="_credentials" <input aria-describedby="@($"{_helpScope}-0")" id="@($"{_fieldScope}-field-6")" type="password" class="form-control" @bind="_credentials"
placeholder="@(IsEwsForm ? @"domain\username:password" : "OAuth2 client secret or SMTP password")" /> placeholder="@(IsEwsForm ? @"domain\username:password" : "OAuth2 client secret or SMTP password")" />
<div class="form-text">Treat as sensitive — visible to admins only.</div> <div class="form-text" id="@($"{_helpScope}-0")">Treat as sensitive — visible to admins only.</div>
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label">From Address</label> <label class="form-label" for="@($"{_fieldScope}-field-7")">From Address</label>
<input type="email" class="form-control" @bind="_fromAddress" <input id="@($"{_fieldScope}-field-7")" type="email" class="form-control" @bind="_fromAddress"
placeholder="noreply@example.com" /> placeholder="noreply@example.com" />
</div> </div>
@if (_authType == "OAuth2") @if (_authType == "OAuth2")
{ {
<div class="col-12"> <div class="col-12">
<label class="form-label">OAuth2 Authority</label> <label class="form-label" for="@($"{_fieldScope}-field-8")">OAuth2 Authority</label>
<input type="text" class="form-control" @bind="_oauth2Authority" <input aria-describedby="@($"{_helpScope}-1")" id="@($"{_fieldScope}-field-8")" type="text" class="form-control" @bind="_oauth2Authority"
placeholder="https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token" /> placeholder="https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token" />
<div class="form-text">Token-endpoint URL; leave blank for the Microsoft 365 default. A <code>{tenant}</code> placeholder is substituted from the credential.</div> <div class="form-text" id="@($"{_helpScope}-1")">Token-endpoint URL; leave blank for the Microsoft 365 default. A <code>{tenant}</code> placeholder is substituted from the credential.</div>
</div> </div>
<div class="col-12"> <div class="col-12">
<label class="form-label">OAuth2 Scope</label> <label class="form-label" for="@($"{_fieldScope}-field-9")">OAuth2 Scope</label>
<input type="text" class="form-control" @bind="_oauth2Scope" <input aria-describedby="@($"{_helpScope}-2")" id="@($"{_fieldScope}-field-9")" type="text" class="form-control" @bind="_oauth2Scope"
placeholder="https://outlook.office365.com/.default" /> placeholder="https://outlook.office365.com/.default" />
<div class="form-text">Scope requested from the token endpoint; leave blank for the Microsoft 365 default.</div> <div class="form-text" id="@($"{_helpScope}-2")">Scope requested from the token endpoint; leave blank for the Microsoft 365 default.</div>
</div> </div>
} }
@if (_formError != null) @if (_formError != null)
@@ -368,3 +368,7 @@
private static string? NormalizeOptional(string? value) private static string? NormalizeOptional(string? value)
=> string.IsNullOrWhiteSpace(value) ? null : value.Trim(); => string.IsNullOrWhiteSpace(value) ? null : value.Trim();
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }
@@ -40,8 +40,8 @@
<div class="card-body"> <div class="card-body">
<div class="row g-3"> <div class="row g-3">
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label form-label-sm">Site</label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-1")">Site</label>
<select class="form-select form-select-sm" @bind="_formSiteIdentifier" data-test="secured-write-site"> <select id="@($"{_fieldScope}-field-1")" class="form-select form-select-sm" @bind="_formSiteIdentifier" data-test="secured-write-site">
<option value="">— select site —</option> <option value="">— select site —</option>
@foreach (var site in _sites) @foreach (var site in _sites)
{ {
@@ -50,8 +50,8 @@
</select> </select>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label form-label-sm">MxGateway connection</label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-2")">MxGateway connection</label>
<select class="form-select form-select-sm" @bind="_formConnectionName" data-test="secured-write-connection" <select id="@($"{_fieldScope}-field-2")" class="form-select form-select-sm" @bind="_formConnectionName" data-test="secured-write-connection"
disabled="@(MxConnectionsForForm.Count == 0)"> disabled="@(MxConnectionsForForm.Count == 0)">
<option value="">@(MxConnectionsForForm.Count == 0 ? "— no MxGateway connections —" : "— select connection —")</option> <option value="">@(MxConnectionsForForm.Count == 0 ? "— no MxGateway connections —" : "— select connection —")</option>
@foreach (var conn in MxConnectionsForForm) @foreach (var conn in MxConnectionsForForm)
@@ -61,9 +61,9 @@
</select> </select>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label form-label-sm">Tag path</label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-3")">Tag path</label>
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<input class="form-control form-control-sm" @bind="_formTagPath" <input id="@($"{_fieldScope}-field-3")" class="form-control form-control-sm" @bind="_formTagPath"
placeholder="e.g. PLC1.Pump.Setpoint" data-test="secured-write-tagpath" /> placeholder="e.g. PLC1.Pump.Setpoint" data-test="secured-write-tagpath" />
<button class="btn btn-outline-secondary" type="button" <button class="btn btn-outline-secondary" type="button"
disabled="@(!CanBrowse)" disabled="@(!CanBrowse)"
@@ -72,12 +72,12 @@
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label form-label-sm">Value</label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-4")">Value</label>
<input class="form-control form-control-sm" @bind="_formValue" data-test="secured-write-value" /> <input id="@($"{_fieldScope}-field-4")" class="form-control form-control-sm" @bind="_formValue" data-test="secured-write-value" />
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label form-label-sm">Data type</label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-5")">Data type</label>
<select class="form-select form-select-sm" @bind="_formValueType" data-test="secured-write-datatype"> <select id="@($"{_fieldScope}-field-5")" class="form-select form-select-sm" @bind="_formValueType" data-test="secured-write-datatype">
@foreach (var dt in Enum.GetNames<DataType>()) @foreach (var dt in Enum.GetNames<DataType>())
{ {
<option value="@dt">@dt</option> <option value="@dt">@dt</option>
@@ -85,8 +85,8 @@
</select> </select>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label form-label-sm">Comment <span class="text-muted">(optional)</span></label> <label class="form-label form-label-sm" for="@($"{_fieldScope}-field-6")">Comment <span class="text-muted">(optional)</span></label>
<input class="form-control form-control-sm" @bind="_formComment" data-test="secured-write-comment" /> <input id="@($"{_fieldScope}-field-6")" class="form-control form-control-sm" @bind="_formComment" data-test="secured-write-comment" />
</div> </div>
</div> </div>
<div class="mt-3"> <div class="mt-3">
@@ -506,3 +506,5 @@
_ => "text-bg-light" _ => "text-bg-light"
}; };
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -22,7 +22,7 @@
</label> </label>
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<select id="alarm-attr-select" <select aria-describedby="@((_selectedChoice != null && !IsAttributeCompatible(_selectedChoice)) || (!string.IsNullOrEmpty(_model.AttributeName) && _selectedChoice == null) ? $"{_fieldScope}-attribute-hint" : null)" id="alarm-attr-select"
class="form-select" class="form-select"
@bind="_attributeName" @bind="_attributeName"
@bind:after="OnAttributeChanged"> @bind:after="OnAttributeChanged">
@@ -60,13 +60,13 @@
@if (_selectedChoice != null && !IsAttributeCompatible(_selectedChoice)) @if (_selectedChoice != null && !IsAttributeCompatible(_selectedChoice))
{ {
<div class="form-text text-danger"> <div id="@($"{_fieldScope}-attribute-hint")" class="form-text text-danger">
Selected attribute is @_selectedChoice.DataType — this trigger type requires a numeric attribute. Selected attribute is @_selectedChoice.DataType — this trigger type requires a numeric attribute.
</div> </div>
} }
else if (_selectedChoice == null && !string.IsNullOrWhiteSpace(_model.AttributeName)) else if (_selectedChoice == null && !string.IsNullOrWhiteSpace(_model.AttributeName))
{ {
<div class="form-text text-warning-emphasis"> <div id="@($"{_fieldScope}-attribute-hint")" class="form-text text-warning-emphasis">
"@_model.AttributeName" is not in the current template. Save will still write it as-is. "@_model.AttributeName" is not in the current template. Save will still write it as-is.
</div> </div>
} }
@@ -201,10 +201,10 @@
{ {
<div class="row g-2"> <div class="row g-2">
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-1")">
Operator Operator
</label> </label>
<select class="form-select form-select-sm" <select id="@($"{_fieldScope}-field-1")" class="form-select form-select-sm"
@bind="_operatorText" @bind="_operatorText"
@bind:after="OnOperatorChanged"> @bind:after="OnOperatorChanged">
<option value="eq">equals</option> <option value="eq">equals</option>
@@ -212,14 +212,14 @@
</select> </select>
</div> </div>
<div class="col-md-8"> <div class="col-md-8">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-2")">
Match value Match value
</label> </label>
@{ @{
var t = _selectedChoice?.DataType; var t = _selectedChoice?.DataType;
if (t == "Boolean") if (t == "Boolean")
{ {
<select class="form-select form-select-sm" <select id="@($"{_fieldScope}-field-2")" class="form-select form-select-sm"
data-test="alarm-matchvalue-input" data-test="alarm-matchvalue-input"
@bind="_matchValueText" @bind="_matchValueText"
@bind:after="OnMatchValueChanged"> @bind:after="OnMatchValueChanged">
@@ -229,7 +229,7 @@
} }
else if (IsNumericType(t ?? "")) else if (IsNumericType(t ?? ""))
{ {
<input type="number" step="any" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-2")" type="number" step="any" class="form-control form-control-sm"
data-test="alarm-matchvalue-input" data-test="alarm-matchvalue-input"
@bind="_matchValueText" @bind="_matchValueText"
@bind:event="oninput" @bind:event="oninput"
@@ -237,7 +237,7 @@
} }
else else
{ {
<input type="text" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-2")" type="text" class="form-control form-control-sm"
data-test="alarm-matchvalue-input" data-test="alarm-matchvalue-input"
placeholder="value" placeholder="value"
@bind="_matchValueText" @bind="_matchValueText"
@@ -255,20 +255,20 @@
{ {
<div class="row g-2 align-items-end"> <div class="row g-2 align-items-end">
<div class="col-md-5"> <div class="col-md-5">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-3")">
Minimum Minimum
</label> </label>
<input type="number" step="any" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-3")" type="number" step="any" class="form-control form-control-sm"
@bind="_minText" @bind="_minText"
@bind:event="oninput" @bind:event="oninput"
@bind:after="OnMinChanged" /> @bind:after="OnMinChanged" />
</div> </div>
<div class="col-md-2 text-center pb-1 text-muted small">to</div> <div class="col-md-2 text-center pb-1 text-muted small">to</div>
<div class="col-md-5"> <div class="col-md-5">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-4")">
Maximum Maximum
</label> </label>
<input type="number" step="any" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-4")" type="number" step="any" class="form-control form-control-sm"
@bind="_maxText" @bind="_maxText"
@bind:event="oninput" @bind:event="oninput"
@bind:after="OnMaxChanged" /> @bind:after="OnMaxChanged" />
@@ -311,11 +311,11 @@
{ {
<div class="row g-2 align-items-end"> <div class="row g-2 align-items-end">
<div class="col-md-6"> <div class="col-md-6">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-5")">
Rate threshold Rate threshold
</label> </label>
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<input type="number" step="any" class="form-control" <input id="@($"{_fieldScope}-field-5")" type="number" step="any" class="form-control"
@bind="_thresholdText" @bind="_thresholdText"
@bind:event="oninput" @bind:event="oninput"
@bind:after="OnThresholdChanged" /> @bind:after="OnThresholdChanged" />
@@ -323,11 +323,11 @@
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-6")">
Sampling window Sampling window
</label> </label>
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<input type="number" step="any" min="0" class="form-control" <input id="@($"{_fieldScope}-field-6")" type="number" step="any" min="0" class="form-control"
@bind="_windowText" @bind="_windowText"
@bind:event="oninput" @bind:event="oninput"
@bind:after="OnWindowChanged" /> @bind:after="OnWindowChanged" />
@@ -338,10 +338,10 @@
<div class="mt-3 row g-2"> <div class="mt-3 row g-2">
<div class="col-md-6"> <div class="col-md-6">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-7")">
Direction Direction
</label> </label>
<select class="form-select form-select-sm" <select id="@($"{_fieldScope}-field-7")" class="form-select form-select-sm"
@bind="_directionText" @bind="_directionText"
@bind:after="OnDirectionChanged"> @bind:after="OnDirectionChanged">
<option value="rising">Rising only</option> <option value="rising">Rising only</option>
@@ -428,12 +428,12 @@
{ {
<div class="row g-2 align-items-end mb-1"> <div class="row g-2 align-items-end mb-1">
<div class="col-md-5"> <div class="col-md-5">
<label class="form-label small text-uppercase fw-semibold mb-1 @severityClass"> <label class="form-label small text-uppercase fw-semibold mb-1 @severityClass" for="@($"{_fieldScope}-{setpointTestId}-0")">
@label @label
</label> </label>
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<span class="input-group-text">setpoint</span> <span class="input-group-text">setpoint</span>
<input type="number" step="any" class="form-control" <input id="@($"{_fieldScope}-{setpointTestId}-0")" type="number" step="any" class="form-control"
data-test="@setpointTestId" data-test="@setpointTestId"
placeholder="—" placeholder="—"
value="@value" value="@value"
@@ -441,23 +441,23 @@
</div> </div>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-{setpointTestId}-1")">
Deadband Deadband
</label> </label>
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<span class="input-group-text">±</span> <span class="input-group-text">±</span>
<input type="number" step="any" min="0" class="form-control" <input id="@($"{_fieldScope}-{setpointTestId}-1")" type="number" step="any" min="0" class="form-control"
placeholder="0" placeholder="0"
value="@deadband" value="@deadband"
@oninput="@(e => { deadbandSetter(e.Value?.ToString()); _ = onDeadbandChanged(); })" /> @oninput="@(e => { deadbandSetter(e.Value?.ToString()); _ = onDeadbandChanged(); })" />
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-{setpointTestId}-2")">
Priority Priority
</label> </label>
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<input type="number" min="0" max="1000" class="form-control" <input id="@($"{_fieldScope}-{setpointTestId}-2")" type="number" min="0" max="1000" class="form-control"
placeholder="@_priority" placeholder="@_priority"
value="@priority" value="@priority"
@oninput="@(e => { prioritySetter(e.Value?.ToString()); _ = onPriorityChanged(); })" /> @oninput="@(e => { prioritySetter(e.Value?.ToString()); _ = onPriorityChanged(); })" />
@@ -466,7 +466,7 @@
</div> </div>
<div class="row g-2 mb-3"> <div class="row g-2 mb-3">
<div class="col-12"> <div class="col-12">
<input type="text" class="form-control form-control-sm" <input aria-label="@($"Operator message for {label}")" type="text" class="form-control form-control-sm"
placeholder="Optional operator message for this band…" placeholder="Optional operator message for this band…"
value="@message" value="@message"
@oninput="@(e => { messageSetter(e.Value?.ToString()); _ = onMessageChanged(); })" /> @oninput="@(e => { messageSetter(e.Value?.ToString()); _ = onMessageChanged(); })" />
@@ -580,8 +580,9 @@
private RenderFragment RenderExpression() => __builder => private RenderFragment RenderExpression() => __builder =>
{ {
<label class="form-label small text-uppercase text-muted fw-semibold mb-1">Trigger expression</label> <div role="group" aria-label="Trigger expression" aria-describedby="@($"{_fieldScope}-expression-hint")">
<MonacoEditor Height="120px" <div class="form-label small text-uppercase text-muted fw-semibold mb-1">Trigger expression</div>
<MonacoEditor AriaLabel="Alarm trigger expression" Height="120px"
Language="csharp" Language="csharp"
ScriptKind="ScriptAnalysis.ScriptKind.Template" ScriptKind="ScriptAnalysis.ScriptKind.Template"
ShowToolbar="false" ShowToolbar="false"
@@ -589,9 +590,10 @@
ValueChanged="OnExpressionChanged" ValueChanged="OnExpressionChanged"
SelfAttributes="@TriggerAttributeMapper.SelfAttributes(AvailableAttributes)" SelfAttributes="@TriggerAttributeMapper.SelfAttributes(AvailableAttributes)"
Children="@TriggerAttributeMapper.Children(AvailableAttributes)" /> Children="@TriggerAttributeMapper.Children(AvailableAttributes)" />
<div class="form-text"> <div class="form-text" id="@($"{_fieldScope}-expression-hint")">
A boolean C# expression — e.g. <code>Attributes["Temperature"] &gt; 80</code>. A boolean C# expression — e.g. <code>Attributes["Temperature"] &gt; 80</code>.
</div> </div>
</div>
@* Analysis-kind selector — Advisory (default) keeps the blank-expression @* Analysis-kind selector — Advisory (default) keeps the blank-expression
finding as a non-blocking warning; Strict escalates it to a deploy-blocking error. *@ finding as a non-blocking warning; Strict escalates it to a deploy-blocking error. *@
<div class="mt-2"> <div class="mt-2">
@@ -677,3 +679,5 @@
double.TryParse(s, NumberStyles.Float, CultureInfo.InvariantCulture, out var v) ? v : null; double.TryParse(s, NumberStyles.Float, CultureInfo.InvariantCulture, out var v) ? v : null;
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -21,8 +21,8 @@
@if (ShowElementType) @if (ShowElementType)
{ {
<div class="mb-2"> <div class="mb-2">
<label class="form-label">Element Type</label> <label class="form-label" for="@($"{_fieldScope}-field-1")">Element Type</label>
<select class="form-select" value="@ElementDataType" @onchange="OnElementTypeChanged" disabled="@Disabled"> <select id="@($"{_fieldScope}-field-1")" class="form-select" value="@ElementDataType" @onchange="OnElementTypeChanged" disabled="@Disabled">
@foreach (var dt in ElementTypes) @foreach (var dt in ElementTypes)
{ {
<option value="@dt">@dt</option> <option value="@dt">@dt</option>
@@ -31,7 +31,7 @@
</div> </div>
} }
<label class="form-label">List Values</label> <div class="form-label">List Values</div>
@if (Rows.Count == 0) @if (Rows.Count == 0)
{ {
<p class="text-muted small mb-2">No elements. Use “Add element” to add one.</p> <p class="text-muted small mb-2">No elements. Use “Add element” to add one.</p>
@@ -44,7 +44,7 @@
var index = i; var index = i;
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<span class="input-group-text" style="min-width: 2.5rem;">@index</span> <span class="input-group-text" style="min-width: 2.5rem;">@index</span>
<input type="text" class="form-control font-monospace" <input aria-label="List element value" type="text" class="form-control font-monospace"
value="@Rows[index]" value="@Rows[index]"
placeholder="@Placeholder()" placeholder="@Placeholder()"
@oninput="e => OnRowInput(index, (string?)e.Value)" @oninput="e => OnRowInput(index, (string?)e.Value)"
@@ -128,3 +128,5 @@
_ => "text value" _ => "text value"
}; };
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -8,8 +8,8 @@
Server-side compose failures are surfaced by the parent via a toast. Server-side compose failures are surfaced by the parent via a toast.
*@ *@
<div class="mb-3"> <div class="mb-3">
<label class="form-label small text-muted mb-1">Parent template</label> <label class="form-label small text-muted mb-1" for="@($"{_fieldScope}-field-1")">Parent template</label>
<select class="form-select form-select-sm" @bind="_parentTemplateId"> <select id="@($"{_fieldScope}-field-1")" class="form-select form-select-sm" @bind="_parentTemplateId">
<option value="0" disabled selected>Select a parent template…</option> <option value="0" disabled selected>Select a parent template…</option>
@foreach (var opt in ParentOptions) @foreach (var opt in ParentOptions)
{ {
@@ -18,8 +18,8 @@
</select> </select>
</div> </div>
<div class="mb-1"> <div class="mb-1">
<label class="form-label small text-muted mb-1">Slot name</label> <label class="form-label small text-muted mb-1" for="@($"{_fieldScope}-field-2")">Slot name</label>
<input type="text" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-2")" type="text" class="form-control form-control-sm"
placeholder="Slot name" placeholder="Slot name"
@bind="_slotName" @bind:event="oninput" /> @bind="_slotName" @bind:event="oninput" />
</div> </div>
@@ -57,3 +57,5 @@
/// <param name="SlotName">The trimmed slot (composition instance) name.</param> /// <param name="SlotName">The trimmed slot (composition instance) name.</param>
public sealed record ComposeResult(int ParentTemplateId, string SlotName); public sealed record ComposeResult(int ParentTemplateId, string SlotName);
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -6,8 +6,9 @@
{ {
<div class="row mb-2"> <div class="row mb-2">
<div class="col-md-4"> <div class="col-md-4">
<label for="@_searchId" class="form-label small">Search</label>
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<input type="text" class="form-control form-control-sm" placeholder="Search..." <input id="@_searchId" type="text" class="form-control form-control-sm" placeholder="Search..."
@bind="_searchTerm" @bind:event="oninput" @bind:after="ApplyFilter" /> @bind="_searchTerm" @bind:event="oninput" @bind:after="ApplyFilter" />
@if (!string.IsNullOrEmpty(_searchTerm)) @if (!string.IsNullOrEmpty(_searchTerm))
{ {
@@ -90,6 +91,7 @@
</div> </div>
@code { @code {
private readonly string _searchId = "table-search-" + Guid.NewGuid().ToString("N");
private string _searchTerm = string.Empty; private string _searchTerm = string.Empty;
private int _currentPage = 1; private int _currentPage = 1;
private List<TItem> _filteredItems = new(); private List<TItem> _filteredItems = new();
@@ -21,11 +21,11 @@
Unchanged instances are skipped unless Force is checked. Unchanged instances are skipped unless Force is checked.
</p> </p>
<div class="form-check mb-1"> <div class="form-check mb-1">
<input type="checkbox" class="form-check-input" id="deploy-all-force" data-test="deploy-all-force" <input type="checkbox" class="form-check-input" id="deploy-all-force" aria-describedby="deploy-all-force-hint" data-test="deploy-all-force"
@bind="_force" /> @bind="_force" />
<label class="form-check-label small" for="deploy-all-force">Force redeploy up-to-date instances</label> <label class="form-check-label small" for="deploy-all-force">Force redeploy up-to-date instances</label>
</div> </div>
<div class="form-text"> <div id="deploy-all-force-hint" class="form-text">
A redeploy resets an instance's static attribute overrides and clears its native alarm state. A redeploy resets an instance's static attribute overrides and clears its native alarm state.
Disabled instances are never deployed or re-enabled. Disabled instances are never deployed or re-enabled.
</div> </div>
@@ -25,6 +25,8 @@
style="height: @Height; border: 1px solid var(--bs-border-color); border-radius: 0.25rem; overflow: hidden;"></div> style="height: @Height; border: 1px solid var(--bs-border-color); border-radius: 0.25rem; overflow: hidden;"></div>
@code { @code {
/// <summary>Accessible name passed to the actual Monaco input.</summary>
[Parameter] public string AriaLabel { get; set; } = "Code editor";
[Parameter] public string Value { get; set; } = ""; [Parameter] public string Value { get; set; } = "";
[Parameter] public EventCallback<string> ValueChanged { get; set; } [Parameter] public EventCallback<string> ValueChanged { get; set; }
[Parameter] public string Language { get; set; } = "csharp"; [Parameter] public string Language { get; set; } = "csharp";
@@ -103,6 +105,7 @@
private string _lastSentValue = ""; private string _lastSentValue = "";
private string? _lastSentSchema; private string? _lastSentSchema;
private bool _initialized; private bool _initialized;
private string? _lastAriaLabel;
private bool _wrap; private bool _wrap;
private bool _minimap; private bool _minimap;
private bool _dark; private bool _dark;
@@ -124,10 +127,12 @@
value = Value ?? "", value = Value ?? "",
language = Language, language = Language,
readOnly = ReadOnly, readOnly = ReadOnly,
jsonSchema = JsonSchema jsonSchema = JsonSchema,
ariaLabel = AriaLabel
}, },
_dotNetRef); _dotNetRef);
_initialized = true; _initialized = true;
_lastAriaLabel = AriaLabel;
_lastSentSchema = JsonSchema; _lastSentSchema = JsonSchema;
} }
catch (InvalidOperationException) catch (InvalidOperationException)
@@ -147,6 +152,11 @@
} }
else if (_initialized) else if (_initialized)
{ {
if (_lastAriaLabel != AriaLabel)
{
_lastAriaLabel = AriaLabel;
await SafeInvokeAsync("MonacoBlazor.setEditorOption", "set editor accessibility name", _id, "ariaLabel", AriaLabel);
}
if ((Value ?? "") != _lastSentValue) if ((Value ?? "") != _lastSentValue)
{ {
_lastSentValue = Value ?? ""; _lastSentValue = Value ?? "";
@@ -14,7 +14,7 @@
*@ *@
@if (SiteOptions.Any()) @if (SiteOptions.Any())
{ {
<select class="form-select form-select-sm" @bind="_targetSiteId"> <select aria-label="Target site" class="form-select form-select-sm" @bind="_targetSiteId">
@foreach (var opt in SiteOptions) @foreach (var opt in SiteOptions)
{ {
<option value="@opt.Id">@opt.Label</option> <option value="@opt.Id">@opt.Label</option>
@@ -7,7 +7,7 @@
indistinguishable from a Cancel). The parent validates after the dialog closes indistinguishable from a Cancel). The parent validates after the dialog closes
and toasts any server guard failure. and toasts any server guard failure.
*@ *@
<select class="form-select form-select-sm" @bind="_targetParentId"> <select aria-label="Parent folder" class="form-select form-select-sm" @bind="_targetParentId">
@foreach (var opt in FolderOptions) @foreach (var opt in FolderOptions)
{ {
<option value="@opt.Id">@opt.Label</option> <option value="@opt.Id">@opt.Label</option>
@@ -5,7 +5,7 @@
with a MoveTemplateResult carrying the picked folder id (null = Root) — a result with a MoveTemplateResult carrying the picked folder id (null = Root) — a result
record so Close(null) for the Root choice stays distinguishable from a Cancel. record so Close(null) for the Root choice stays distinguishable from a Cancel.
*@ *@
<select class="form-select form-select-sm" @bind="_targetFolderId"> <select aria-label="Target template folder" class="form-select form-select-sm" @bind="_targetFolderId">
@foreach (var opt in FolderOptions) @foreach (var opt in FolderOptions)
{ {
<option value="@opt.Id">@opt.Label</option> <option value="@opt.Id">@opt.Label</option>
@@ -5,14 +5,14 @@
block of chip buttons with a single control of one row's height. block of chip buttons with a single control of one row's height.
*@ *@
<div class="dropdown msd" data-test="@DataTest"> <div class="dropdown msd" data-test="@DataTest">
<button type="button" <button type="button" aria-labelledby="@ToggleLabelledBy"
class="btn btn-sm btn-outline-secondary dropdown-toggle msd-toggle text-start" class="btn btn-sm btn-outline-secondary dropdown-toggle msd-toggle text-start"
data-bs-toggle="dropdown" data-bs-toggle="dropdown"
data-bs-auto-close="outside" data-bs-auto-close="outside"
aria-expanded="false" aria-expanded="false"
disabled="@(Items.Count == 0)" disabled="@(Items.Count == 0)"
data-test="@($"{DataTest}-toggle")"> data-test="@($"{DataTest}-toggle")">
<span class="msd-summary">@Summary()</span> <span id="@_summaryId" class="msd-summary">@Summary()</span>
</button> </button>
<ul class="dropdown-menu msd-menu"> <ul class="dropdown-menu msd-menu">
@if (Items.Count == 0) @if (Items.Count == 0)
@@ -54,6 +54,11 @@ public partial class MultiSelectDropdown<TValue> where TValue : notnull
[Parameter] [Parameter]
public string DataTest { get; set; } = "multi-select"; public string DataTest { get; set; } = "multi-select";
/// <summary>ID of the visible field label; combined with the current selection summary.</summary>
[Parameter] public string? LabelledBy { get; set; }
private readonly string _summaryId = "selection-" + Guid.NewGuid().ToString("N");
private string? ToggleLabelledBy => string.IsNullOrWhiteSpace(LabelledBy) ? null : LabelledBy + " " + _summaryId;
private async Task Toggle(TValue item) private async Task Toggle(TValue item)
{ {
// ICollection.Remove returns false when the item was absent — that is the // ICollection.Remove returns false when the item was absent — that is the
@@ -30,12 +30,22 @@ else
var shape = _shapes.FirstOrDefault(s => s.Name == field.Name); var shape = _shapes.FirstOrDefault(s => s.Name == field.Name);
<div class="row g-2 @(IsScalar(field.Schema) ? "align-items-center" : "align-items-start")"> <div class="row g-2 @(IsScalar(field.Schema) ? "align-items-center" : "align-items-start")">
<div class="col-sm-4"> <div class="col-sm-4">
<label class="form-label small mb-0" for="@FieldId(field.Name)"> @if (IsScalar(field.Schema))
{
<label id="@(FieldId(field.Name) + "-label")" for="@FieldId(field.Name)" class="form-label small mb-0">
<code>@field.Name</code> <code>@field.Name</code>
<span class="text-muted ms-1">@(shape?.Type ?? DisplayType(field.Schema))@(field.Required ? "" : "?")</span> <span class="text-muted ms-1">@(shape?.Type ?? DisplayType(field.Schema))@(field.Required ? "" : "?")</span>
</label> </label>
}
else
{
<div id="@(FieldId(field.Name) + "-label")" class="form-label small mb-0">
<code>@field.Name</code>
<span class="text-muted ms-1">@(shape?.Type ?? DisplayType(field.Schema))@(field.Required ? "" : "?")</span>
</div>
}
</div> </div>
<div class="col-sm-8"> <div class="col-sm-8" role="group" aria-labelledby="@(FieldId(field.Name) + "-label")">
@RenderNode(field.Schema, field.Name, FieldId(field.Name)) @RenderNode(field.Schema, field.Name, FieldId(field.Name))
</div> </div>
</div> </div>
@@ -240,7 +250,9 @@ else
} }
} }
private static string FieldId(string path) => $"param-{path}"; private readonly string _parameterScope = "param-" + Guid.NewGuid().ToString("N") + "-";
private string FieldId(string path) => _parameterScope + Convert.ToHexString(System.Text.Encoding.UTF8.GetBytes(path));
private string? ErrorDescription(string path) => _parseErrors.ContainsKey(path) ? FieldId(path) + "-error" : null;
private static bool IsScalar(InboundApiSchema schema) => private static bool IsScalar(InboundApiSchema schema) =>
schema.Type is "boolean" or "integer" or "number" or "string"; schema.Type is "boolean" or "integer" or "number" or "string";
@@ -264,28 +276,28 @@ else
{ {
case "boolean": case "boolean":
<div class="form-check"> <div class="form-check">
<input class="form-check-input" type="checkbox" id="@id" <input data-param-path="@path" aria-label="@path" aria-invalid="@(_parseErrors.ContainsKey(path) ? "true" : "false")" aria-describedby="@ErrorDescription(path)" class="form-check-input" type="checkbox" id="@id"
checked="@AsBool(path)" checked="@AsBool(path)"
@onchange="e => SetBool(path, (bool)(e.Value ?? false))" /> @onchange="e => SetBool(path, (bool)(e.Value ?? false))" />
</div> </div>
break; break;
case "integer": case "integer":
<input class="form-control form-control-sm" type="number" step="1" id="@id" <input data-param-path="@path" aria-label="@path" aria-invalid="@(_parseErrors.ContainsKey(path) ? "true" : "false")" aria-describedby="@ErrorDescription(path)" class="form-control form-control-sm" type="number" step="1" id="@id"
value="@AsRaw(path)" value="@AsRaw(path)"
@oninput="e => SetNumeric(path, (string?)e.Value, integerOnly: true)" /> @oninput="e => SetNumeric(path, (string?)e.Value, integerOnly: true)" />
@RenderError(path) @RenderError(path)
break; break;
case "number": case "number":
<input class="form-control form-control-sm" type="number" step="any" id="@id" <input data-param-path="@path" aria-label="@path" aria-invalid="@(_parseErrors.ContainsKey(path) ? "true" : "false")" aria-describedby="@ErrorDescription(path)" class="form-control form-control-sm" type="number" step="any" id="@id"
value="@AsRaw(path)" value="@AsRaw(path)"
@oninput="e => SetNumeric(path, (string?)e.Value, integerOnly: false)" /> @oninput="e => SetNumeric(path, (string?)e.Value, integerOnly: false)" />
@RenderError(path) @RenderError(path)
break; break;
case "string": case "string":
<input class="form-control form-control-sm" type="text" id="@id" <input data-param-path="@path" aria-label="@path" aria-invalid="@(_parseErrors.ContainsKey(path) ? "true" : "false")" aria-describedby="@ErrorDescription(path)" class="form-control form-control-sm" type="text" id="@id"
value="@AsRaw(path)" value="@AsRaw(path)"
@oninput="e => SetString(path, (string?)e.Value)" /> @oninput="e => SetString(path, (string?)e.Value)" />
@RenderError(path) @RenderError(path)
@@ -300,8 +312,9 @@ else
break; break;
default: // unresolved $ref / unknown — raw-JSON escape hatch (Monaco). default: // unresolved $ref / unknown — raw-JSON escape hatch (Monaco).
<div class="param-json-editor" data-path="@path"> <div class="param-json-editor" data-path="@path" role="group" aria-label="@($"Parameter {path} JSON")"
<MonacoEditor Language="json" Height="120px" ShowToolbar="false" aria-invalid="@(_parseErrors.ContainsKey(path) ? "true" : "false")" aria-describedby="@ErrorDescription(path)">
<MonacoEditor AriaLabel="@($"Parameter {path} JSON")" Language="json" Height="120px" ShowToolbar="false"
JsonSchema="@FieldSchemaJson(schema)" JsonSchema="@FieldSchemaJson(schema)"
Value="@AsRaw(path)" Value="@AsRaw(path)"
ValueChanged="@(v => SetJson(path, v))" /> ValueChanged="@(v => SetJson(path, v))" />
@@ -319,12 +332,22 @@ else
var childPath = JoinField(path, field.Name); var childPath = JoinField(path, field.Name);
<div class="row g-2 @(IsScalar(field.Schema) ? "align-items-center" : "align-items-start")"> <div class="row g-2 @(IsScalar(field.Schema) ? "align-items-center" : "align-items-start")">
<div class="col-sm-4"> <div class="col-sm-4">
<label class="form-label small mb-0" for="@FieldId(childPath)"> @if (IsScalar(field.Schema))
{
<label id="@(FieldId(childPath) + "-label")" for="@FieldId(childPath)" class="form-label small mb-0">
<code>@field.Name</code> <code>@field.Name</code>
<span class="text-muted ms-1">@DisplayType(field.Schema)@(field.Required ? "" : "?")</span> <span class="text-muted ms-1">@DisplayType(field.Schema)@(field.Required ? "" : "?")</span>
</label> </label>
}
else
{
<div id="@(FieldId(childPath) + "-label")" class="form-label small mb-0">
<code>@field.Name</code>
<span class="text-muted ms-1">@DisplayType(field.Schema)@(field.Required ? "" : "?")</span>
</div>
}
</div> </div>
<div class="col-sm-8"> <div class="col-sm-8" role="group" aria-labelledby="@(FieldId(childPath) + "-label")">
@RenderNode(field.Schema, childPath, FieldId(childPath)) @RenderNode(field.Schema, childPath, FieldId(childPath))
</div> </div>
</div> </div>
@@ -364,28 +387,28 @@ else
{ {
case "boolean": case "boolean":
<div class="form-check"> <div class="form-check">
<input class="form-check-input param-list-item" type="checkbox" id="@FieldId(path)" <input data-param-path="@path" aria-label="@path" aria-invalid="@(_parseErrors.ContainsKey(path) ? "true" : "false")" aria-describedby="@ErrorDescription(path)" class="form-check-input param-list-item" type="checkbox" id="@FieldId(path)"
checked="@AsBool(path)" checked="@AsBool(path)"
@onchange="e => SetBool(path, (bool)(e.Value ?? false))" /> @onchange="e => SetBool(path, (bool)(e.Value ?? false))" />
</div> </div>
break; break;
case "integer": case "integer":
<input class="form-control form-control-sm param-list-item" type="number" step="1" id="@FieldId(path)" <input data-param-path="@path" aria-label="@path" aria-invalid="@(_parseErrors.ContainsKey(path) ? "true" : "false")" aria-describedby="@ErrorDescription(path)" class="form-control form-control-sm param-list-item" type="number" step="1" id="@FieldId(path)"
value="@AsRaw(path)" value="@AsRaw(path)"
@oninput="e => SetNumeric(path, (string?)e.Value, integerOnly: true)" /> @oninput="e => SetNumeric(path, (string?)e.Value, integerOnly: true)" />
@RenderError(path) @RenderError(path)
break; break;
case "number": case "number":
<input class="form-control form-control-sm param-list-item" type="number" step="any" id="@FieldId(path)" <input data-param-path="@path" aria-label="@path" aria-invalid="@(_parseErrors.ContainsKey(path) ? "true" : "false")" aria-describedby="@ErrorDescription(path)" class="form-control form-control-sm param-list-item" type="number" step="any" id="@FieldId(path)"
value="@AsRaw(path)" value="@AsRaw(path)"
@oninput="e => SetNumeric(path, (string?)e.Value, integerOnly: false)" /> @oninput="e => SetNumeric(path, (string?)e.Value, integerOnly: false)" />
@RenderError(path) @RenderError(path)
break; break;
case "string": case "string":
<input class="form-control form-control-sm param-list-item" type="text" id="@FieldId(path)" <input data-param-path="@path" aria-label="@path" aria-invalid="@(_parseErrors.ContainsKey(path) ? "true" : "false")" aria-describedby="@ErrorDescription(path)" class="form-control form-control-sm param-list-item" type="text" id="@FieldId(path)"
value="@AsRaw(path)" value="@AsRaw(path)"
@oninput="e => SetString(path, (string?)e.Value)" /> @oninput="e => SetString(path, (string?)e.Value)" />
@RenderError(path) @RenderError(path)
@@ -401,7 +424,7 @@ else
{ {
if (_parseErrors.TryGetValue(path, out var err)) if (_parseErrors.TryGetValue(path, out var err))
{ {
<div class="text-danger small mt-1">@err</div> <div id="@(FieldId(path) + "-error")" role="alert" class="text-danger small mt-1">@err</div>
} }
}; };
@@ -6,7 +6,7 @@
while the field is blank (client-side guard); server-side rename failures are while the field is blank (client-side guard); server-side rename failures are
surfaced by the parent via a toast. surfaced by the parent via a toast.
*@ *@
<input class="form-control form-control-sm" @bind="_name" @bind:event="oninput" /> <input aria-label="Folder name" class="form-control form-control-sm" @bind="_name" @bind:event="oninput" />
<div class="modal-footer px-0 pb-0 mt-3"> <div class="modal-footer px-0 pb-0 mt-3">
<div class="btn-group btn-group-sm" role="group"> <div class="btn-group btn-group-sm" role="group">
@@ -104,11 +104,11 @@ else
private RenderFragment PropertyRow(SchemaNode parent, SchemaProperty prop) => __builder => private RenderFragment PropertyRow(SchemaNode parent, SchemaProperty prop) => __builder =>
{ {
<div class="d-flex flex-wrap align-items-center gap-2"> <div class="d-flex flex-wrap align-items-center gap-2">
<input type="text" class="form-control form-control-sm" <input aria-label="@($"Property name: {prop.Name}")" type="text" class="form-control form-control-sm"
style="max-width: 14rem;" placeholder="name" style="max-width: 14rem;" placeholder="name"
@bind="prop.Name" @bind:event="oninput" @bind:after="Emit" /> @bind="prop.Name" @bind:event="oninput" @bind:after="Emit" />
<select class="form-select form-select-sm" style="max-width: 9rem;" <select aria-label="@($"Type for {prop.Name}")" class="form-select form-select-sm" style="max-width: 9rem;"
@bind="prop.Schema.Type" @bind:after="() => OnTypeChange(prop.Schema)"> @bind="prop.Schema.Type" @bind:after="() => OnTypeChange(prop.Schema)">
@foreach (var t in SchemaBuilderModel.PrimitiveTypes) @foreach (var t in SchemaBuilderModel.PrimitiveTypes)
{ {
@@ -119,7 +119,7 @@ else
@if (prop.Schema.Type == "array") @if (prop.Schema.Type == "array")
{ {
<span class="small text-muted">items:</span> <span class="small text-muted">items:</span>
<select class="form-select form-select-sm" style="max-width: 9rem;" <select aria-label="@($"Array item type for {prop.Name}")" class="form-select form-select-sm" style="max-width: 9rem;"
@bind="prop.Schema.Items!.Type" @bind:after="() => OnTypeChange(prop.Schema.Items!)"> @bind="prop.Schema.Items!.Type" @bind:after="() => OnTypeChange(prop.Schema.Items!)">
@foreach (var t in SchemaBuilderModel.PrimitiveTypes) @foreach (var t in SchemaBuilderModel.PrimitiveTypes)
{ {
@@ -171,8 +171,8 @@ else
private RenderFragment ValueRoot(SchemaNode node) => __builder => private RenderFragment ValueRoot(SchemaNode node) => __builder =>
{ {
<div class="d-flex flex-wrap align-items-center gap-2 mb-2"> <div class="d-flex flex-wrap align-items-center gap-2 mb-2">
<label class="form-label mb-0">Return type:</label> <label class="form-label mb-0" for="@($"{_fieldScope}-field-1")">Return type:</label>
<select class="form-select form-select-sm" style="max-width: 10rem;" <select id="@($"{_fieldScope}-field-1")" class="form-select form-select-sm" style="max-width: 10rem;"
@bind="node.Type" @bind:after="() => OnTypeChange(node)"> @bind="node.Type" @bind:after="() => OnTypeChange(node)">
@foreach (var t in SchemaBuilderModel.PrimitiveTypes) @foreach (var t in SchemaBuilderModel.PrimitiveTypes)
{ {
@@ -182,8 +182,8 @@ else
@if (node.Type == "array") @if (node.Type == "array")
{ {
<label class="form-label mb-0 ms-2">Item type:</label> <label class="form-label mb-0 ms-2" for="@($"{_fieldScope}-field-2")">Item type:</label>
<select class="form-select form-select-sm" style="max-width: 10rem;" <select id="@($"{_fieldScope}-field-2")" class="form-select form-select-sm" style="max-width: 10rem;"
@bind="node.Items!.Type" @bind:after="() => OnTypeChange(node.Items!)"> @bind="node.Items!.Type" @bind:after="() => OnTypeChange(node.Items!)">
@foreach (var t in SchemaBuilderModel.PrimitiveTypes) @foreach (var t in SchemaBuilderModel.PrimitiveTypes)
{ {
@@ -205,3 +205,5 @@ else
} }
}; };
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -193,13 +193,13 @@
{ {
<div class="row g-2 align-items-end" style="max-width: 420px;"> <div class="row g-2 align-items-end" style="max-width: 420px;">
<div class="col-7"> <div class="col-7">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1">Run every</label> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-1")">Run every</label>
<input type="number" min="1" step="1" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-1")" type="number" min="1" step="1" class="form-control form-control-sm"
placeholder="period" placeholder="period"
@bind="_intervalText" @bind:event="oninput" @bind:after="OnIntervalChanged" /> @bind="_intervalText" @bind:event="oninput" @bind:after="OnIntervalChanged" />
</div> </div>
<div class="col-5"> <div class="col-5">
<select class="form-select form-select-sm" <select aria-label="Run interval unit" class="form-select form-select-sm"
@bind="_intervalUnit" @bind:after="OnIntervalChanged"> @bind="_intervalUnit" @bind:after="OnIntervalChanged">
<option value="ms">milliseconds</option> <option value="ms">milliseconds</option>
<option value="sec">seconds</option> <option value="sec">seconds</option>
@@ -225,8 +225,8 @@
<div class="mb-2">@RenderAttributePicker("Monitored attribute")</div> <div class="mb-2">@RenderAttributePicker("Monitored attribute")</div>
<div class="row g-2 align-items-end"> <div class="row g-2 align-items-end">
<div class="col-md-5"> <div class="col-md-5">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1">Operator</label> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-2")">Operator</label>
<select class="form-select form-select-sm" <select id="@($"{_fieldScope}-field-2")" class="form-select form-select-sm"
@bind="_operator" @bind:after="OnOperatorChanged"> @bind="_operator" @bind:after="OnOperatorChanged">
@foreach (var op in ScriptTriggerConfigCodec.Operators) @foreach (var op in ScriptTriggerConfigCodec.Operators)
{ {
@@ -235,8 +235,8 @@
</select> </select>
</div> </div>
<div class="col-md-7"> <div class="col-md-7">
<label class="form-label small text-uppercase text-muted fw-semibold mb-1">Threshold</label> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-3")">Threshold</label>
<input type="number" step="any" class="form-control form-control-sm" <input id="@($"{_fieldScope}-field-3")" type="number" step="any" class="form-control form-control-sm"
placeholder="numeric value" placeholder="numeric value"
@bind="_thresholdText" @bind:event="oninput" @bind:after="OnThresholdChanged" /> @bind="_thresholdText" @bind:event="oninput" @bind:after="OnThresholdChanged" />
</div> </div>
@@ -262,8 +262,9 @@
private RenderFragment RenderExpression() => __builder => private RenderFragment RenderExpression() => __builder =>
{ {
<label class="form-label small text-uppercase text-muted fw-semibold mb-1">Trigger expression</label> <div role="group" aria-label="Trigger expression" aria-describedby="@($"{_fieldScope}-expression-hint")">
<MonacoEditor Height="120px" <div class="form-label small text-uppercase text-muted fw-semibold mb-1">Trigger expression</div>
<MonacoEditor AriaLabel="Script trigger expression" Height="120px"
Language="csharp" Language="csharp"
ScriptKind="ScriptAnalysis.ScriptKind.Template" ScriptKind="ScriptAnalysis.ScriptKind.Template"
ShowToolbar="false" ShowToolbar="false"
@@ -271,9 +272,10 @@
ValueChanged="OnExpressionChanged" ValueChanged="OnExpressionChanged"
SelfAttributes="@TriggerAttributeMapper.SelfAttributes(AvailableAttributes)" SelfAttributes="@TriggerAttributeMapper.SelfAttributes(AvailableAttributes)"
Children="@TriggerAttributeMapper.Children(AvailableAttributes)" /> Children="@TriggerAttributeMapper.Children(AvailableAttributes)" />
<div class="form-text"> <div class="form-text" id="@($"{_fieldScope}-expression-hint")">
A boolean C# expression — e.g. <code>Attributes["Temperature"] &gt; 80</code>. A boolean C# expression — e.g. <code>Attributes["Temperature"] &gt; 80</code>.
</div> </div>
</div>
@* Analysis-kind selector — Advisory keeps the blank-expression finding @* Analysis-kind selector — Advisory keeps the blank-expression finding
as a non-blocking warning; Strict escalates it to a deploy-blocking error. *@ as a non-blocking warning; Strict escalates it to a deploy-blocking error. *@
<div class="mt-2"> <div class="mt-2">
@@ -314,7 +316,7 @@
<label for="script-trigger-mode" class="form-label small text-uppercase text-muted fw-semibold mb-1"> <label for="script-trigger-mode" class="form-label small text-uppercase text-muted fw-semibold mb-1">
Fire mode Fire mode
</label> </label>
<select id="script-trigger-mode" class="form-select form-select-sm" <select aria-describedby="@(_model.Mode == ScriptTriggerMode.WhileTrue ? $"{_fieldScope}-mode-hint" : null)" id="script-trigger-mode" class="form-select form-select-sm"
style="max-width: 420px;" style="max-width: 420px;"
@bind="_model.Mode" @bind:after="OnModeChanged"> @bind="_model.Mode" @bind:after="OnModeChanged">
<option value="@ScriptTriggerMode.OnTrue"> <option value="@ScriptTriggerMode.OnTrue">
@@ -326,7 +328,7 @@
</select> </select>
@if (_model.Mode == ScriptTriggerMode.WhileTrue) @if (_model.Mode == ScriptTriggerMode.WhileTrue)
{ {
<div class="form-text"> <div class="form-text" id="@($"{_fieldScope}-mode-hint")">
Re-runs on a timer while the condition holds, at the script's Re-runs on a timer while the condition holds, at the script's
<strong>Min time between runs</strong> interval — set that field below <strong>Min time between runs</strong> interval — set that field below
the script editor, or the trigger fires only once. the script editor, or the trigger fires only once.
@@ -341,8 +343,8 @@
private RenderFragment RenderAttributePicker(string label) => __builder => private RenderFragment RenderAttributePicker(string label) => __builder =>
{ {
<label class="form-label small text-uppercase text-muted fw-semibold mb-1">@label</label> <label class="form-label small text-uppercase text-muted fw-semibold mb-1" for="@($"{_fieldScope}-field-4")">@label</label>
<select class="form-select form-select-sm" <select id="@($"{_fieldScope}-field-4")" class="form-select form-select-sm"
@bind="_attributeName" @bind:after="OnAttributeChanged"> @bind="_attributeName" @bind:after="OnAttributeChanged">
<option value="">— select attribute —</option> <option value="">— select attribute —</option>
@{ @{
@@ -437,3 +439,5 @@
_ => "" _ => ""
}; };
} }
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@@ -15,7 +15,7 @@
<div class="d-flex gap-2 align-items-center mb-2"> <div class="d-flex gap-2 align-items-center mb-2">
<div class="input-group input-group-sm"> <div class="input-group input-group-sm">
<input type="text" class="form-control" data-test="picker-search" placeholder="Search templates..." <input aria-label="Search templates" type="text" class="form-control" data-test="picker-search" placeholder="Search templates..."
value="@_search" @oninput="OnSearchInput" /> value="@_search" @oninput="OnSearchInput" />
@if (!string.IsNullOrEmpty(_search)) @if (!string.IsNullOrEmpty(_search))
{ {
@@ -50,6 +50,7 @@ else
{ {
var key = KeySelector(item); var key = KeySelector(item);
var keyStr = KeyStr(key); var keyStr = KeyStr(key);
var contentId = _contentScope + Convert.ToHexString(System.Text.Encoding.UTF8.GetBytes(keyStr));
var children = ChildrenSelector(item); var children = ChildrenSelector(item);
var isBranch = HasChildrenSelector(item); var isBranch = HasChildrenSelector(item);
var isExpanded = _expandedKeys.Contains(keyStr); var isExpanded = _expandedKeys.Contains(keyStr);
@@ -111,7 +112,7 @@ else
a consumer's buttons/inputs inside NodeContent keep their own key handling. *@ a consumer's buttons/inputs inside NodeContent keep their own key handling. *@
@if (SelectionMode == TreeViewSelectionMode.Checkbox) @if (SelectionMode == TreeViewSelectionMode.Checkbox)
{ {
<input type="checkbox" <input aria-labelledby="@contentId" type="checkbox"
class="form-check-input tv-checkbox @(checkState == CheckState.Indeterminate ? "tv-checkbox-indeterminate" : "")" class="form-check-input tv-checkbox @(checkState == CheckState.Indeterminate ? "tv-checkbox-indeterminate" : "")"
@ref="_checkboxRefs[keyStr]" @ref="_checkboxRefs[keyStr]"
checked="@(checkState == CheckState.Checked)" checked="@(checkState == CheckState.Checked)"
@@ -119,7 +120,7 @@ else
@onclick:stopPropagation @onclick:stopPropagation
@onkeydown:stopPropagation /> @onkeydown:stopPropagation />
} }
<span class="tv-content" @onclick="() => OnContentClick(key)" @onclick:stopPropagation @onkeydown:stopPropagation> <span id="@contentId" class="tv-content" @onclick="() => OnContentClick(key)" @onclick:stopPropagation @onkeydown:stopPropagation>
@NodeContent(item) @NodeContent(item)
</span> </span>
</div> </div>
@@ -137,6 +138,7 @@ else
} }
@code { @code {
private readonly string _contentScope = "tree-content-" + Guid.NewGuid().ToString("N") + "-";
private IReadOnlyList<TItem>? _items; private IReadOnlyList<TItem>? _items;
private HashSet<string> _expandedKeys = new(); private HashSet<string> _expandedKeys = new();
@@ -343,6 +343,7 @@
} }
const editor = monaco.editor.create(host, { const editor = monaco.editor.create(host, {
ariaLabel: options.ariaLabel || "Code editor",
value: model ? undefined : (options.value || ""), value: model ? undefined : (options.value || ""),
model: model || undefined, model: model || undefined,
language: model ? undefined : language, language: model ? undefined : language,
@@ -297,10 +297,10 @@ public class FlowDebuggerPageTests : BunitContext
// The method pane is the shared ParameterValueForm (typed inputs by field id), and // The method pane is the shared ParameterValueForm (typed inputs by field id), and
// Run is gated on its validity — MachineCode is required, so Run stays off until it is set. // Run is gated on its validity — MachineCode is required, so Run stays off until it is set.
Assert.NotEmpty(cut.FindAll("[data-test='flow-method-params']")); Assert.NotEmpty(cut.FindAll("[data-test='flow-method-params']"));
Assert.NotNull(cut.Find("#param-MachineCode")); Assert.NotNull(cut.Find("[data-param-path='MachineCode']"));
Assert.NotNull(cut.Find("#param-Qty")); Assert.NotNull(cut.Find("[data-param-path='Qty']"));
Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")); Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"));
cut.Find("#param-MachineCode").Input("Z28061"); cut.Find("[data-param-path='MachineCode']").Input("Z28061");
cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"))); cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")));
} }
@@ -316,8 +316,8 @@ public class FlowDebuggerPageTests : BunitContext
cut.Find("select[data-test='flow-method-select']").Change("4"); cut.Find("select[data-test='flow-method-select']").Change("4");
FillRequiredMethodInput(cut); FillRequiredMethodInput(cut);
cut.Find("#param-MachineCode").Input("Z28061"); cut.Find("[data-param-path='MachineCode']").Input("Z28061");
cut.Find("#param-Qty").Input("3"); cut.Find("[data-param-path='Qty']").Input("3");
cut.Find("button[data-test='flow-run']").Click(); cut.Find("button[data-test='flow-run']").Click();
cut.WaitForAssertion(() => Assert.Equal("Completed", cut.Find("[data-test='flow-state']").TextContent.Trim())); cut.WaitForAssertion(() => Assert.Equal("Completed", cut.Find("[data-test='flow-state']").TextContent.Trim()));
@@ -791,7 +791,7 @@ public class FlowDebuggerPageTests : BunitContext
Assert.NotEmpty(cut.FindAll("[data-test='flow-script-params']")); Assert.NotEmpty(cut.FindAll("[data-test='flow-script-params']"));
Assert.Empty(cut.FindAll("input[data-test='flow-input-value']")); Assert.Empty(cut.FindAll("input[data-test='flow-input-value']"));
cut.Find("#param-n").Input("3"); cut.Find("[data-param-path='n']").Input("3");
cut.Find("button[data-test='flow-run']").Click(); cut.Find("button[data-test='flow-run']").Click();
cut.WaitForAssertion(() => Assert.Equal("Completed", cut.Find("[data-test='flow-state']").TextContent.Trim())); cut.WaitForAssertion(() => Assert.Equal("Completed", cut.Find("[data-test='flow-state']").TextContent.Trim()));
_ = _flow.Received(1).RunScriptAsync(7, "Manual", Arg.Is<JsonElement?>(p => p != null && p.Value.GetProperty("n").GetInt64() == 3), null, Arg.Any<CancellationToken>()); _ = _flow.Received(1).RunScriptAsync(7, "Manual", Arg.Is<JsonElement?>(p => p != null && p.Value.GetProperty("n").GetInt64() == 3), null, Arg.Any<CancellationToken>());
@@ -851,7 +851,7 @@ public class FlowDebuggerPageTests : BunitContext
cut.Find("select[data-test='flow-site-select']").Change("1"); cut.Find("select[data-test='flow-site-select']").Change("1");
PickInstance(cut, 7); PickInstance(cut, 7);
cut.Find("select[data-test='flow-script-select']").Change("Manual"); cut.Find("select[data-test='flow-script-select']").Change("Manual");
cut.Find("#param-n").Input("abc"); // not an integer: the form parks a parse error cut.Find("[data-param-path='n']").Input("abc"); // not an integer: the form parks a parse error
Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")); Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"));
return cut; return cut;
} }
@@ -868,10 +868,10 @@ public class FlowDebuggerPageTests : BunitContext
// A fresh form: no echo of the previous script's text, and no stale parse error keeping // A fresh form: no echo of the previous script's text, and no stale parse error keeping
// Run disabled invisibly — Run is disabled only because the required field is unset. // Run disabled invisibly — Run is disabled only because the required field is unset.
Assert.Equal(string.Empty, cut.Find("#param-n").GetAttribute("value")); Assert.Equal(string.Empty, cut.Find("[data-param-path='n']").GetAttribute("value"));
Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")); Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"));
cut.Find("#param-n").Input("5"); cut.Find("[data-param-path='n']").Input("5");
Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")); Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"));
} }
@@ -1298,7 +1298,7 @@ public class FlowDebuggerPageTests : BunitContext
/// </summary> /// </summary>
private static void FillRequiredMethodInput(IRenderedComponent<FlowDebuggerPage> cut) private static void FillRequiredMethodInput(IRenderedComponent<FlowDebuggerPage> cut)
{ {
cut.WaitForElement("#param-MachineCode").Input("Z28061"); cut.WaitForElement("[data-param-path='MachineCode']").Input("Z28061");
cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"))); cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")));
} }
@@ -1314,16 +1314,16 @@ public class FlowDebuggerPageTests : BunitContext
.Returns(GraphOutcome(withSite: true, withChildId: true)); .Returns(GraphOutcome(withSite: true, withChildId: true));
var cut = Render<FlowDebuggerPage>(); var cut = Render<FlowDebuggerPage>();
cut.Find("select[data-test='flow-method-select']").Change("5"); cut.Find("select[data-test='flow-method-select']").Change("5");
cut.WaitForElement("#param-SAPID"); cut.WaitForElement("[data-param-path='SAPID']");
// Required array unset → Run off. Add two work orders through the list editor. // Required array unset → Run off. Add two work orders through the list editor.
Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")); Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"));
cut.Find("#param-SAPID").Input("103559_A"); cut.Find("[data-param-path='SAPID']").Input("103559_A");
cut.Find("button.param-list-add").Click(); cut.Find("button.param-list-add").Click();
cut.Find("button.param-list-add").Click(); cut.Find("button.param-list-add").Click();
cut.Find("[id='param-WorkOrders[0].WorkOrderNumber']").Input("WO-1"); cut.Find("[data-param-path='WorkOrders[0].WorkOrderNumber']").Input("WO-1");
cut.Find("[id='param-WorkOrders[0].PartNumber']").Input("P-1"); cut.Find("[data-param-path='WorkOrders[0].PartNumber']").Input("P-1");
cut.Find("[id='param-WorkOrders[1].WorkOrderNumber']").Input("WO-2"); cut.Find("[data-param-path='WorkOrders[1].WorkOrderNumber']").Input("WO-2");
cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"))); cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")));
cut.Find("button[data-test='flow-run']").Click(); cut.Find("button[data-test='flow-run']").Click();
@@ -1346,14 +1346,14 @@ public class FlowDebuggerPageTests : BunitContext
RegisterServices(); RegisterServices();
var cut = Render<FlowDebuggerPage>(); var cut = Render<FlowDebuggerPage>();
cut.Find("select[data-test='flow-method-select']").Change("5"); cut.Find("select[data-test='flow-method-select']").Change("5");
cut.WaitForElement("#param-SAPID"); cut.WaitForElement("[data-param-path='SAPID']");
cut.Find("#param-SAPID").Input("103559_A"); cut.Find("[data-param-path='SAPID']").Input("103559_A");
cut.Find("button.param-list-add").Click(); cut.Find("button.param-list-add").Click();
// An item exists but its required WorkOrderNumber is unset: still invalid. // An item exists but its required WorkOrderNumber is unset: still invalid.
cut.Find("[id='param-WorkOrders[0].PartNumber']").Input("P-1"); cut.Find("[data-param-path='WorkOrders[0].PartNumber']").Input("P-1");
Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")); Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"));
cut.Find("[id='param-WorkOrders[0].WorkOrderNumber']").Input("WO-1"); cut.Find("[data-param-path='WorkOrders[0].WorkOrderNumber']").Input("WO-1");
cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"))); cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")));
} }
@@ -1401,7 +1401,7 @@ public class FlowDebuggerPageTests : BunitContext
.Returns(GraphOutcome(withSite: true, withChildId: true)); .Returns(GraphOutcome(withSite: true, withChildId: true));
var cut = Render<FlowDebuggerPage>(); var cut = Render<FlowDebuggerPage>();
cut.Find("select[data-test='flow-method-select']").Change("5"); cut.Find("select[data-test='flow-method-select']").Change("5");
cut.WaitForElement("#param-SAPID"); cut.WaitForElement("[data-param-path='SAPID']");
cut.Find("button[data-test='flow-input-mode-raw']").Click(); cut.Find("button[data-test='flow-input-mode-raw']").Click();
var editor = cut.FindComponent<MonacoEditor>(); var editor = cut.FindComponent<MonacoEditor>();
@@ -1412,9 +1412,9 @@ public class FlowDebuggerPageTests : BunitContext
// Back to the form: the parsed tree is what the item editors now show. // Back to the form: the parsed tree is what the item editors now show.
cut.Find("button[data-test='flow-input-mode-form']").Click(); cut.Find("button[data-test='flow-input-mode-form']").Click();
cut.WaitForElement("[id='param-WorkOrders[0].WorkOrderNumber']"); cut.WaitForElement("[data-param-path='WorkOrders[0].WorkOrderNumber']");
Assert.Equal("WO-1", cut.Find("[id='param-WorkOrders[0].WorkOrderNumber']").GetAttribute("value")); Assert.Equal("WO-1", cut.Find("[data-param-path='WorkOrders[0].WorkOrderNumber']").GetAttribute("value"));
Assert.Equal("103559_A", cut.Find("#param-SAPID").GetAttribute("value")); Assert.Equal("103559_A", cut.Find("[data-param-path='SAPID']").GetAttribute("value"));
cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"))); cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")));
cut.Find("button[data-test='flow-run']").Click(); cut.Find("button[data-test='flow-run']").Click();
@@ -1436,9 +1436,9 @@ public class FlowDebuggerPageTests : BunitContext
cut.Find("select[data-test='flow-method-select']").Change("5"); cut.Find("select[data-test='flow-method-select']").Change("5");
cut.WaitForElement("#param-SAPID"); cut.WaitForElement("[data-param-path='SAPID']");
Assert.Empty(cut.FindAll("#param-MachineCode")); Assert.Empty(cut.FindAll("[data-param-path='MachineCode']"));
Assert.Equal("", cut.Find("#param-SAPID").GetAttribute("value")); Assert.Equal("", cut.Find("[data-param-path='SAPID']").GetAttribute("value"));
Assert.Empty(cut.FindAll(".param-list-row")); Assert.Empty(cut.FindAll(".param-list-row"));
Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")); Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"));
} }
@@ -1453,8 +1453,8 @@ public class FlowDebuggerPageTests : BunitContext
var cut = Render<FlowDebuggerPage>(); var cut = Render<FlowDebuggerPage>();
cut.Find("select[data-test='flow-method-select']").Change("4"); cut.Find("select[data-test='flow-method-select']").Change("4");
cut.WaitForAssertion(() => Assert.Equal("Z9", cut.Find("#param-MachineCode").GetAttribute("value"))); cut.WaitForAssertion(() => Assert.Equal("Z9", cut.Find("[data-param-path='MachineCode']").GetAttribute("value")));
Assert.Equal("7", cut.Find("#param-Qty").GetAttribute("value")); Assert.Equal("7", cut.Find("[data-param-path='Qty']").GetAttribute("value"));
cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"))); cut.WaitForAssertion(() => Assert.False(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")));
} }
@@ -1470,8 +1470,8 @@ public class FlowDebuggerPageTests : BunitContext
var cut = Render<FlowDebuggerPage>(); var cut = Render<FlowDebuggerPage>();
cut.Find("select[data-test='flow-method-select']").Change("4"); cut.Find("select[data-test='flow-method-select']").Change("4");
cut.WaitForElement("#param-MachineCode"); cut.WaitForElement("[data-param-path='MachineCode']");
Assert.Equal("", cut.Find("#param-MachineCode").GetAttribute("value")); Assert.Equal("", cut.Find("[data-param-path='MachineCode']").GetAttribute("value"));
Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled")); Assert.True(cut.Find("button[data-test='flow-run']").HasAttribute("disabled"));
} }
} }
@@ -34,6 +34,27 @@ public class ParameterValueFormMonacoSchemaTests : BunitContext
Services.AddSingleton(_library); Services.AddSingleton(_library);
} }
/// <summary>Raw JSON errors describe the named composite and disappear after correction.</summary>
[Fact]
public async Task EscapeHatch_ParseErrorIsLinkedToNamedGroupUntilCorrection()
{
const string schema = """{"type":"object","properties":{"payload":{"$ref":"lib:Missing"}}}""";
var cut = Render<ParameterValueForm>(p => p.Add(c => c.ParameterDefinitions, schema));
var editor = cut.FindComponent<MonacoEditor>();
Assert.Equal("Parameter payload JSON", editor.Instance.AriaLabel);
await cut.InvokeAsync(() => editor.Instance.ValueChanged.InvokeAsync("{bad"));
var group = cut.Find(".param-json-editor");
Assert.Equal("group", group.GetAttribute("role"));
Assert.Equal("Parameter payload JSON", group.GetAttribute("aria-label"));
Assert.Equal("true", group.GetAttribute("aria-invalid"));
Assert.Contains("JSON parse error", cut.Find("#" + group.GetAttribute("aria-describedby")).TextContent);
await cut.InvokeAsync(() => editor.Instance.ValueChanged.InvokeAsync("{}"));
group = cut.Find(".param-json-editor");
Assert.Equal("false", group.GetAttribute("aria-invalid"));
Assert.Null(group.GetAttribute("aria-describedby"));
Assert.Equal("Parameter payload JSON", cut.FindComponent<MonacoEditor>().Instance.AriaLabel);
}
/// <summary>Verifies the case: escape Hatch, renders Monaco Json Editor, not Plain Textarea.</summary> /// <summary>Verifies the case: escape Hatch, renders Monaco Json Editor, not Plain Textarea.</summary>
[Fact] [Fact]
public void EscapeHatch_RendersMonacoJsonEditor_NotPlainTextarea() public void EscapeHatch_RendersMonacoJsonEditor_NotPlainTextarea()
@@ -28,6 +28,23 @@ public class ParameterValueFormTests : BunitContext
Services.AddSingleton(_library); Services.AddSingleton(_library);
} }
/// <summary>Repeated forms have distinct IDs and parse errors stay linked until correction.</summary>
[Fact]
public void RepeatedForms_HaveUniqueIdsAndLinkedParseErrors()
{
const string schema = """{"type":"object","properties":{"n":{"type":"integer"}}}""";
var first = Render<ParameterValueForm>(p => p.Add(c => c.ParameterDefinitions, schema));
var second = Render<ParameterValueForm>(p => p.Add(c => c.ParameterDefinitions, schema));
var input = first.Find("input");
Assert.NotEqual(input.Id, second.Find("input").Id);
input.Input("abc");
Assert.Equal("true", input.GetAttribute("aria-invalid"));
Assert.Contains("Not a valid integer", first.Find("#" + input.GetAttribute("aria-describedby")).TextContent);
input.Input("5");
Assert.Equal("false", input.GetAttribute("aria-invalid"));
Assert.Null(input.GetAttribute("aria-describedby"));
}
private const string ObjectParamSchema = """ private const string ObjectParamSchema = """
{ {
"type": "object", "type": "object",
@@ -300,7 +317,7 @@ public class ParameterValueFormTests : BunitContext
.Add(x => x.ParameterDefinitions, """{"type":"object","properties":{"n":{"type":"integer"}}}""") .Add(x => x.ParameterDefinitions, """{"type":"object","properties":{"n":{"type":"integer"}}}""")
.Add(x => x.ValidChanged, v => valid.Add(v))); .Add(x => x.ValidChanged, v => valid.Add(v)));
var input = cut.Find("#param-n"); var input = cut.Find("input[type=number]");
input.Input("abc"); input.Input("abc");
Assert.False(valid.Last()); Assert.False(valid.Last());
input.Input("5"); input.Input("5");
@@ -22,6 +22,21 @@ public class OpcUaEndpointEditorTests : BunitContext
Services.AddSingleton<ICertManagementService>(Substitute.For<ICertManagementService>()); Services.AddSingleton<ICertManagementService>(Substitute.For<ICertManagementService>());
} }
/// <summary>Existing endpoint validation is linked to its control and clears on correction.</summary>
[Fact]
public void EndpointError_IsDescribedAndInvalidUntilValidationClears()
{
var errors = ValidationResult.FromErrors(new ValidationEntry { EntityName = "EndpointUrl", Message = "Endpoint is required" });
var cut = Render<OpcUaEndpointEditor>(p => p.Add(c => c.Config, new OpcUaEndpointConfig()).Add(c => c.Errors, errors));
var input = cut.Find("input[placeholder='opc.tcp://host:4840']");
Assert.Equal("true", input.GetAttribute("aria-invalid"));
var errorId = input.GetAttribute("aria-describedby");
Assert.Equal("Endpoint is required", cut.Find("#" + errorId).TextContent);
cut.Render(p => p.Add(c => c.Errors, (ValidationResult?)null));
Assert.Equal("false", cut.Find("input[placeholder='opc.tcp://host:4840']").GetAttribute("aria-invalid"));
Assert.Null(cut.Find("input[placeholder='opc.tcp://host:4840']").GetAttribute("aria-describedby"));
}
/// <summary>Verifies that the editor renders all four section labels.</summary> /// <summary>Verifies that the editor renders all four section labels.</summary>
[Fact] [Fact]
public void Renders_All_Four_Section_Labels() public void Renders_All_Four_Section_Labels()
@@ -305,7 +305,12 @@ public class TransportExportPageTests : BunitContext
var passphraseInput = cut.Find("#passphrase"); var passphraseInput = cut.Find("#passphrase");
passphraseInput.Input("hunter2hunter2"); passphraseInput.Input("hunter2hunter2");
var confirmInput = cut.Find("#passphrase-confirm"); var confirmInput = cut.Find("#passphrase-confirm");
confirmInput.Input("different");
Assert.Equal("true", confirmInput.GetAttribute("aria-invalid"));
Assert.Contains("do not match", cut.Find("#" + confirmInput.GetAttribute("aria-describedby")).TextContent);
confirmInput.Input("hunter2hunter2"); confirmInput.Input("hunter2hunter2");
Assert.Equal("false", confirmInput.GetAttribute("aria-invalid"));
Assert.Null(confirmInput.GetAttribute("aria-describedby"));
// Click "Export" — the only enabled button labeled "Export" at this step. // Click "Export" — the only enabled button labeled "Export" at this step.
await cut.FindAll("button").First(b => b.TextContent.Trim() == "Export").ClickAsync(new()); await cut.FindAll("button").First(b => b.TextContent.Trim() == "Export").ClickAsync(new());
@@ -0,0 +1,23 @@
using Bunit;
using Microsoft.AspNetCore.Components;
using ZB.MOM.WW.ScadaBridge.CentralUI.Components.Shared;
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Shared;
/// <summary>Control names remain associated as search and selection values change.</summary>
public class ControlLabelTests : BunitContext
{
/// <summary>Visible DataTable search label targets its instance-specific input.</summary>
[Fact]
public void TableSearch_HasAssociatedLabelAfterTyping()
{
var cut = Render<DataTable<string>>(p => p.Add(c => c.Items, new[] { "one", "two" })
.Add(c => c.ShowSearch, true).Add(c => c.HeaderContent, (RenderFragment)(b => b.AddContent(0, "Value")))
.Add(c => c.RowContent, (RenderFragment<string>)(v => b => b.AddContent(0, v))));
var input = cut.Find("input");
Assert.False(string.IsNullOrEmpty(input.Id));
Assert.Equal("Search", cut.Find("label[for='" + input.Id + "']").TextContent.Trim());
input.Input("one");
Assert.NotNull(cut.Find("label[for='" + cut.Find("input").Id + "']"));
}
}
@@ -15,6 +15,17 @@ namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Shared;
/// </summary> /// </summary>
public class MonacoEditorLoggingTests : BunitContext public class MonacoEditorLoggingTests : BunitContext
{ {
/// <summary>Editor creation supplies a real editor accessibility name.</summary>
[Fact]
public void CreateEditor_SuppliesAccessibleName()
{
Services.AddLogging();
JSInterop.Mode = JSRuntimeMode.Loose;
Render<MonacoEditor>();
var options = JSInterop.Invocations.Single(x => x.Identifier == "MonacoBlazor.createEditor").Arguments[2]!;
Assert.Equal("Code editor", options.GetType().GetProperty("ariaLabel")?.GetValue(options));
}
/// <summary>Captures log entries so the test can assert on them.</summary> /// <summary>Captures log entries so the test can assert on them.</summary>
private sealed class CapturingLoggerProvider : ILoggerProvider private sealed class CapturingLoggerProvider : ILoggerProvider
{ {
@@ -62,6 +62,23 @@ public class TreeViewMultiSelectTests : BunitContext
}); });
} }
/// <summary>Each checkbox names its visible node, with IDs unique across repeated trees.</summary>
[Fact]
public void CheckboxNames_ReferenceVisibleNodeAndRemainUniqueAcrossTrees()
{
var first = RenderCheckboxTree();
var second = RenderCheckboxTree();
var ids = new HashSet<string>();
foreach (var tree in new[] { first, second })
foreach (var box in tree.FindAll("input.tv-checkbox"))
{
var id = box.GetAttribute("aria-labelledby");
Assert.False(string.IsNullOrWhiteSpace(id));
Assert.True(ids.Add(id!));
Assert.Contains(tree.Find("#" + id).TextContent.Trim(), new[] { "Folder1", "Folder2", "Leaf1a", "Leaf1b", "Leaf2a" });
}
}
/// <summary>Verifies that checkbox mode renders a checkbox input for each node.</summary> /// <summary>Verifies that checkbox mode renders a checkbox input for each node.</summary>
[Fact] [Fact]
public void Checkbox_mode_renders_input_checkbox_per_node() public void Checkbox_mode_renders_input_checkbox_per_node()