diff --git a/docs/ui-consistency/ot13-host-controls/README.md b/docs/ui-consistency/ot13-host-controls/README.md new file mode 100644 index 000000000..eeddd6b5e --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/README.md @@ -0,0 +1,20 @@ +# Hosts driver controls acceptance (OT-13) + +The actual Hosts page now uses the shared ModalFrame for its single outer driver-controls dialog. The panel keeps restart confirmation inline. Each presentation captures driver, Enabled and cluster identity, and busy/close callbacks reject retired presentations. Ordinary health/name refresh retains the panel; changed identity or a vanished driver retires it. The eight existing read, subscription and disposal bodies are unchanged (independently reviewed; see read-state-boundaries.json). No command API, read semantics or device behavior changes in this parent slice. + +## Verification + +- acceptance.log: 45 passed, zero failures/skips (six new actual parent cases, 24 panel cases and 15 prior read/diagnostic/wiring cases). The valid pre-change three-failure proof is close-render-red.log; earlier harness/reflection corrections are retained separately. +- browser-confirmation.log and browser/results.json: 12 actual Hosts contexts over synthetic services: Operator Reconnect, Operator Restart and Reader, each at 1440, 390 and native Chromium 200% (720 and 195 CSS pixels). Assertions cover one dialog, names/context, focus trap, inert background, safe inline Cancel, current captured dispatch, busy Escape/close denial, result, idle Escape and trigger restoration, no overflow and zero page errors. No real actor/device/broker mutations. +- native-zoom/: two final direct Chromium surface screenshots and measured header/footer geometry, with native Escape/trigger-return checks. The long-ID header previously clipped the chrome at 195 CSS pixels. The short title and complete wrapped body description repair that real failure without truncating identity. +- runtime-parity.json records exact current dialog-focus HTTP/source parity. Independent peer review approved source and evidence without a blocker. + +The browser/ screenshots at real zoom can show a Playwright clip-framing artifact when the background document is scrolled. The final native-zoom/ images use CDP Page.captureScreenshot with fromSurface=true and captureBeyondViewport=false and show the actual viewport; intermediate zoom-captures/ and cdp-captures/ are retained as harness diagnostics. An exploratory fromSurface=false request was unsupported; no product patch follows from that capture failure. + +opacity-observation.json records an actual stale-panel opacity finding handed to the final OT accessibility batch; this parent slice does not claim that separate contrast issue is resolved. VoiceOver tests are excluded at the user’s instruction; no speech-output result is claimed. + +## Reproduction and cleanup + +The checked-in canary mounts the production Hosts and DriverStatusPanel with synthetic health/config and a delayed typed command responder, operator/reader claims, and local in-memory data. It binds only loopback 18142. Build with a separate artifacts/output directory, then run browser.py and capture-native-zoom.py using the installed Playwright runtime. All dotnet test invocations must use infra/tools/ui-consistency/with_private_sql.py and the owned private SQL state; SQL readiness probes occur before filtering. + +The fixture runtime is stopped after acceptance. No production server, existing rig container or external SQL was modified by this fixture. diff --git a/docs/ui-consistency/ot13-host-controls/acceptance.log b/docs/ui-consistency/ot13-host-controls/acceptance.log new file mode 100644 index 000000000..4d051c3bf --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/acceptance.log @@ -0,0 +1,52 @@ + + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. + +Passed! - Failed: 0, Passed: 45, Skipped: 0, Total: 45, Duration: 1 s - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/docs/ui-consistency/ot13-host-controls/actual-red.log b/docs/ui-consistency/ot13-host-controls/actual-red.log new file mode 100644 index 000000000..bd34888a5 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/actual-red.log @@ -0,0 +1,92 @@ + + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +[xUnit.net 00:00:02.11] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion [FAIL] +[xUnit.net 00:00:02.13] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext [FAIL] + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion [758 ms] + Error Message: + Shouldly.ShouldAssertException : cut.Find("[role=dialog]").GetAttribute("aria-busy") + should be +"true" + but was +null + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 96 + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 98 + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 102 + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options) +--- End of stack trace from previous location --- + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options) + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext [16 ms] + Error Message: + Shouldly.ShouldAssertException : dialog.GetAttribute("aria-modal") + should be +"true" + but was +null + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 63 + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 67 + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options) +--- End of stack trace from previous location --- + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options) + +Failed! - Failed: 2, Passed: 1, Skipped: 0, Total: 3, Duration: 799 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/docs/ui-consistency/ot13-host-controls/browser-before-correction/reader-1440.png b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reader-1440.png new file mode 100644 index 000000000..c958af45d Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reader-1440.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser-before-correction/reader-390.png b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reader-390.png new file mode 100644 index 000000000..b8a0bdb0b Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reader-390.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser-before-correction/reader-real200-720.png b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reader-real200-720.png new file mode 100644 index 000000000..d43480228 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reader-real200-720.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser-before-correction/reconnect-1440.png b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reconnect-1440.png new file mode 100644 index 000000000..1e02b6cf6 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reconnect-1440.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser-before-correction/reconnect-390.png b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reconnect-390.png new file mode 100644 index 000000000..e4431d012 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reconnect-390.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser-before-correction/reconnect-real200-720.png b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reconnect-real200-720.png new file mode 100644 index 000000000..736d07e7d Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser-before-correction/reconnect-real200-720.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser-before-correction/restart-1440.png b/docs/ui-consistency/ot13-host-controls/browser-before-correction/restart-1440.png new file mode 100644 index 000000000..e5c05e469 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser-before-correction/restart-1440.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser-before-correction/restart-390.png b/docs/ui-consistency/ot13-host-controls/browser-before-correction/restart-390.png new file mode 100644 index 000000000..a2c0e5b5d Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser-before-correction/restart-390.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser-before-correction/restart-real200-720.png b/docs/ui-consistency/ot13-host-controls/browser-before-correction/restart-real200-720.png new file mode 100644 index 000000000..867c76c8e Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser-before-correction/restart-real200-720.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser-before-correction/results.json b/docs/ui-consistency/ot13-host-controls/browser-before-correction/results.json new file mode 100644 index 000000000..c71013f90 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/browser-before-correction/results.json @@ -0,0 +1,128 @@ +[ + { + "mode": "reconnect", + "name": "1440", + "geometry": { + "width": 1440, + "height": 900, + "dpr": 1, + "scroll": 1440 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "restart", + "name": "1440", + "geometry": { + "width": 1440, + "height": 900, + "dpr": 1, + "scroll": 1440 + }, + "singleOuterDialog": true, + "inlineSafeCancel": true, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "reader", + "name": "1440", + "geometry": { + "width": 1440, + "height": 900, + "dpr": 1, + "scroll": 1440 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": false, + "errors": [] + }, + { + "mode": "reconnect", + "name": "390", + "geometry": { + "width": 390, + "height": 900, + "dpr": 1, + "scroll": 390 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "restart", + "name": "390", + "geometry": { + "width": 390, + "height": 900, + "dpr": 1, + "scroll": 390 + }, + "singleOuterDialog": true, + "inlineSafeCancel": true, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "reader", + "name": "390", + "geometry": { + "width": 390, + "height": 900, + "dpr": 1, + "scroll": 390 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": false, + "errors": [] + }, + { + "mode": "reconnect", + "name": "real200-720", + "geometry": { + "width": 720, + "height": 450, + "dpr": 2, + "scroll": 720 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "restart", + "name": "real200-720", + "geometry": { + "width": 720, + "height": 450, + "dpr": 2, + "scroll": 720 + }, + "singleOuterDialog": true, + "inlineSafeCancel": true, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "reader", + "name": "real200-720", + "geometry": { + "width": 720, + "height": 450, + "dpr": 2, + "scroll": 720 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": false, + "errors": [] + } +] diff --git a/docs/ui-consistency/ot13-host-controls/browser-confirmation.log b/docs/ui-consistency/ot13-host-controls/browser-confirmation.log new file mode 100644 index 000000000..f52b2b152 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/browser-confirmation.log @@ -0,0 +1 @@ +PASS 12 actual Hosts control contexts diff --git a/docs/ui-consistency/ot13-host-controls/browser-first.log b/docs/ui-consistency/ot13-host-controls/browser-first.log new file mode 100644 index 000000000..b78bd9ad6 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/browser-first.log @@ -0,0 +1,8 @@ +Traceback (most recent call last): + File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-host-controls/browser.py", line 52, in + for mode in ['reconnect','restart','reader']:case(page,mode,'real200-'+str(w//2)) + ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-host-controls/browser.py", line 37, in case + box=chrome.bounding_box();assert box['x']>=0 and box['x']+box['width']<=geometry['width']+1 and box['y']>=0 and box['y']+box['height']<=geometry['height']+1,(box,geometry) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AssertionError: ({'x': 9, 'y': 440.859375, 'width': 177, 'height': 65.2265625}, {'width': 195, 'height': 450, 'dpr': 2, 'scroll': 195}) diff --git a/docs/ui-consistency/ot13-host-controls/browser.py b/docs/ui-consistency/ot13-host-controls/browser.py new file mode 100644 index 000000000..1d61550ac --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/browser.py @@ -0,0 +1,55 @@ +"""Actual Hosts + DriverStatusPanel over synthetic health/command services.""" +import sys,json,re +from pathlib import Path +from playwright.sync_api import sync_playwright,expect +HERE=Path(__file__).resolve().parent +sys.path.insert(0,'/Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/components/ui-theme/validation/theme-1.0.0/canary') +from browser_zoom import zoom_browser,set_browser_zoom +OUT=HERE/'browser';OUT.mkdir(exist_ok=True);results=[] +BASE='http://127.0.0.1:18142' +def case(page,mode,name): + errors=[];page.on('pageerror',lambda e:errors.append(str(e))) + page.goto(BASE+('/?role=Reader' if mode=='reader' else '/'));expect(page.locator('#ready')).to_have_text('True') + trigger=page.get_by_role('button',name=re.compile('^Controls for Synthetic driver 1')) + trigger.click();d=page.get_by_role('dialog');expect(d).to_have_count(1);expect(d).to_have_attribute('aria-modal','true') + expect(d).to_have_accessible_name('Driver controls');expect(d).to_have_accessible_description(re.compile('Synthetic driver 1')) + close=d.get_by_role('button',name='Close',exact=True);expect(close).to_be_focused() + for _ in range(12): + page.keyboard.press('Tab');assert d.evaluate('(e)=>e.contains(document.activeElement)') + page.get_by_role('button',name='Refresh',exact=True).evaluate('(e)=>e.focus()');assert d.evaluate('(e)=>e.contains(document.activeElement)') + if mode=='reader': + expect(d.get_by_role('button',name='Reconnect',exact=True)).to_have_count(0);expect(d.get_by_role('button',name='Restart',exact=True)).to_have_count(0);expect(page.locator('#requests')).to_have_text('0') + else: + if mode=='restart': + restart=d.get_by_role('button',name='Restart',exact=True);restart.click();group=d.get_by_role('group',name=re.compile('^Restart driver')) + cancel=group.get_by_role('button',name='Cancel',exact=True);expect(cancel).to_be_focused();cancel.click();expect(group).to_have_count(0);expect(restart).to_be_focused();expect(page.locator('#requests')).to_have_text('0') + restart.click();group=d.get_by_role('group',name=re.compile('^Restart driver'));expect(group.get_by_role('button',name='Cancel',exact=True)).to_be_focused();group.get_by_role('button',name='Confirm restart',exact=True).click() + else:d.get_by_role('button',name='Reconnect',exact=True).click() + expect(d).to_have_attribute('aria-busy','true');expect(close).to_be_disabled();expect(d.get_by_role('button',name='Close Driver controls',exact=True)).to_be_disabled() + page.wait_for_function("document.querySelector('[role=dialog]').contains(document.activeElement)") + for _ in range(3):page.keyboard.press('Tab');assert d.evaluate('(e)=>e.contains(document.activeElement)') + page.keyboard.press('Escape');expect(d).to_have_count(1) + expect(d).to_have_attribute('aria-busy','false',timeout=10000);expect(close).to_be_enabled();expect(page.locator('#requests')).to_have_text('1') + expect(page.locator('#operation')).to_have_text(re.compile(('Restart' if mode=='restart' else 'Reconnect')+':synthetic-driver-with-a-deliberately-long-identifier-for-local-reflow-a')) + expect(d.get_by_role('status')).to_have_text(('Restart' if mode=='restart' else 'Reconnect')+' dispatched') + geometry=page.evaluate('({width:innerWidth,height:innerHeight,dpr:devicePixelRatio,scroll:document.documentElement.scrollWidth})');assert geometry['scroll']<=geometry['width'],geometry + for chrome in d.locator('.modal-header,.modal-footer').all(): + box=chrome.bounding_box();assert box['x']>=0 and box['x']+box['width']<=geometry['width']+1 and box['y']>=0 and box['y']+box['height']<=geometry['height']+1,(box,geometry) + page.screenshot(path=str(OUT/(mode+'-'+name+'.png'))) + page.keyboard.press('Escape');expect(d).to_have_count(0);expect(trigger).to_be_focused() + assert not errors,errors + results.append(dict(mode=mode,name=name,geometry=geometry,singleOuterDialog=True,inlineSafeCancel=(mode=='restart'),busyCloseGuard=(mode!='reader'),errors=errors));(OUT/'results.json').write_text(json.dumps(results,indent=2)+'\n') +if __name__=='__main__': + with sync_playwright() as p: + b=p.chromium.launch() + for w in [1440,390]: + for mode in ['reconnect','restart','reader']: + c=b.new_context(viewport={'width':w,'height':900});case(c.new_page(),mode,str(w));c.close() + b.close() + with zoom_browser(p) as (c,worker): + page=c.new_page() + for w in [1440,390]: + page.set_viewport_size({'width':w,'height':900});page.goto(BASE);assert set_browser_zoom(worker,page,2)==2 + for mode in ['reconnect','restart','reader']:case(page,mode,'real200-'+str(w//2)) + set_browser_zoom(worker,page,1) + print('PASS',len(results),'actual Hosts control contexts') diff --git a/docs/ui-consistency/ot13-host-controls/browser/reader-1440.png b/docs/ui-consistency/ot13-host-controls/browser/reader-1440.png new file mode 100644 index 000000000..582c095b2 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/reader-1440.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/reader-390.png b/docs/ui-consistency/ot13-host-controls/browser/reader-390.png new file mode 100644 index 000000000..bf05adccf Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/reader-390.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/reader-real200-195.png b/docs/ui-consistency/ot13-host-controls/browser/reader-real200-195.png new file mode 100644 index 000000000..3cdfab3d2 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/reader-real200-195.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/reader-real200-720.png b/docs/ui-consistency/ot13-host-controls/browser/reader-real200-720.png new file mode 100644 index 000000000..4b92a57c5 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/reader-real200-720.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/reconnect-1440.png b/docs/ui-consistency/ot13-host-controls/browser/reconnect-1440.png new file mode 100644 index 000000000..9378f0275 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/reconnect-1440.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/reconnect-390.png b/docs/ui-consistency/ot13-host-controls/browser/reconnect-390.png new file mode 100644 index 000000000..17eb8763c Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/reconnect-390.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/reconnect-real200-195.png b/docs/ui-consistency/ot13-host-controls/browser/reconnect-real200-195.png new file mode 100644 index 000000000..615844845 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/reconnect-real200-195.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/reconnect-real200-720.png b/docs/ui-consistency/ot13-host-controls/browser/reconnect-real200-720.png new file mode 100644 index 000000000..2a3c42aa1 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/reconnect-real200-720.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/restart-1440.png b/docs/ui-consistency/ot13-host-controls/browser/restart-1440.png new file mode 100644 index 000000000..b27689953 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/restart-1440.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/restart-390.png b/docs/ui-consistency/ot13-host-controls/browser/restart-390.png new file mode 100644 index 000000000..22a5bd937 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/restart-390.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/restart-real200-195.png b/docs/ui-consistency/ot13-host-controls/browser/restart-real200-195.png new file mode 100644 index 000000000..615844845 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/restart-real200-195.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/restart-real200-720.png b/docs/ui-consistency/ot13-host-controls/browser/restart-real200-720.png new file mode 100644 index 000000000..058005fce Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/browser/restart-real200-720.png differ diff --git a/docs/ui-consistency/ot13-host-controls/browser/results.json b/docs/ui-consistency/ot13-host-controls/browser/results.json new file mode 100644 index 000000000..044edfa43 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/browser/results.json @@ -0,0 +1,170 @@ +[ + { + "mode": "reconnect", + "name": "1440", + "geometry": { + "width": 1440, + "height": 900, + "dpr": 1, + "scroll": 1440 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "restart", + "name": "1440", + "geometry": { + "width": 1440, + "height": 900, + "dpr": 1, + "scroll": 1440 + }, + "singleOuterDialog": true, + "inlineSafeCancel": true, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "reader", + "name": "1440", + "geometry": { + "width": 1440, + "height": 900, + "dpr": 1, + "scroll": 1440 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": false, + "errors": [] + }, + { + "mode": "reconnect", + "name": "390", + "geometry": { + "width": 390, + "height": 900, + "dpr": 1, + "scroll": 390 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "restart", + "name": "390", + "geometry": { + "width": 390, + "height": 900, + "dpr": 1, + "scroll": 390 + }, + "singleOuterDialog": true, + "inlineSafeCancel": true, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "reader", + "name": "390", + "geometry": { + "width": 390, + "height": 900, + "dpr": 1, + "scroll": 390 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": false, + "errors": [] + }, + { + "mode": "reconnect", + "name": "real200-720", + "geometry": { + "width": 720, + "height": 450, + "dpr": 2, + "scroll": 720 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "restart", + "name": "real200-720", + "geometry": { + "width": 720, + "height": 450, + "dpr": 2, + "scroll": 720 + }, + "singleOuterDialog": true, + "inlineSafeCancel": true, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "reader", + "name": "real200-720", + "geometry": { + "width": 720, + "height": 450, + "dpr": 2, + "scroll": 720 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": false, + "errors": [] + }, + { + "mode": "reconnect", + "name": "real200-195", + "geometry": { + "width": 195, + "height": 450, + "dpr": 2, + "scroll": 195 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "restart", + "name": "real200-195", + "geometry": { + "width": 195, + "height": 450, + "dpr": 2, + "scroll": 195 + }, + "singleOuterDialog": true, + "inlineSafeCancel": true, + "busyCloseGuard": true, + "errors": [] + }, + { + "mode": "reader", + "name": "real200-195", + "geometry": { + "width": 195, + "height": 450, + "dpr": 2, + "scroll": 195 + }, + "singleOuterDialog": true, + "inlineSafeCancel": false, + "busyCloseGuard": false, + "errors": [] + } +] diff --git a/docs/ui-consistency/ot13-host-controls/canary/Components/App.razor b/docs/ui-consistency/ot13-host-controls/canary/Components/App.razor new file mode 100644 index 000000000..18c874b14 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/canary/Components/App.razor @@ -0,0 +1,4 @@ + +Local raw workflow fixture + + diff --git a/docs/ui-consistency/ot13-host-controls/canary/Components/Pilot.razor b/docs/ui-consistency/ot13-host-controls/canary/Components/Pilot.razor new file mode 100644 index 000000000..62f82ae22 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/canary/Components/Pilot.razor @@ -0,0 +1,18 @@ +@page "/" +@rendermode InteractiveServer +@implements IDisposable +@inject FixtureState State + +

Local synthetic driver health and commands. No device, broker, SQL, deployment or real actor operations.

+@_ready@State.Requests@State.LastOperation + +
+
+@code { + [SupplyParameterFromQuery(Name="role")]public string? Role {get;set;} + private bool _ready; + protected override void OnInitialized(){State.Role=Role??"Operator";State.Changed+=Changed;} + private void Changed()=>_=InvokeAsync(StateHasChanged); + protected override void OnAfterRender(bool firstRender){if(firstRender){_ready=true;StateHasChanged();}} + public void Dispose()=>State.Changed-=Changed; +} diff --git a/docs/ui-consistency/ot13-host-controls/canary/Components/_Imports.razor b/docs/ui-consistency/ot13-host-controls/canary/Components/_Imports.razor new file mode 100644 index 000000000..6bb1ae040 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/canary/Components/_Imports.razor @@ -0,0 +1,6 @@ +@using Microsoft.AspNetCore.Components +@using Microsoft.AspNetCore.Components.Web +@using Microsoft.AspNetCore.Components.Routing +@using static Microsoft.AspNetCore.Components.Web.RenderMode +@using ZB.MOM.WW.Theme +@using HostControlsCanary diff --git a/docs/ui-consistency/ot13-host-controls/canary/HostControlsCanary.csproj b/docs/ui-consistency/ot13-host-controls/canary/HostControlsCanary.csproj new file mode 100644 index 000000000..b12c60f41 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/canary/HostControlsCanary.csproj @@ -0,0 +1 @@ +net10.0enableenableHostControlsCanary diff --git a/docs/ui-consistency/ot13-host-controls/canary/Program.cs b/docs/ui-consistency/ot13-host-controls/canary/Program.cs new file mode 100644 index 000000000..a08c3e678 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/canary/Program.cs @@ -0,0 +1,64 @@ +using System.Reflection; +using System.Security.Claims; +using Akka.Actor; +using Akka.Configuration; +using HostControlsCanary; +using HostControlsCanary.Components; +using Microsoft.AspNetCore.Components.Authorization; +using Microsoft.AspNetCore.DataProtection; +using Microsoft.EntityFrameworkCore; +using ZB.MOM.WW.OtOpcUa.AdminUI.Hosts; +using ZB.MOM.WW.OtOpcUa.AdminUI.Hubs; +using ZB.MOM.WW.OtOpcUa.Commons.Interfaces; +using ZB.MOM.WW.OtOpcUa.Commons.Messages.Admin; +using ZB.MOM.WW.OtOpcUa.Configuration; +var builder=WebApplication.CreateBuilder(args);builder.WebHost.UseStaticWebAssets(); +builder.Services.AddRazorComponents().AddInteractiveServerComponents();builder.Services.AddDataProtection().UseEphemeralDataProtectionProvider(); +builder.Services.AddAuthorizationCore(o=>o.AddPolicy(ZB.MOM.WW.OtOpcUa.Security.Auth.AdminUiPolicies.DriverOperator,p=>p.RequireRole("Operator","Administrator"))); +builder.Services.AddScoped();builder.Services.AddScoped(); +builder.Services.AddScoped(sp=>FixtureOperations.Create(sp.GetRequiredService())); +builder.Services.AddDbContextFactory(o=>o.UseInMemoryDatabase("host-controls-local")); +builder.Services.AddScoped();builder.Services.AddSingleton(); +var status=new InMemoryDriverStatusSnapshotStore(); +foreach(var id in FixtureState.DriverIds)status.Upsert(new("synthetic-cluster",id,"Healthy",DateTime.UtcNow,null,0,DateTime.UtcNow)); +builder.Services.AddSingleton(status); +var actors=ActorSystem.Create("host-controls-local",ConfigurationFactory.ParseString(""" + akka.actor.provider = cluster + akka.remote.dot-netty.tcp.hostname = "127.0.0.1" + akka.remote.dot-netty.tcp.port = 0 + akka.cluster.seed-nodes = [] + akka.loglevel = ERROR + """));builder.Services.AddSingleton(actors); +var app=builder.Build();app.Lifetime.ApplicationStopping.Register(()=>_=actors.Terminate()); +using(var scope=app.Services.CreateScope()) +{ + using var db=scope.ServiceProvider.GetRequiredService>().CreateDbContext(); + for(var i=0;i().AddInteractiveServerRenderMode();app.Run(); +namespace HostControlsCanary +{ + public sealed class FixtureState + { + public static readonly string[] DriverIds=["synthetic-driver-with-a-deliberately-long-identifier-for-local-reflow-a","synthetic-driver-b"]; + public string Role {get;set;}="Operator";public int Requests {get;set;}public string? LastOperation {get;set;}public event Action? Changed;public void Notify()=>Changed?.Invoke(); + } + public sealed class FixturePrincipal(FixtureState state):AuthenticationStateProvider + {public override Task GetAuthenticationStateAsync()=>Task.FromResult(new AuthenticationState(new ClaimsPrincipal(new ClaimsIdentity([new(ClaimTypes.Name,"synthetic-operator"),new(ClaimTypes.Role,state.Role)],"fixture"))));} + public class FixtureOperations:DispatchProxy + { + private FixtureState _state=null!; + public static IAdminOperationsClient Create(FixtureState state){var proxy=Create();((FixtureOperations)proxy)._state=state;return proxy;} + protected override object? Invoke(MethodInfo? method,object?[]? args) + { + if(method!.Name!="AskAsync")throw new NotSupportedException("Fixture refuses "+method.Name); + var result=method.GetGenericArguments().Single(); + if(result==typeof(ReconnectDriverResult)&&args![0] is ReconnectDriver reconnect)return Reconnect(reconnect); + if(result==typeof(RestartDriverResult)&&args![0] is RestartDriver restart)return Restart(restart); + throw new NotSupportedException("Fixture refuses operation message"); + } + private async Task Reconnect(ReconnectDriver command){_state.Requests++;_state.LastOperation="Reconnect:"+command.DriverInstanceId;_state.Notify();await Task.Delay(900);return new(true,null,command.CorrelationId);} + private async Task Restart(RestartDriver command){_state.Requests++;_state.LastOperation="Restart:"+command.DriverInstanceId;_state.Notify();await Task.Delay(900);return new(true,null,command.CorrelationId);} + } +} diff --git a/docs/ui-consistency/ot13-host-controls/capture-footer-red.py b/docs/ui-consistency/ot13-host-controls/capture-footer-red.py new file mode 100644 index 000000000..ea97dc14b --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/capture-footer-red.py @@ -0,0 +1,17 @@ +"""Capture the still-running pre-correction fixture's actual narrow footer defect.""" +import browser +from playwright.sync_api import sync_playwright +with sync_playwright() as p: + with browser.zoom_browser(p) as (ctx,worker): + page=ctx.new_page();page.set_viewport_size({'width':390,'height':900});page.goto(browser.BASE);assert browser.set_browser_zoom(worker,page,2)==2 + # The running old DLL still exposes metadata in its header. It predates the description fix. + page.wait_for_selector('#ready');page.get_by_role('button',name=browser.re.compile('^Controls for Synthetic driver 1')).click() + d=page.get_by_role('dialog');browser.expect(d.get_by_role('button',name='Close',exact=True)).to_be_focused() + assert 'synthetic-driver-with-a-deliberately-long' in d.locator('.modal-header').inner_text() + d.get_by_role('button',name='Reconnect',exact=True).click();browser.expect(d).to_have_attribute('aria-busy','false',timeout=10000) + browser.expect(d.get_by_role('status')).to_have_text('Reconnect dispatched') + data=page.evaluate('''()=>({viewport:{width:innerWidth,height:innerHeight,dpr:devicePixelRatio},chrome:[...document.querySelectorAll('.modal-header,.modal-footer')].map(e=>({class:e.className,y:e.getBoundingClientRect().y,bottom:e.getBoundingClientRect().bottom}))})''') + page.screenshot(path=str(browser.HERE/'footer-real200-red.png'));(browser.HERE/'footer-real200-red.json').write_text(browser.json.dumps(data,indent=2)+'\n') + assert any(c['y']<0 or c['bottom']>data['viewport']['height'] for c in data['chrome']),data + browser.set_browser_zoom(worker,page,1) +print('CONFIRMED old header metadata clips narrow footer') diff --git a/docs/ui-consistency/ot13-host-controls/capture-native-zoom.py b/docs/ui-consistency/ot13-host-controls/capture-native-zoom.py new file mode 100644 index 000000000..62277ea22 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/capture-native-zoom.py @@ -0,0 +1,18 @@ +"""Capture the actual Chromium surface at native zoom without Playwright's clip framing.""" +import browser,base64 +from playwright.sync_api import sync_playwright +out=browser.HERE/'native-zoom';out.mkdir(exist_ok=True);results=[] +with sync_playwright() as p: + with browser.zoom_browser(p) as (ctx,worker): + page=ctx.new_page();cdp=ctx.new_cdp_session(page) + for width in [1440,390]: + page.set_viewport_size({'width':width,'height':900});page.goto(browser.BASE+'/?role=Reader');assert browser.set_browser_zoom(worker,page,2)==2 + browser.expect(page.locator('#ready')).to_have_text('True');trigger=page.get_by_role('button',name=browser.re.compile('^Controls for Synthetic driver 1'));trigger.click();d=page.get_by_role('dialog');browser.expect(d.get_by_role('button',name='Close',exact=True)).to_be_focused();page.wait_for_timeout(600) + geometry=page.evaluate('''()=>({width:innerWidth,height:innerHeight,dpr:devicePixelRatio,scrollY,chrome:[...document.querySelectorAll('.modal-header,.modal-footer')].map(e=>({class:e.className,x:e.getBoundingClientRect().x,y:e.getBoundingClientRect().y,width:e.getBoundingClientRect().width,bottom:e.getBoundingClientRect().bottom}))})''') + assert geometry['width']==width//2 and geometry['dpr']==2 + assert all(c['y']>=0 and c['bottom']<=geometry['height']+1 for c in geometry['chrome']),geometry + raw=cdp.send('Page.captureScreenshot',{'format':'png','fromSurface':True,'captureBeyondViewport':False});(out/(str(width//2)+'.png')).write_bytes(base64.b64decode(raw['data'])) + page.keyboard.press('Escape');browser.expect(d).to_have_count(0);browser.expect(trigger).to_be_focused();results.append(geometry) + browser.set_browser_zoom(worker,page,1) +(out/'results.json').write_text(browser.json.dumps(results,indent=2)+'\n') +print('PASS2 native Chromium surface captures with fixed chrome and keyboard return') diff --git a/docs/ui-consistency/ot13-host-controls/capture-zoom.py b/docs/ui-consistency/ot13-host-controls/capture-zoom.py new file mode 100644 index 000000000..155a55b9c --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/capture-zoom.py @@ -0,0 +1,19 @@ +"""Confirm the fixed dialog geometry and preserve native-zoom viewport captures.""" +import browser +from playwright.sync_api import sync_playwright +out=browser.HERE/'zoom-captures';out.mkdir(exist_ok=True);results=[] +with sync_playwright() as p: + with browser.zoom_browser(p) as (ctx,worker): + page=ctx.new_page() + for width in [1440,390]: + page.set_viewport_size({'width':width,'height':900});page.goto(browser.BASE+'/?role=Reader');assert browser.set_browser_zoom(worker,page,2)==2 + browser.expect(page.locator('#ready')).to_have_text('True');page.get_by_role('button',name=browser.re.compile('^Controls for Synthetic driver 1')).click();d=page.get_by_role('dialog');browser.expect(d.get_by_role('button',name='Close',exact=True)).to_be_focused();page.wait_for_timeout(600) + measure=lambda:page.evaluate('''()=>({scrollY,viewport:{width:innerWidth,height:innerHeight,dpr:devicePixelRatio},chrome:[...document.querySelectorAll('.modal-header,.modal-footer')].map(e=>({class:e.className,x:e.getBoundingClientRect().x,y:e.getBoundingClientRect().y,width:e.getBoundingClientRect().width,bottom:e.getBoundingClientRect().bottom}))})''') + before=measure();page.screenshot(path=str(out/(str(width//2)+'-before-scroll-normalization.png'))) + page.evaluate('window.scrollTo(0,0)');page.wait_for_timeout(100);after=measure() + assert before['chrome']==after['chrome'],(before,after) + assert all(c['y']>=0 and c['bottom']<=after['viewport']['height']+1 for c in after['chrome']),after + page.screenshot(path=str(out/(str(width//2)+'-viewport.png')));results.append(dict(before=before,after=after)) + browser.set_browser_zoom(worker,page,1) +(out/'results.json').write_text(browser.json.dumps(results,indent=2)+'\n') +print('PASS2 fixed-header/footer zoom capture confirmations; geometry unchanged by background scroll normalization') diff --git a/docs/ui-consistency/ot13-host-controls/cdp-captures/surface.png b/docs/ui-consistency/ot13-host-controls/cdp-captures/surface.png new file mode 100644 index 000000000..3caa28b5a Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/cdp-captures/surface.png differ diff --git a/docs/ui-consistency/ot13-host-controls/close-render-red.log b/docs/ui-consistency/ot13-host-controls/close-render-red.log new file mode 100644 index 000000000..8f4cf7b23 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/close-render-red.log @@ -0,0 +1,92 @@ + + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +[xUnit.net 00:00:01.81] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion [FAIL] +[xUnit.net 00:00:01.84] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext [FAIL] +[xUnit.net 00:00:01.86] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.RetainedCloseFromA_CannotCloseReplacementB [FAIL] + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion [683 ms] + Error Message: + Bunit.ElementNotFoundException : No elements were found that matches the selector '[role=dialog]' + 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.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 96 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 98 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 102 +--- End of stack trace from previous location --- + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext [33 ms] + Error Message: + Shouldly.ShouldAssertException : dialog.GetAttribute("aria-modal") + should be +"true" + but was +null + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 63 + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 67 + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options) +--- End of stack trace from previous location --- + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options) + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.RetainedCloseFromA_CannotCloseReplacementB [12 ms] + Error Message: + Bunit.ElementNotFoundException : No elements were found that matches the selector '[role=dialog]' + 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.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.RetainedCloseFromA_CannotCloseReplacementB() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 78 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.RetainedCloseFromA_CannotCloseReplacementB() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 80 +--- End of stack trace from previous location --- + +Failed! - Failed: 3, Passed: 0, Skipped: 0, Total: 3, Duration: 748 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/docs/ui-consistency/ot13-host-controls/final-fixture-build.log b/docs/ui-consistency/ot13-host-controls/final-fixture-build.log new file mode 100644 index 000000000..37b698063 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/final-fixture-build.log @@ -0,0 +1,45 @@ + + ZB.MOM.WW.OtOpcUa.Analyzers -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.AdminUI.dll + HostControlsCanary -> /tmp/ot13-host-root-canary-out/HostControlsCanary.dll + +Build succeeded. + 0 Warning(s) + 0 Error(s) + +Time Elapsed 00:00:10.33 diff --git a/docs/ui-consistency/ot13-host-controls/fixture-build.log b/docs/ui-consistency/ot13-host-controls/fixture-build.log new file mode 100644 index 000000000..ca83513f4 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/fixture-build.log @@ -0,0 +1,84 @@ + + Determining projects to restore... + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.csproj (in 72 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Abstractions/ZB.MOM.WW.OtOpcUa.Core.Abstractions.csproj (in 76 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.csproj (in 73 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.csproj (in 87 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.csproj (in 86 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.csproj (in 87 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.csproj (in 79 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.csproj (in 13 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.csproj (in 3 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.csproj (in 170 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.csproj (in 63 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.csproj (in 2 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.csproj (in 1 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.csproj (in 195 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Commons/ZB.MOM.WW.OtOpcUa.Commons.csproj (in 195 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.csproj (in 7 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Tooling/ZB.MOM.WW.OtOpcUa.Analyzers/ZB.MOM.WW.OtOpcUa.Analyzers.csproj (in 111 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.csproj (in 39 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.csproj (in 115 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting/ZB.MOM.WW.OtOpcUa.Core.Scripting.csproj (in 234 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.csproj (in 236 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.csproj (in 16 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.csproj (in 61 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core/ZB.MOM.WW.OtOpcUa.Core.csproj (in 261 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.csproj (in 39 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer/ZB.MOM.WW.OtOpcUa.OpcUaServer.csproj (in 155 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.csproj (in 8 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.csproj (in 125 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Cluster/ZB.MOM.WW.OtOpcUa.Cluster.csproj (in 54 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Security/ZB.MOM.WW.OtOpcUa.Security.csproj (in 139 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.ControlPlane/ZB.MOM.WW.OtOpcUa.ControlPlane.csproj (in 28 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.csproj (in 21 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.csproj (in 23 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/ZB.MOM.WW.OtOpcUa.Runtime.csproj (in 185 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-host-controls/canary/HostControlsCanary.csproj (in 281 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.csproj (in 49 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/ZB.MOM.WW.OtOpcUa.AdminUI.csproj (in 60 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Configuration/ZB.MOM.WW.OtOpcUa.Configuration.csproj (in 122 ms). + ZB.MOM.WW.OtOpcUa.Analyzers -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Commons -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Security -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Core -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /tmp/ot13-host-root-canary-out/ZB.MOM.WW.OtOpcUa.AdminUI.dll + HostControlsCanary -> /tmp/ot13-host-root-canary-out/HostControlsCanary.dll + +Build succeeded. + 0 Warning(s) + 0 Error(s) + +Time Elapsed 00:00:10.92 diff --git a/docs/ui-consistency/ot13-host-controls/footer-capture-confirmed.log b/docs/ui-consistency/ot13-host-controls/footer-capture-confirmed.log new file mode 100644 index 000000000..2e0d0c0b4 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/footer-capture-confirmed.log @@ -0,0 +1 @@ +CONFIRMED old header metadata clips narrow footer diff --git a/docs/ui-consistency/ot13-host-controls/footer-capture-import-harness.log b/docs/ui-consistency/ot13-host-controls/footer-capture-import-harness.log new file mode 100644 index 000000000..5d632f168 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/footer-capture-import-harness.log @@ -0,0 +1,39 @@ +Traceback (most recent call last): + File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-host-controls/capture-footer-red.py", line 2, in + import browser + File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-host-controls/browser.py", line 46, in + c=b.new_context(viewport={'width':w,'height':900});case(c.new_page(),mode,str(w));c.close() + ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-host-controls/browser.py", line 15, in case + expect(d).to_have_accessible_name('Driver controls');expect(d).to_have_accessible_description(re.compile('Synthetic driver 1')) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ + File "/opt/homebrew/lib/python3.14/site-packages/playwright/sync_api/_generated.py", line 20756, in to_have_accessible_name + self._sync( + ~~~~~~~~~~^ + self._impl_obj.to_have_accessible_name( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + name=name, ignoreCase=ignore_case, timeout=timeout + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + ) + ^ + ) + ^ + File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_sync_base.py", line 115, in _sync + return task.result() + ~~~~~~~~~~~^^ + File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_assertions.py", line 858, in to_have_accessible_name + await self._expect_impl( + ...<5 lines>... + ) + File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_assertions.py", line 85, in _expect_impl + raise AssertionError( + f"{out_message}\nActual value: {actual}{error_message} {format_call_log(result.get('log'))}" + ) +AssertionError: Locator expected to have accessible name +Actual value: Driver controls · Synthetic driver 1 synthetic-driver-with-a-deliberately-long-identifier-for-local-reflow-a synthetic-cluster +Call log: + - Expect "to_have_accessible_name" with timeout 5000ms + - waiting for get_by_role("dialog") + 9 × locator resolved to + - unexpected value "Driver controls · Synthetic driver 1 synthetic-driver-with-a-deliberately-long-identifier-for-local-reflow-a synthetic-cluster" + diff --git a/docs/ui-consistency/ot13-host-controls/footer-capture.log b/docs/ui-consistency/ot13-host-controls/footer-capture.log new file mode 100644 index 000000000..0cbe14e04 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/footer-capture.log @@ -0,0 +1,5 @@ +Traceback (most recent call last): + File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-host-controls/capture-footer-red.py", line 15, in + assert data['chrome'][1]['bottom']>data['viewport']['height'],data + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AssertionError: {'viewport': {'width': 195, 'height': 450, 'dpr': 2}, 'chrome': [{'class': 'modal-header', 'y': -60.5, 'bottom': 343.859375}, {'class': 'modal-footer', 'y': 375.859375, 'bottom': 441.0859375}]} diff --git a/docs/ui-consistency/ot13-host-controls/footer-real200-red.json b/docs/ui-consistency/ot13-host-controls/footer-real200-red.json new file mode 100644 index 000000000..70cadd1e0 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/footer-real200-red.json @@ -0,0 +1,19 @@ +{ + "viewport": { + "width": 195, + "height": 450, + "dpr": 2 + }, + "chrome": [ + { + "class": "modal-header", + "y": -60.5, + "bottom": 343.859375 + }, + { + "class": "modal-footer", + "y": 375.859375, + "bottom": 441.0859375 + } + ] +} diff --git a/docs/ui-consistency/ot13-host-controls/footer-real200-red.png b/docs/ui-consistency/ot13-host-controls/footer-real200-red.png new file mode 100644 index 000000000..db223a08b Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/footer-real200-red.png differ diff --git a/docs/ui-consistency/ot13-host-controls/green.log b/docs/ui-consistency/ot13-host-controls/green.log new file mode 100644 index 000000000..2e1cc2e27 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/green.log @@ -0,0 +1,52 @@ + + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. + +Passed! - Failed: 0, Passed: 21, Skipped: 0, Total: 21, Duration: 1 s - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/docs/ui-consistency/ot13-host-controls/native-zoom.log b/docs/ui-consistency/ot13-host-controls/native-zoom.log new file mode 100644 index 000000000..8120b2d3a --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/native-zoom.log @@ -0,0 +1 @@ +PASS2 native Chromium surface captures with fixed chrome and keyboard return diff --git a/docs/ui-consistency/ot13-host-controls/native-zoom/195.png b/docs/ui-consistency/ot13-host-controls/native-zoom/195.png new file mode 100644 index 000000000..6cd852e31 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/native-zoom/195.png differ diff --git a/docs/ui-consistency/ot13-host-controls/native-zoom/720.png b/docs/ui-consistency/ot13-host-controls/native-zoom/720.png new file mode 100644 index 000000000..6251bc878 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/native-zoom/720.png differ diff --git a/docs/ui-consistency/ot13-host-controls/native-zoom/results.json b/docs/ui-consistency/ot13-host-controls/native-zoom/results.json new file mode 100644 index 000000000..6e70182c6 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/native-zoom/results.json @@ -0,0 +1,46 @@ +[ + { + "width": 720, + "height": 450, + "dpr": 2, + "scrollY": 130, + "chrome": [ + { + "class": "modal-header", + "x": 111, + "y": 29, + "width": 498, + "bottom": 92 + }, + { + "class": "modal-footer", + "x": 111, + "y": 321.9296875, + "width": 498, + "bottom": 387.15625 + } + ] + }, + { + "width": 195, + "height": 450, + "dpr": 2, + "scrollY": 660, + "chrome": [ + { + "class": "modal-header", + "x": 9, + "y": 9, + "width": 177, + "bottom": 102 + }, + { + "class": "modal-footer", + "x": 9, + "y": 375.7734375, + "width": 177, + "bottom": 441 + } + ] + } +] diff --git a/docs/ui-consistency/ot13-host-controls/opacity-observation.json b/docs/ui-consistency/ot13-host-controls/opacity-observation.json new file mode 100644 index 000000000..4e2151af5 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/opacity-observation.json @@ -0,0 +1,41 @@ +[ + { + "text": "Healthy", + "style": "opacity:0.5;", + "color": "rgb(35, 111, 52)", + "background": "rgb(233, 246, 236)", + "ancestors": [ + { + "tag": "SPAN", + "cls": "chip chip-ok", + "opacity": "0.5" + } + ] + }, + { + "text": "Healthy", + "style": null, + "color": "rgb(35, 111, 52)", + "background": "rgb(233, 246, 236)", + "ancestors": [ + { + "tag": "DIV", + "cls": "", + "opacity": "0.5" + } + ] + }, + { + "text": "stale", + "style": null, + "color": "rgb(83, 93, 102)", + "background": "rgb(238, 240, 242)", + "ancestors": [ + { + "tag": "DIV", + "cls": "", + "opacity": "0.5" + } + ] + } +] diff --git a/docs/ui-consistency/ot13-host-controls/read-state-boundaries.json b/docs/ui-consistency/ot13-host-controls/read-state-boundaries.json new file mode 100644 index 000000000..88e314f3c --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/read-state-boundaries.json @@ -0,0 +1,15 @@ +{ + "source": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor", + "sha256": "34c12139f540ed5abeea87709a34ee44c87a239e855e22edc67cb99ceb3216fa", + "checks": { + "protected override async Task OnInitializedAsync()": true, + "private async Task TickAsync()": true, + "private async Task RefreshAsync()": true, + "private async Task LoadConfigAsync()": true, + "private void RebuildDriverGroups()": true, + "private (HostsClusterGroup? Group, HostsDriverRow? Driver) FindControlsDriver()": true, + "private void Refresh()": true, + "public async ValueTask DisposeAsync()": true + }, + "review": "Independent peer comparison approved all eight read/lifecycle bodies, including expression-bodied RebuildDriverGroups." +} diff --git a/docs/ui-consistency/ot13-host-controls/red.log b/docs/ui-consistency/ot13-host-controls/red.log new file mode 100644 index 000000000..2a23f2bd8 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/red.log @@ -0,0 +1,90 @@ + + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +[xUnit.net 00:00:01.85] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion [FAIL] +[xUnit.net 00:00:01.89] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext [FAIL] +[xUnit.net 00:00:01.90] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.RetainedCloseFromA_CannotCloseReplacementB [FAIL] + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion [703 ms] + Error Message: + System.InvalidOperationException : No actual close callback was captured + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.CaptureClose(Hosts instance) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 123 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 95 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 98 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.PendingRealPanelCommand_BlocksParentCloseUntilCompletion() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 102 +--- End of stack trace from previous location --- + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext [38 ms] + Error Message: + Shouldly.ShouldAssertException : dialog.GetAttribute("aria-modal") + should be +"true" + but was +null + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 63 + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.Controls_IsNamedWithSafeCloseAndPreservesDriverContext() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 67 + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options) +--- End of stack trace from previous location --- + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options) + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.RetainedCloseFromA_CannotCloseReplacementB [10 ms] + Error Message: + System.InvalidOperationException : No actual close callback was captured + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.CaptureClose(Hosts instance) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 123 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.RetainedCloseFromA_CannotCloseReplacementB() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 76 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.HostsControlsModalTests.RetainedCloseFromA_CannotCloseReplacementB() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs:line 80 +--- End of stack trace from previous location --- + +Failed! - Failed: 3, Passed: 0, Skipped: 0, Total: 3, Duration: 769 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/docs/ui-consistency/ot13-host-controls/runtime-parity.json b/docs/ui-consistency/ot13-host-controls/runtime-parity.json new file mode 100644 index 000000000..19ff0b1c8 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/runtime-parity.json @@ -0,0 +1,5 @@ +{ + "dialogFocusSourceAndHttpSha256": "7f63bd6c5181d0b70edc2e87e086fab4dfba96adabd7a19737f9b3b4f18296d5", + "hostsSourceSha256": "34c12139f540ed5abeea87709a34ee44c87a239e855e22edc67cb99ceb3216fa", + "privateFixtureOnly": true +} diff --git a/docs/ui-consistency/ot13-host-controls/zoom-captures.log b/docs/ui-consistency/ot13-host-controls/zoom-captures.log new file mode 100644 index 000000000..025f26874 --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/zoom-captures.log @@ -0,0 +1 @@ +PASS2 fixed-header/footer zoom capture confirmations; geometry unchanged by background scroll normalization diff --git a/docs/ui-consistency/ot13-host-controls/zoom-captures/195-before-scroll-normalization.png b/docs/ui-consistency/ot13-host-controls/zoom-captures/195-before-scroll-normalization.png new file mode 100644 index 000000000..bbe844c30 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/zoom-captures/195-before-scroll-normalization.png differ diff --git a/docs/ui-consistency/ot13-host-controls/zoom-captures/195-viewport.png b/docs/ui-consistency/ot13-host-controls/zoom-captures/195-viewport.png new file mode 100644 index 000000000..740c43cc3 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/zoom-captures/195-viewport.png differ diff --git a/docs/ui-consistency/ot13-host-controls/zoom-captures/720-before-scroll-normalization.png b/docs/ui-consistency/ot13-host-controls/zoom-captures/720-before-scroll-normalization.png new file mode 100644 index 000000000..36eb73302 Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/zoom-captures/720-before-scroll-normalization.png differ diff --git a/docs/ui-consistency/ot13-host-controls/zoom-captures/720-viewport.png b/docs/ui-consistency/ot13-host-controls/zoom-captures/720-viewport.png new file mode 100644 index 000000000..6f555775a Binary files /dev/null and b/docs/ui-consistency/ot13-host-controls/zoom-captures/720-viewport.png differ diff --git a/docs/ui-consistency/ot13-host-controls/zoom-captures/results.json b/docs/ui-consistency/ot13-host-controls/zoom-captures/results.json new file mode 100644 index 000000000..3fe253dce --- /dev/null +++ b/docs/ui-consistency/ot13-host-controls/zoom-captures/results.json @@ -0,0 +1,102 @@ +[ + { + "before": { + "scrollY": 130, + "viewport": { + "width": 720, + "height": 450, + "dpr": 2 + }, + "chrome": [ + { + "class": "modal-header", + "x": 111, + "y": 29, + "width": 498, + "bottom": 92 + }, + { + "class": "modal-footer", + "x": 111, + "y": 321.9296875, + "width": 498, + "bottom": 387.15625 + } + ] + }, + "after": { + "scrollY": 43, + "viewport": { + "width": 720, + "height": 450, + "dpr": 2 + }, + "chrome": [ + { + "class": "modal-header", + "x": 111, + "y": 29, + "width": 498, + "bottom": 92 + }, + { + "class": "modal-footer", + "x": 111, + "y": 321.9296875, + "width": 498, + "bottom": 387.15625 + } + ] + } + }, + { + "before": { + "scrollY": 660, + "viewport": { + "width": 195, + "height": 450, + "dpr": 2 + }, + "chrome": [ + { + "class": "modal-header", + "x": 9, + "y": 9, + "width": 177, + "bottom": 102 + }, + { + "class": "modal-footer", + "x": 9, + "y": 375.7734375, + "width": 177, + "bottom": 441 + } + ] + }, + "after": { + "scrollY": 587, + "viewport": { + "width": 195, + "height": 450, + "dpr": 2 + }, + "chrome": [ + { + "class": "modal-header", + "x": 9, + "y": 9, + "width": 177, + "bottom": 102 + }, + { + "class": "modal-footer", + "x": 9, + "y": 375.7734375, + "width": 177, + "bottom": 441 + } + ] + } + } +] diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor index ec364c7b2..7cf740e39 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor @@ -295,6 +295,7 @@ else Reconnect/Restart buttons on DriverOperator. *@ - - - - - - - } } + +@* The identity survives ordinary health/config refreshes, but a changed driver/Enabled context + retires both the control panel and its callbacks. Only this outer dialog owns focus trapping; + the panel's restart confirmation remains an inline group. *@ + @{ + var (cg, cd) = FindControlsDriver(); + var controlsPresentation = PrepareControls(cg, cd); + var controlsIdentity = _controlsIdentity; + } + @if (cd is not null && cg is not null) + { + + + + +
+ +
+
+ } + @code { @@ -378,6 +366,9 @@ else // the row records, so it survives the 5 s timer's RebuildDriverGroups — which replaces every // HostsDriverRow instance and would otherwise close a dialog an operator just opened. private string? _controlsDriverId; + private long _controlsGeneration; + private object? _controlsIdentity; + private bool _controlsBusy; // Overlap guard: a tick whose config load outruns the 5 s interval must not stack behind the // next one. A manual Refresh landing on top of an in-flight tick is a no-op by the same guard. @@ -539,9 +530,42 @@ else => _driverGroups = HostsDriverView.Build(DriverStore.GetAll(), _nodes, _instances); // Open/close the Controls dialog. Ids are globally unique, so no cluster qualifier is needed. - private void OpenControls(string driverInstanceId) => _controlsDriverId = driverInstanceId; + private void OpenControls(string driverInstanceId) + { + if (_disposed || _controlsBusy) return; + ++_controlsGeneration; + _controlsDriverId = driverInstanceId; + _controlsIdentity = null; + _controlsBusy = false; + } - private void CloseControls() => _controlsDriverId = null; + private long PrepareControls(HostsClusterGroup? group, HostsDriverRow? driver) + { + object? identity = driver is null || group is null ? null : (driver.DriverInstanceId, driver.Enabled, group.ClusterId); + if (!Equals(_controlsIdentity, identity)) + { + _controlsIdentity = identity; + ++_controlsGeneration; + _controlsBusy = false; + } + // A vanished driver closes permanently; its later reappearance cannot reopen an old request. + if (driver is null) _controlsDriverId = null; + return _controlsGeneration; + } + + private void ControlsBusyChanged(long generation, object? identity, bool busy) + { + if (_disposed || generation != _controlsGeneration || _controlsDriverId is null || !Equals(identity, _controlsIdentity)) return; + _controlsBusy = busy; + } + + private void CloseControls(long generation) + { + if (_disposed || generation != _controlsGeneration || _controlsBusy) return; + _controlsDriverId = null; + _controlsIdentity = null; + ++_controlsGeneration; + } // Resolve the open dialog's driver from the CURRENT groups (the row records are replaced on // every rebuild, so the dialog must never cache one). Null row ⇒ the driver vanished from the diff --git a/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs b/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs new file mode 100644 index 000000000..eb82a2146 --- /dev/null +++ b/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/HostsControlsModalTests.cs @@ -0,0 +1,197 @@ +using System.Reflection; +using Akka.Actor; +using Akka.Configuration; +using Bunit; +using Microsoft.AspNetCore.Components; +using Microsoft.AspNetCore.Components.Rendering; +using Microsoft.AspNetCore.Components.RenderTree; +using Microsoft.AspNetCore.Components.Web; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Shouldly; +using Xunit; +using ZB.MOM.WW.OtOpcUa.AdminUI.Hosts; +using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Drivers; +using ZB.MOM.WW.OtOpcUa.AdminUI.Hubs; +using ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Uns; +using ZB.MOM.WW.OtOpcUa.Commons.Interfaces; +using ZB.MOM.WW.OtOpcUa.Commons.Messages.Admin; +using ZB.MOM.WW.OtOpcUa.Configuration; +using ZB.MOM.WW.OtOpcUa.Security.Auth; +using HostsPage=ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Hosts; + +namespace ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages; + +/// Actual Hosts controls retain their own presentation and pending command boundary. +[Trait("Category","Unit")] +public sealed class HostsControlsModalTests:BunitContext +{ + private ActorSystem Configure() + { + var auth=AddAuthorization();auth.SetAuthorized("fixture");auth.SetPolicies(AdminUiPolicies.DriverOperator); + JSInterop.Setup("otDialog.activate",_=>true).SetResult(true); + JSInterop.SetupVoid("otDialog.update",_=>true).SetVoidResult();JSInterop.SetupVoid("otDialog.deactivate",_=>true).SetVoidResult(); + JSInterop.SetupVoid("Blazor._internal.domWrapper.focus",_=>true).SetVoidResult(); + var factory=RawTreeTestDb.Factory("controls-"+Guid.NewGuid().ToString("N")); + using(var db=factory.CreateDbContext()) + { + foreach(var id in new[]{"A","B"})db.DriverInstances.Add(new(){DriverInstanceId=id,ClusterId="fixture",Name="Driver "+id,DriverType="Modbus",DriverConfig="{}",Enabled=true}); + db.SaveChanges(); + } + var store=new InMemoryDriverStatusSnapshotStore(); + foreach(var id in new[]{"A","B"})store.Upsert(new("fixture",id,"Healthy",DateTime.UtcNow,null,0,DateTime.UtcNow)); + Services.AddSingleton(factory);Services.AddSingleton(new DeployedDriverSet(factory)); + Services.AddSingleton(store);Services.AddSingleton(); + Services.AddSingleton(DispatchProxy.Create()); + var actors=ActorSystem.Create("controls-"+Guid.NewGuid().ToString("N"),ConfigurationFactory.ParseString(""" + akka.actor.provider = cluster + akka.remote.dot-netty.tcp.hostname = "127.0.0.1" + akka.remote.dot-netty.tcp.port = 0 + akka.cluster.seed-nodes = [] + akka.loglevel = ERROR + """)); + Services.AddSingleton(actors);return actors; + } + private static AngleSharp.Dom.IElement Controls(IRenderedComponent cut,int index)=>cut.FindAll("button").Where(b=>b.TextContent.Trim()=="Controls").ElementAt(index); + + [Fact] + public async Task Controls_IsNamedWithSafeCloseAndPreservesDriverContext() + { + using var actors=Configure(); + try + { + var cut=Render();Controls(cut,0).Click();var dialog=cut.Find("[role=dialog]"); + dialog.GetAttribute("aria-modal").ShouldBe("true");cut.Find("#"+dialog.GetAttribute("aria-labelledby")).TextContent.ShouldBe("Driver controls"); + cut.Find("#"+dialog.GetAttribute("aria-describedby")).TextContent.ShouldContain("Driver A"); + cut.Find("[data-initial-focus]").TextContent.ShouldBe("Close"); + cut.Markup.ShouldContain("Healthy"); + } + finally {await DisposeComponentsAsync();await actors.Terminate();} + } + + [Fact] + public async Task RetainedCloseFromA_CannotCloseReplacementB() + { + using var actors=Configure(); + try + { + var cut=Render();Controls(cut,0).Click();var close=CaptureClose(cut.Instance); + Controls(cut,1).Click();await cut.InvokeAsync(close);cut.Render(); + cut.Find("[role=dialog]").TextContent.ShouldContain("Driver B"); + } + finally {await DisposeComponentsAsync();await actors.Terminate();} + } + + [Fact] + public async Task PendingRealPanelCommand_BlocksParentCloseUntilCompletion() + { + using var actors=Configure(); + var operations=(Operations)Services.GetRequiredService(); + try + { + var cut=Render();Controls(cut,0).Click(); + var reconnect=cut.FindAll("button").Single(b=>b.TextContent.Trim()=="Reconnect").TriggerEventAsync("onclick",new MouseEventArgs()); + await operations.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken); + try + { + await cut.InvokeAsync(CaptureClose(cut.Instance));cut.Render(); + cut.Find("[role=dialog]").GetAttribute("aria-busy").ShouldBe("true"); + } + finally {operations.Reply.TrySetResult(new(true,null,Guid.Empty));await reconnect;} + cut.Find("[role=dialog]").GetAttribute("aria-busy").ShouldBe("false"); + await cut.InvokeAsync(CaptureClose(cut.Instance));cut.Render();cut.FindAll("[role=dialog]").Count.ShouldBe(0); + } + finally {operations.Reply.TrySetResult(new(true,null,Guid.Empty));await DisposeComponentsAsync();await actors.Terminate();} + } + + [Fact] + public async Task RetiredBusyCallback_CannotUnlockNewDriverCommand() + { + using var actors=Configure(); + try + { + var cut=Render();Controls(cut,0).Click();var oldBusy=cut.FindComponent().Instance.BusyChanged; + Controls(cut,1).Click();var currentBusy=cut.FindComponent().Instance.BusyChanged; + await cut.InvokeAsync(()=>currentBusy.InvokeAsync(true)); + await cut.InvokeAsync(()=>oldBusy.InvokeAsync(false)); + cut.Find("[role=dialog]").GetAttribute("aria-busy").ShouldBe("true"); + await cut.InvokeAsync(()=>currentBusy.InvokeAsync(false)); + cut.Find("[role=dialog]").GetAttribute("aria-busy").ShouldBe("false"); + } + finally {await DisposeComponentsAsync();await actors.Terminate();} + } + + [Fact] + public async Task OrdinaryConfigRefresh_PreservesPanelButEnabledChangeRetiresItsBusyCallback() + { + using var actors=Configure(); + try + { + var cut=Render();Controls(cut,0).Click();var panel=cut.FindComponent().Instance; + var factory=Services.GetRequiredService>(); + using(var db=factory.CreateDbContext()){db.DriverInstances.Single(d=>d.DriverInstanceId=="A").Name="Updated driver name";db.SaveChanges();} + cut.Find("button").Click();cut.Find("[role=dialog]").TextContent.ShouldContain("Updated driver name"); + cut.FindComponent().Instance.ShouldBeSameAs(panel); + var oldBusy=panel.BusyChanged;await cut.InvokeAsync(()=>oldBusy.InvokeAsync(true)); + using(var db=factory.CreateDbContext()){db.DriverInstances.Single(d=>d.DriverInstanceId=="A").Enabled=false;db.SaveChanges();} + cut.Find("button").Click(); + cut.FindComponent().Instance.ShouldNotBeSameAs(panel); + cut.Find("[role=dialog]").TextContent.ShouldContain("Disabled"); + await cut.InvokeAsync(()=>oldBusy.InvokeAsync(true)); + cut.Find("[role=dialog]").GetAttribute("aria-busy").ShouldBe("false"); + } + finally {await DisposeComponentsAsync();await actors.Terminate();} + } + + [Fact] + public async Task VanishedDriver_ClosesPermanentlyAndCannotReopenFromLaterSnapshot() + { + using var actors=Configure(); + try + { + var cut=Render();Controls(cut,0).Click();var store=Services.GetRequiredService(); + store.EvictUnconfiguredStale(new HashSet(),DateTime.UtcNow.AddSeconds(1));cut.Find("button").Click(); + cut.FindAll("[role=dialog]").Count.ShouldBe(0); + store.Upsert(new("fixture","A","Healthy",DateTime.UtcNow,null,0,DateTime.UtcNow));cut.Find("button").Click(); + cut.FindAll("[role=dialog]").Count.ShouldBe(0);Controls(cut,0).TextContent.Trim().ShouldBe("Controls"); + } + finally {await DisposeComponentsAsync();await actors.Terminate();} + } + + // Capture the actual rendered callback, including the original native shell before migration. +#pragma warning disable BL0006 + private static Func CaptureClose(HostsPage instance) + { + object? action=null; + void Visit(RenderFragment fragment) + { + using var builder=new RenderTreeBuilder();fragment(builder);var frames=builder.GetFrames(); + for(var i=0;itypeof(HostsPage).GetMethod("BuildRenderTree",BindingFlags.Instance|BindingFlags.NonPublic)!.Invoke(instance,[builder])); + return action switch + { + EventCallback callback=>()=>callback.InvokeAsync(), + EventCallback callback=>()=>callback.InvokeAsync(new()), + Action callback=>()=>{callback();return Task.CompletedTask;}, + Func callback=>callback, + _=>throw new InvalidOperationException("No actual close callback was captured") + }; + } +#pragma warning restore BL0006 + public class Operations:DispatchProxy + { + public TaskCompletionSource Entered {get;}=new(TaskCreationOptions.RunContinuationsAsynchronously); + public TaskCompletionSource Reply {get;}=new(TaskCreationOptions.RunContinuationsAsynchronously); + protected override object? Invoke(MethodInfo? method,object?[]? args) + { + if(method!.Name=="AskAsync"&&method.GetGenericArguments().Single()==typeof(ReconnectDriverResult)){Entered.TrySetResult();return Reply.Task;} + throw new NotSupportedException("Fixture rejects other operations"); + } + } +}