diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/browser-fieldset-api-harness.log b/docs/ui-consistency/evidence/ot13-equipment-caller/browser-fieldset-api-harness.log new file mode 100644 index 000000000..c1fc69b05 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/browser-fieldset-api-harness.log @@ -0,0 +1,28 @@ +Traceback (most recent call last): + File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-equipment-caller/browser.py", line 35, in + year.fill('2021');page.get_by_role('button',name='Save changes',exact=True).click();expect(page.locator('form fieldset')).to_be_disabled() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ + File "/opt/homebrew/lib/python3.14/site-packages/playwright/sync_api/_generated.py", line 20271, in to_be_disabled + self._sync(self._impl_obj.to_be_disabled(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 651, in to_be_disabled + 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 be disabled +Actual value: enabled +Call log: + - Expect "to_be_disabled" with timeout 5000ms + - waiting for locator("form fieldset") + 2 × locator resolved to
…
+ - unexpected value "enabled" + 7 × locator resolved to
…
+ - unexpected value "enabled" + diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/browser-first.json b/docs/ui-consistency/evidence/ot13-equipment-caller/browser-first.json new file mode 100644 index 000000000..862d49347 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/browser-first.json @@ -0,0 +1,1026 @@ +{ + "origin": "http://127.0.0.1:60009", + "scenes": [ + { + "mode": "desktop", + "zoom": 1, + "geometry": { + "innerWidth": 1440, + "innerHeight": 900, + "dpr": 1, + "scrollWidth": 1440 + }, + "checks": [ + { + "name": "Inactive child tabs remain lazy", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-id", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-id", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-name", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-name", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-machinecode", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-machinecode", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-line", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-line", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-ztag", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-ztag", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-sap", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-sap", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-enabled", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-enabled", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-manufacturer", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-manufacturer", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-model", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-model", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-serial", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-serial", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-hardware", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-hardware", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-software", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-software", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-year", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-year", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-location", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-location", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-manual-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-c0ad5a0a26e646ef981e56ee516f2cb4-eq-manual-uri", + "passed": true + }, + { + "name": "Invalid required name sends no mutation", + "passed": true + }, + { + "name": "Existing short parser error is visible and named", + "passed": true + }, + { + "name": "Confirmed details write keeps draft and blocks replay on read failure", + "passed": true + }, + { + "name": "Details submitted target and optimistic version retained", + "passed": true + }, + { + "name": "Details Retry is read-only", + "passed": true + }, + { + "name": "Override composite accessible name uses visible row and column", + "passed": true + }, + { + "name": "Override action targets only its reference", + "passed": true + }, + { + "name": "Remove requires explicit safe confirmation", + "passed": true + }, + { + "name": "Cancel does not mutate", + "passed": true + }, + { + "name": "Confirmed remove failure-to-refresh retains last-good rows and blocks replay", + "passed": true + }, + { + "name": "Reference retry only reloads view", + "passed": true + }, + { + "name": "Composed AddReference saves captured equipment", + "passed": true + }, + { + "name": "Late A edit cannot open over B create", + "passed": true + }, + { + "name": "Composed virtual save stays B and refresh failure does not replay", + "passed": true + }, + { + "name": "Virtual Retry is read-only", + "passed": true + }, + { + "name": "Saved B callback already reading cannot close new A alarm", + "passed": true + }, + { + "name": "Alarm write uses captured row target", + "passed": true + }, + { + "name": "Exactly six synthetic writes, no operational calls", + "passed": true + }, + { + "name": "No document overflow/page errors/external hosts", + "passed": true + } + ], + "errors": [], + "externalHosts": [], + "state": { + "target": "A", + "operations": [ + { + "method": "UpdateEquipmentAsync", + "args": [ + "A", + { + "name": "equipment-a-updated", + "machineCode": "MC-A", + "unsLineId": "LINE-A", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2021, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + }, + { + "method": "SetReferenceOverrideAsync", + "args": [ + "A-ref-1", + "name-override", + "AQI=" + ] + }, + { + "method": "RemoveReferenceAsync", + "args": [ + "A-ref-1", + "AQI=" + ] + }, + { + "method": "AddReferencesAsync", + "args": [ + "A", + [ + "tag-A" + ] + ] + }, + { + "method": "CreateVirtualTagAsync", + "args": [ + "B", + { + "virtualTagId": "b-new-virtual", + "name": "virtual-new", + "dataType": "Double", + "scriptId": "S1", + "changeTriggered": true, + "timerIntervalMs": null, + "historize": false, + "enabled": true + } + ] + }, + { + "method": "UpdateScriptedAlarmAsync", + "args": [ + "B-alarm", + { + "scriptedAlarmId": "B-alarm", + "name": "alarm-updated", + "alarmType": "LimitAlarm", + "severity": 500, + "messageTemplate": "message", + "predicateScriptId": "S1", + "historizeToAveva": true, + "retain": true, + "enabled": true + }, + "AQI=" + ] + } + ], + "reads": [ + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadEquipmentAsync:A", + "LoadEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencePickerRootAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadVirtualTagsForEquipmentAsync:A", + "LoadVirtualTagAsync:A-vtag", + "LoadEquipmentAsync:B", + "LoadEquipmentPickContextAsync:LINE-B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadScriptsAsync:System.Threading.CancellationToken", + "GetScriptSourceAsync:S1", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadAlarmsForEquipmentAsync:B", + "LoadScriptedAlarmAsync:B-alarm", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadAlarmsForEquipmentAsync:B", + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadAlarmsForEquipmentAsync:A", + "LoadScriptsAsync:System.Threading.CancellationToken" + ], + "forbidden": 0 + } + }, + { + "mode": "phone", + "zoom": 1, + "geometry": { + "innerWidth": 390, + "innerHeight": 900, + "dpr": 1, + "scrollWidth": 390 + }, + "checks": [ + { + "name": "Inactive child tabs remain lazy", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-id", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-id", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-name", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-name", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-machinecode", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-machinecode", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-line", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-line", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-ztag", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-ztag", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-sap", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-sap", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-enabled", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-enabled", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-manufacturer", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-manufacturer", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-model", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-model", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-serial", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-serial", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-hardware", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-hardware", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-software", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-software", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-year", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-year", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-location", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-location", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-004f7aa2211a471285047def80246fcd-eq-manual-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-004f7aa2211a471285047def80246fcd-eq-manual-uri", + "passed": true + }, + { + "name": "Invalid required name sends no mutation", + "passed": true + }, + { + "name": "Existing short parser error is visible and named", + "passed": true + }, + { + "name": "Confirmed details write keeps draft and blocks replay on read failure", + "passed": true + }, + { + "name": "Details submitted target and optimistic version retained", + "passed": true + }, + { + "name": "Details Retry is read-only", + "passed": true + }, + { + "name": "Override composite accessible name uses visible row and column", + "passed": true + }, + { + "name": "Override action targets only its reference", + "passed": true + }, + { + "name": "Remove requires explicit safe confirmation", + "passed": true + }, + { + "name": "Cancel does not mutate", + "passed": true + }, + { + "name": "Confirmed remove failure-to-refresh retains last-good rows and blocks replay", + "passed": true + }, + { + "name": "Reference retry only reloads view", + "passed": true + }, + { + "name": "Composed AddReference saves captured equipment", + "passed": true + }, + { + "name": "Late A edit cannot open over B create", + "passed": true + }, + { + "name": "Composed virtual save stays B and refresh failure does not replay", + "passed": true + }, + { + "name": "Virtual Retry is read-only", + "passed": true + }, + { + "name": "Saved B callback already reading cannot close new A alarm", + "passed": true + }, + { + "name": "Alarm write uses captured row target", + "passed": true + }, + { + "name": "Exactly six synthetic writes, no operational calls", + "passed": true + }, + { + "name": "No document overflow/page errors/external hosts", + "passed": true + } + ], + "errors": [], + "externalHosts": [], + "state": { + "target": "A", + "operations": [ + { + "method": "UpdateEquipmentAsync", + "args": [ + "A", + { + "name": "equipment-a-updated", + "machineCode": "MC-A", + "unsLineId": "LINE-A", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2021, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + }, + { + "method": "SetReferenceOverrideAsync", + "args": [ + "A-ref-1", + "name-override", + "AQI=" + ] + }, + { + "method": "RemoveReferenceAsync", + "args": [ + "A-ref-1", + "AQI=" + ] + }, + { + "method": "AddReferencesAsync", + "args": [ + "A", + [ + "tag-A" + ] + ] + }, + { + "method": "CreateVirtualTagAsync", + "args": [ + "B", + { + "virtualTagId": "b-new-virtual", + "name": "virtual-new", + "dataType": "Double", + "scriptId": "S1", + "changeTriggered": true, + "timerIntervalMs": null, + "historize": false, + "enabled": true + } + ] + }, + { + "method": "UpdateScriptedAlarmAsync", + "args": [ + "B-alarm", + { + "scriptedAlarmId": "B-alarm", + "name": "alarm-updated", + "alarmType": "LimitAlarm", + "severity": 500, + "messageTemplate": "message", + "predicateScriptId": "S1", + "historizeToAveva": true, + "retain": true, + "enabled": true + }, + "AQI=" + ] + } + ], + "reads": [ + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadEquipmentAsync:A", + "LoadEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencePickerRootAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadVirtualTagsForEquipmentAsync:A", + "LoadVirtualTagAsync:A-vtag", + "LoadEquipmentAsync:B", + "LoadEquipmentPickContextAsync:LINE-B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadScriptsAsync:System.Threading.CancellationToken", + "GetScriptSourceAsync:S1", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadAlarmsForEquipmentAsync:B", + "LoadScriptedAlarmAsync:B-alarm", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadAlarmsForEquipmentAsync:B", + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadAlarmsForEquipmentAsync:A", + "LoadScriptsAsync:System.Threading.CancellationToken" + ], + "forbidden": 0 + } + }, + { + "mode": "real200", + "zoom": 2, + "geometry": { + "innerWidth": 720, + "innerHeight": 450, + "dpr": 2, + "scrollWidth": 720 + }, + "checks": [ + { + "name": "Inactive child tabs remain lazy", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-id", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-id", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-name", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-name", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-machinecode", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-machinecode", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-line", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-line", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-ztag", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-ztag", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-sap", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-sap", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-enabled", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-enabled", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-manufacturer", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-manufacturer", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-model", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-model", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-serial", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-serial", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-hardware", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-hardware", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-software", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-software", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-year", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-year", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-location", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-location", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-manual-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-30ed9613cf794ab2b32b6289e17eff9c-eq-manual-uri", + "passed": true + }, + { + "name": "Invalid required name sends no mutation", + "passed": true + }, + { + "name": "Existing short parser error is visible and named", + "passed": true + }, + { + "name": "Confirmed details write keeps draft and blocks replay on read failure", + "passed": true + }, + { + "name": "Details submitted target and optimistic version retained", + "passed": true + }, + { + "name": "Details Retry is read-only", + "passed": true + }, + { + "name": "Override composite accessible name uses visible row and column", + "passed": true + }, + { + "name": "Override action targets only its reference", + "passed": true + }, + { + "name": "Remove requires explicit safe confirmation", + "passed": true + }, + { + "name": "Cancel does not mutate", + "passed": true + }, + { + "name": "Confirmed remove failure-to-refresh retains last-good rows and blocks replay", + "passed": true + }, + { + "name": "Reference retry only reloads view", + "passed": true + }, + { + "name": "Composed AddReference saves captured equipment", + "passed": true + }, + { + "name": "Late A edit cannot open over B create", + "passed": true + }, + { + "name": "Composed virtual save stays B and refresh failure does not replay", + "passed": true + }, + { + "name": "Virtual Retry is read-only", + "passed": true + }, + { + "name": "Saved B callback already reading cannot close new A alarm", + "passed": true + }, + { + "name": "Alarm write uses captured row target", + "passed": true + }, + { + "name": "Exactly six synthetic writes, no operational calls", + "passed": true + }, + { + "name": "No document overflow/page errors/external hosts", + "passed": true + } + ], + "errors": [], + "externalHosts": [], + "state": { + "target": "A", + "operations": [ + { + "method": "UpdateEquipmentAsync", + "args": [ + "A", + { + "name": "equipment-a-updated", + "machineCode": "MC-A", + "unsLineId": "LINE-A", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2021, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + }, + { + "method": "SetReferenceOverrideAsync", + "args": [ + "A-ref-1", + "name-override", + "AQI=" + ] + }, + { + "method": "RemoveReferenceAsync", + "args": [ + "A-ref-1", + "AQI=" + ] + }, + { + "method": "AddReferencesAsync", + "args": [ + "A", + [ + "tag-A" + ] + ] + }, + { + "method": "CreateVirtualTagAsync", + "args": [ + "B", + { + "virtualTagId": "b-new-virtual", + "name": "virtual-new", + "dataType": "Double", + "scriptId": "S1", + "changeTriggered": true, + "timerIntervalMs": null, + "historize": false, + "enabled": true + } + ] + }, + { + "method": "UpdateScriptedAlarmAsync", + "args": [ + "B-alarm", + { + "scriptedAlarmId": "B-alarm", + "name": "alarm-updated", + "alarmType": "LimitAlarm", + "severity": 500, + "messageTemplate": "message", + "predicateScriptId": "S1", + "historizeToAveva": true, + "retain": true, + "enabled": true + }, + "AQI=" + ] + } + ], + "reads": [ + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadEquipmentAsync:A", + "LoadEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencePickerRootAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadVirtualTagsForEquipmentAsync:A", + "LoadVirtualTagAsync:A-vtag", + "LoadEquipmentAsync:B", + "LoadEquipmentPickContextAsync:LINE-B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadScriptsAsync:System.Threading.CancellationToken", + "GetScriptSourceAsync:S1", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadAlarmsForEquipmentAsync:B", + "LoadScriptedAlarmAsync:B-alarm", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadAlarmsForEquipmentAsync:B", + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadAlarmsForEquipmentAsync:A", + "LoadScriptsAsync:System.Threading.CancellationToken" + ], + "forbidden": 0 + } + } + ], + "voiceOver": "Excluded by explicit user instruction; no speech-output claim" +} diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/browser-first.log b/docs/ui-consistency/evidence/ot13-equipment-caller/browser-first.log new file mode 100644 index 000000000..81ce0186f --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/browser-first.log @@ -0,0 +1 @@ +{"scenes": 3, "checks": 156} diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/browser-hidden-token-harness.log b/docs/ui-consistency/evidence/ot13-equipment-caller/browser-hidden-token-harness.log new file mode 100644 index 000000000..0946c5971 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/browser-hidden-token-harness.log @@ -0,0 +1,8 @@ +Traceback (most recent call last): + File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-equipment-caller/browser.py", line 28, in + id=field.get_attribute('id');check('Details field has visible associated label '+str(id),bool(id) and page.locator('label[for="'+id+'"]').count()==1) + ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-equipment-caller/browser.py", line 22, in check + def check(name,value):checks.append({'name':name,'passed':bool(value)});assert value,name + ^^^^^ +AssertionError: Details field has visible associated label None diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/browser-results.json b/docs/ui-consistency/evidence/ot13-equipment-caller/browser-results.json new file mode 100644 index 000000000..d10f38568 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/browser-results.json @@ -0,0 +1,1026 @@ +{ + "origin": "http://127.0.0.1:61070", + "scenes": [ + { + "mode": "desktop", + "zoom": 1, + "geometry": { + "innerWidth": 1440, + "innerHeight": 900, + "dpr": 1, + "scrollWidth": 1440 + }, + "checks": [ + { + "name": "Inactive child tabs remain lazy", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-id", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-id", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-name", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-name", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-machinecode", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-machinecode", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-line", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-line", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-ztag", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-ztag", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-sap", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-sap", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-enabled", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-enabled", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-manufacturer", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-manufacturer", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-model", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-model", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-serial", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-serial", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-hardware", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-hardware", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-software", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-software", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-year", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-year", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-location", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-location", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-manual-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-f63a7a43166c4c46b47ba6a01df83422-eq-manual-uri", + "passed": true + }, + { + "name": "Invalid required name sends no mutation", + "passed": true + }, + { + "name": "Existing short parser error is visible and named", + "passed": true + }, + { + "name": "Confirmed details write keeps draft and blocks replay on read failure", + "passed": true + }, + { + "name": "Details submitted target and optimistic version retained", + "passed": true + }, + { + "name": "Details Retry is read-only", + "passed": true + }, + { + "name": "Override composite accessible name uses visible row and column", + "passed": true + }, + { + "name": "Override action targets only its reference", + "passed": true + }, + { + "name": "Remove requires explicit safe confirmation", + "passed": true + }, + { + "name": "Cancel does not mutate", + "passed": true + }, + { + "name": "Confirmed remove failure-to-refresh retains last-good rows and blocks replay", + "passed": true + }, + { + "name": "Reference retry only reloads view", + "passed": true + }, + { + "name": "Composed AddReference saves captured equipment", + "passed": true + }, + { + "name": "Late A edit cannot open over B create", + "passed": true + }, + { + "name": "Composed virtual save stays B and refresh failure does not replay", + "passed": true + }, + { + "name": "Virtual Retry is read-only", + "passed": true + }, + { + "name": "Saved B callback already reading cannot close new A alarm", + "passed": true + }, + { + "name": "Alarm write uses captured row target", + "passed": true + }, + { + "name": "Exactly six synthetic writes, no operational calls", + "passed": true + }, + { + "name": "No document overflow/page errors/external hosts", + "passed": true + } + ], + "errors": [], + "externalHosts": [], + "state": { + "target": "A", + "operations": [ + { + "method": "UpdateEquipmentAsync", + "args": [ + "A", + { + "name": "equipment-a-updated", + "machineCode": "MC-A", + "unsLineId": "LINE-A", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2021, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + }, + { + "method": "SetReferenceOverrideAsync", + "args": [ + "A-ref-1", + "name-override", + "AQI=" + ] + }, + { + "method": "RemoveReferenceAsync", + "args": [ + "A-ref-1", + "AQI=" + ] + }, + { + "method": "AddReferencesAsync", + "args": [ + "A", + [ + "tag-A" + ] + ] + }, + { + "method": "CreateVirtualTagAsync", + "args": [ + "B", + { + "virtualTagId": "b-new-virtual", + "name": "virtual-new", + "dataType": "Double", + "scriptId": "S1", + "changeTriggered": true, + "timerIntervalMs": null, + "historize": false, + "enabled": true + } + ] + }, + { + "method": "UpdateScriptedAlarmAsync", + "args": [ + "B-alarm", + { + "scriptedAlarmId": "B-alarm", + "name": "alarm-updated", + "alarmType": "LimitAlarm", + "severity": 500, + "messageTemplate": "message", + "predicateScriptId": "S1", + "historizeToAveva": true, + "retain": true, + "enabled": true + }, + "AQI=" + ] + } + ], + "reads": [ + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadEquipmentAsync:A", + "LoadEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencePickerRootAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadVirtualTagsForEquipmentAsync:A", + "LoadVirtualTagAsync:A-vtag", + "LoadEquipmentAsync:B", + "LoadEquipmentPickContextAsync:LINE-B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadScriptsAsync:System.Threading.CancellationToken", + "GetScriptSourceAsync:S1", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadAlarmsForEquipmentAsync:B", + "LoadScriptedAlarmAsync:B-alarm", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadAlarmsForEquipmentAsync:B", + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadAlarmsForEquipmentAsync:A", + "LoadScriptsAsync:System.Threading.CancellationToken" + ], + "forbidden": 0 + } + }, + { + "mode": "phone", + "zoom": 1, + "geometry": { + "innerWidth": 390, + "innerHeight": 900, + "dpr": 1, + "scrollWidth": 390 + }, + "checks": [ + { + "name": "Inactive child tabs remain lazy", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-id", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-id", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-name", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-name", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-machinecode", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-machinecode", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-line", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-line", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-ztag", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-ztag", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-sap", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-sap", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-enabled", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-enabled", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-manufacturer", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-manufacturer", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-model", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-model", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-serial", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-serial", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-hardware", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-hardware", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-software", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-software", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-year", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-year", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-location", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-location", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-manual-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-d11b5338ef91458f9736a4354435ce20-eq-manual-uri", + "passed": true + }, + { + "name": "Invalid required name sends no mutation", + "passed": true + }, + { + "name": "Existing short parser error is visible and named", + "passed": true + }, + { + "name": "Confirmed details write keeps draft and blocks replay on read failure", + "passed": true + }, + { + "name": "Details submitted target and optimistic version retained", + "passed": true + }, + { + "name": "Details Retry is read-only", + "passed": true + }, + { + "name": "Override composite accessible name uses visible row and column", + "passed": true + }, + { + "name": "Override action targets only its reference", + "passed": true + }, + { + "name": "Remove requires explicit safe confirmation", + "passed": true + }, + { + "name": "Cancel does not mutate", + "passed": true + }, + { + "name": "Confirmed remove failure-to-refresh retains last-good rows and blocks replay", + "passed": true + }, + { + "name": "Reference retry only reloads view", + "passed": true + }, + { + "name": "Composed AddReference saves captured equipment", + "passed": true + }, + { + "name": "Late A edit cannot open over B create", + "passed": true + }, + { + "name": "Composed virtual save stays B and refresh failure does not replay", + "passed": true + }, + { + "name": "Virtual Retry is read-only", + "passed": true + }, + { + "name": "Saved B callback already reading cannot close new A alarm", + "passed": true + }, + { + "name": "Alarm write uses captured row target", + "passed": true + }, + { + "name": "Exactly six synthetic writes, no operational calls", + "passed": true + }, + { + "name": "No document overflow/page errors/external hosts", + "passed": true + } + ], + "errors": [], + "externalHosts": [], + "state": { + "target": "A", + "operations": [ + { + "method": "UpdateEquipmentAsync", + "args": [ + "A", + { + "name": "equipment-a-updated", + "machineCode": "MC-A", + "unsLineId": "LINE-A", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2021, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + }, + { + "method": "SetReferenceOverrideAsync", + "args": [ + "A-ref-1", + "name-override", + "AQI=" + ] + }, + { + "method": "RemoveReferenceAsync", + "args": [ + "A-ref-1", + "AQI=" + ] + }, + { + "method": "AddReferencesAsync", + "args": [ + "A", + [ + "tag-A" + ] + ] + }, + { + "method": "CreateVirtualTagAsync", + "args": [ + "B", + { + "virtualTagId": "b-new-virtual", + "name": "virtual-new", + "dataType": "Double", + "scriptId": "S1", + "changeTriggered": true, + "timerIntervalMs": null, + "historize": false, + "enabled": true + } + ] + }, + { + "method": "UpdateScriptedAlarmAsync", + "args": [ + "B-alarm", + { + "scriptedAlarmId": "B-alarm", + "name": "alarm-updated", + "alarmType": "LimitAlarm", + "severity": 500, + "messageTemplate": "message", + "predicateScriptId": "S1", + "historizeToAveva": true, + "retain": true, + "enabled": true + }, + "AQI=" + ] + } + ], + "reads": [ + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadEquipmentAsync:A", + "LoadEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencePickerRootAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadVirtualTagsForEquipmentAsync:A", + "LoadVirtualTagAsync:A-vtag", + "LoadEquipmentAsync:B", + "LoadEquipmentPickContextAsync:LINE-B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadScriptsAsync:System.Threading.CancellationToken", + "GetScriptSourceAsync:S1", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadAlarmsForEquipmentAsync:B", + "LoadScriptedAlarmAsync:B-alarm", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadAlarmsForEquipmentAsync:B", + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadAlarmsForEquipmentAsync:A", + "LoadScriptsAsync:System.Threading.CancellationToken" + ], + "forbidden": 0 + } + }, + { + "mode": "real200", + "zoom": 2, + "geometry": { + "innerWidth": 720, + "innerHeight": 450, + "dpr": 2, + "scrollWidth": 720 + }, + "checks": [ + { + "name": "Inactive child tabs remain lazy", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-id", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-id", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-name", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-name", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-machinecode", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-machinecode", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-line", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-line", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-ztag", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-ztag", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-sap", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-sap", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-enabled", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-enabled", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-manufacturer", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-manufacturer", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-model", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-model", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-serial", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-serial", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-hardware", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-hardware", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-software", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-software", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-year", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-year", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-location", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-location", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-manufacturer-uri", + "passed": true + }, + { + "name": "Details field has visible associated label ot-equipment-21a597e7023d4391988b32dac662edcf-eq-manual-uri", + "passed": true + }, + { + "name": "Details descriptions resolve ot-equipment-21a597e7023d4391988b32dac662edcf-eq-manual-uri", + "passed": true + }, + { + "name": "Invalid required name sends no mutation", + "passed": true + }, + { + "name": "Existing short parser error is visible and named", + "passed": true + }, + { + "name": "Confirmed details write keeps draft and blocks replay on read failure", + "passed": true + }, + { + "name": "Details submitted target and optimistic version retained", + "passed": true + }, + { + "name": "Details Retry is read-only", + "passed": true + }, + { + "name": "Override composite accessible name uses visible row and column", + "passed": true + }, + { + "name": "Override action targets only its reference", + "passed": true + }, + { + "name": "Remove requires explicit safe confirmation", + "passed": true + }, + { + "name": "Cancel does not mutate", + "passed": true + }, + { + "name": "Confirmed remove failure-to-refresh retains last-good rows and blocks replay", + "passed": true + }, + { + "name": "Reference retry only reloads view", + "passed": true + }, + { + "name": "Composed AddReference saves captured equipment", + "passed": true + }, + { + "name": "Late A edit cannot open over B create", + "passed": true + }, + { + "name": "Composed virtual save stays B and refresh failure does not replay", + "passed": true + }, + { + "name": "Virtual Retry is read-only", + "passed": true + }, + { + "name": "Saved B callback already reading cannot close new A alarm", + "passed": true + }, + { + "name": "Alarm write uses captured row target", + "passed": true + }, + { + "name": "Exactly six synthetic writes, no operational calls", + "passed": true + }, + { + "name": "No document overflow/page errors/external hosts", + "passed": true + } + ], + "errors": [], + "externalHosts": [], + "state": { + "target": "A", + "operations": [ + { + "method": "UpdateEquipmentAsync", + "args": [ + "A", + { + "name": "equipment-a-updated", + "machineCode": "MC-A", + "unsLineId": "LINE-A", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2021, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + }, + { + "method": "SetReferenceOverrideAsync", + "args": [ + "A-ref-1", + "name-override", + "AQI=" + ] + }, + { + "method": "RemoveReferenceAsync", + "args": [ + "A-ref-1", + "AQI=" + ] + }, + { + "method": "AddReferencesAsync", + "args": [ + "A", + [ + "tag-A" + ] + ] + }, + { + "method": "CreateVirtualTagAsync", + "args": [ + "B", + { + "virtualTagId": "b-new-virtual", + "name": "virtual-new", + "dataType": "Double", + "scriptId": "S1", + "changeTriggered": true, + "timerIntervalMs": null, + "historize": false, + "enabled": true + } + ] + }, + { + "method": "UpdateScriptedAlarmAsync", + "args": [ + "B-alarm", + { + "scriptedAlarmId": "B-alarm", + "name": "alarm-updated", + "alarmType": "LimitAlarm", + "severity": 500, + "messageTemplate": "message", + "predicateScriptId": "S1", + "historizeToAveva": true, + "retain": true, + "enabled": true + }, + "AQI=" + ] + } + ], + "reads": [ + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadEquipmentAsync:A", + "LoadEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadReferencePickerRootAsync:A", + "LoadReferencesForEquipmentAsync:A", + "LoadVirtualTagsForEquipmentAsync:A", + "LoadVirtualTagAsync:A-vtag", + "LoadEquipmentAsync:B", + "LoadEquipmentPickContextAsync:LINE-B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadScriptsAsync:System.Threading.CancellationToken", + "GetScriptSourceAsync:S1", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadVirtualTagsForEquipmentAsync:B", + "LoadAlarmsForEquipmentAsync:B", + "LoadScriptedAlarmAsync:B-alarm", + "LoadScriptsAsync:System.Threading.CancellationToken", + "LoadAlarmsForEquipmentAsync:B", + "LoadEquipmentAsync:A", + "LoadEquipmentPickContextAsync:LINE-A", + "LoadAlarmsForEquipmentAsync:A", + "LoadScriptsAsync:System.Threading.CancellationToken" + ], + "forbidden": 0 + } + } + ], + "voiceOver": "Excluded by explicit user instruction; no speech-output claim" +} diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/browser.log b/docs/ui-consistency/evidence/ot13-equipment-caller/browser.log new file mode 100644 index 000000000..81ce0186f --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/browser.log @@ -0,0 +1 @@ +{"scenes": 3, "checks": 156} diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/browser.py b/docs/ui-consistency/evidence/ot13-equipment-caller/browser.py new file mode 100644 index 000000000..0f5fc1967 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/browser.py @@ -0,0 +1,65 @@ +"""Composed Equipment caller/child proof; every write goes only to a deferred synthetic adapter.""" +import base64,json,sys +from pathlib import Path +from urllib.parse import urlsplit +from playwright.sync_api import sync_playwright,expect +sys.path.insert(0,'/Users/dohertj2/Desktop/ignitionoee/docs/ui-validation/router-canary') +from browser_zoom import zoom_browser,set_browser_zoom +out=Path(__file__).parent;origin=sys.argv[1];results={'origin':origin,'scenes':[],'voiceOver':'Excluded by explicit user instruction; no speech-output claim'} +with sync_playwright() as p: + for mode,width,zoom in [('desktop',1440,1),('phone',390,1),('real200',1440,2)]: + with zoom_browser(p,width=width,height=900) as(ctx,worker): + page=ctx.new_page();page.set_default_timeout(15000);errors=[];external=[];checks=[] + page.on('pageerror',lambda e:errors.append(str(e))) + def route(req): + if urlsplit(req.request.url).hostname not in ['127.0.0.1','localhost']:external.append(urlsplit(req.request.url).hostname);req.abort() + else:req.continue_() + page.route('**/*',route);page.goto(origin);expect(page.locator('#ready')).to_have_text('ready');expect(page.locator('h1')).to_have_text('equipment-a');factor=set_browser_zoom(worker,page,zoom) + session=page.locator('#session').inner_text();modal=page.locator('[role=dialog]') + def state():return page.request.get(origin+'/fixture/state/'+session).json() + def command(path):assert page.request.post(origin+'/fixture/'+path.replace('{id}',session)).ok + def release(outcome='success'):command('release/{id}/'+outcome) + def check(name,value):checks.append({'name':name,'passed':bool(value)});assert value,name + def tab(name):page.locator('.nav-tabs').get_by_role('button',name=name,exact=True).click() + def opened():expect(modal).to_be_visible();expect(modal.locator('[data-initial-focus]')).to_be_focused() + def retry():page.get_by_role('button',name='Retry view load',exact=True).click() + check('Inactive child tabs remain lazy',not any(any(name in read for name in ['LoadReferencesForEquipmentAsync','LoadVirtualTagsForEquipmentAsync','LoadAlarmsForEquipmentAsync']) for read in state()['reads'])) + for field in page.locator('form input:not([type=hidden]),form select,form textarea').all(): + id=field.get_attribute('id');check('Details field has visible associated label '+str(id),bool(id) and page.locator('label[for="'+id+'"]').count()==1) + check('Details descriptions resolve '+str(id),field.evaluate("n=>(n.getAttribute('aria-describedby')||'').split(/\\s+/).filter(Boolean).every(id=>!!document.getElementById(id))")) + if not field.is_disabled() and field.get_attribute('type')!='checkbox':page.locator('label[for="'+id+'"]').click();expect(field).to_be_focused() + name=page.get_by_label('Name',exact=True);name.fill('');page.get_by_role('button',name='Save changes',exact=True).click();expect(name).to_be_focused();expect(name).to_have_attribute('aria-invalid','true') + check('Invalid required name sends no mutation',state()['operations']==[]) + name.fill('equipment-a-updated');year=page.get_by_label('Year of construction',exact=True);year.fill('40000');page.get_by_role('button',name='Save changes',exact=True).click();expect(year).to_be_focused();expect(year).to_have_attribute('aria-invalid','true') + check('Existing short parser error is visible and named',page.locator('[id$=eq-year-error]').inner_text().find('Year of construction')>=0 and state()['operations']==[]) + year.fill('2021');page.get_by_role('button',name='Save changes',exact=True).click();expect(name).to_be_disabled() + command('fail-read/{id}/details');release();expect(page.get_by_role('button',name='Retry view load',exact=True)).to_be_visible() + check('Confirmed details write keeps draft and blocks replay on read failure',name.input_value()=='equipment-a-updated' and page.get_by_role('button',name='Save changes',exact=True).is_disabled() and len(state()['operations'])==1) + first=state()['operations'][0];check('Details submitted target and optimistic version retained',first['method']=='UpdateEquipmentAsync' and first['args'][0]=='A' and first['args'][1]['name']=='equipment-a-updated' and first['args'][1]['yearOfConstruction']==2021 and base64.b64decode(first['args'][2])==bytes([1,2])) + page.screenshot(path=str(out/(mode+'-details-recovery.png')));retry();expect(page.get_by_role('button',name='Save changes',exact=True)).to_be_enabled();expect(page.locator('h1')).to_have_text('equipment-a-updated');check('Details Retry is read-only',len(state()['operations'])==1) + tab('Tags');expect(page.locator('tbody tr')).to_have_count(2);row=page.locator('tbody tr').first;override=row.locator('input') + check('Override composite accessible name uses visible row and column',all(text in override.aria_snapshot() for text in ['Display-name override','A-ref-1'])) + override.fill('name-override');override.press('Tab');row.get_by_role('button',name='Save name',exact=True).click();expect(row.get_by_role('button',name='Save name',exact=True)).to_be_disabled();release();expect(page.locator('tbody tr').first.locator('th')).to_have_text('name-override');check('Override action targets only its reference',state()['operations'][-1]['args'][0]=='A-ref-1' and state()['operations'][-1]['args'][1]=='name-override') + row=page.locator('tbody tr').first;row.get_by_role('button',name='Remove',exact=True).click();opened();check('Remove requires explicit safe confirmation',len(state()['operations'])==2 and modal.locator('[data-initial-focus]').inner_text().strip()=='Cancel') + page.keyboard.press('Escape');expect(modal).to_have_count(0);check('Cancel does not mutate',len(state()['operations'])==2) + row.get_by_role('button',name='Remove',exact=True).click();opened();modal.locator('.btn-danger').click();expect(modal).to_have_attribute('aria-busy','true');page.wait_for_function("document.querySelector('[role=dialog]')?.contains(document.activeElement)") + command('fail-read/{id}/references');release();expect(modal).to_have_count(0);expect(page.get_by_role('button',name='Retry view load',exact=True)).to_be_visible() + check('Confirmed remove failure-to-refresh retains last-good rows and blocks replay',page.locator('tbody tr').count()==2 and page.get_by_role('button',name='+ Add reference',exact=True).is_disabled() and len(state()['operations'])==3) + retry();expect(page.locator('tbody tr')).to_have_count(1);check('Reference retry only reloads view',len(state()['operations'])==3) + page.get_by_role('button',name='+ Add reference',exact=True).click();opened();modal.get_by_role('checkbox',name='Synthetic raw tag A',exact=True).check();modal.locator('.modal-footer .btn-primary').click();expect(modal).to_have_attribute('aria-busy','true');release();expect(modal).to_have_count(0) + check('Composed AddReference saves captured equipment',state()['operations'][-1]['method']=='AddReferencesAsync' and state()['operations'][-1]['args'][0]=='A' and state()['operations'][-1]['args'][1]==['tag-A']) + tab('Virtual Tags');expect(page.locator('tbody tr')).to_have_count(1);command('hold-read/{id}/LoadVirtualTagAsync/A-vtag');page.locator('tbody tr').get_by_role('button',name='Edit',exact=True).click();command('route/{id}/B');expect(page.locator('h1')).to_have_text('equipment-b');expect(page.locator('tbody')).to_contain_text('virtual-tag-B') + page.get_by_role('button',name='Add virtual tag',exact=True).click();opened();command('release-read/{id}/success');page.wait_for_timeout(150) + check('Late A edit cannot open over B create',modal.locator('.modal-title').inner_text().strip()=='New virtual tag' and modal.get_by_label('VirtualTagId',exact=True).input_value()=='') + modal.locator('[data-initial-focus]').click();expect(modal).to_have_count(0);page.get_by_role('button',name='Add virtual tag',exact=True).click();opened();modal.get_by_label('VirtualTagId',exact=True).fill('b-new-virtual');modal.get_by_label('Name',exact=True).fill('virtual-new');modal.get_by_label('Script',exact=True).select_option('S1');modal.locator('.modal-footer .btn-primary').click();expect(modal).to_have_attribute('aria-busy','true');command('fail-read/{id}/virtual');release();expect(modal).to_have_count(0);expect(page.get_by_role('button',name='Retry view load',exact=True)).to_be_visible() + check('Composed virtual save stays B and refresh failure does not replay',state()['operations'][-1]['method']=='CreateVirtualTagAsync' and state()['operations'][-1]['args'][0]=='B' and page.get_by_role('button',name='Add virtual tag',exact=True).is_disabled()) + retry();expect(page.get_by_role('button',name='Add virtual tag',exact=True)).to_be_enabled();check('Virtual Retry is read-only',len(state()['operations'])==5) + tab('Alarms');page.locator('tbody tr').get_by_role('button',name='Edit',exact=True).click();opened();modal.get_by_label('Name',exact=True).fill('alarm-updated');modal.locator('.modal-footer .btn-primary').click();expect(modal).to_have_attribute('aria-busy','true');command('hold-read/{id}/LoadAlarmsForEquipmentAsync/B');release();expect(modal).to_have_count(0) + command('route/{id}/A');expect(page.locator('h1')).to_have_text('equipment-a-updated');expect(page.locator('tbody')).to_contain_text('alarm-A');page.get_by_role('button',name='Add alarm',exact=True).click();expect(modal).to_be_visible();command('release-read/{id}/success');expect(modal.locator('.modal-footer .btn-primary')).to_be_enabled() + check('Saved B callback already reading cannot close new A alarm',modal.locator('.modal-title').inner_text().strip()=='New scripted alarm' and modal.get_by_label('ScriptedAlarmId',exact=True).input_value()=='' and page.locator('tbody').inner_text().find('alarm-A')>=0) + check('Alarm write uses captured row target',state()['operations'][-1]['method']=='UpdateScriptedAlarmAsync' and state()['operations'][-1]['args'][0]=='B-alarm') + page.screenshot(path=str(out/(mode+'-composed-alarm.png')));modal.locator('[data-initial-focus]').click();expect(modal).to_have_count(0) + check('Exactly six synthetic writes, no operational calls',len(state()['operations'])==6 and state()['forbidden']==0) + check('No document overflow/page errors/external hosts',page.evaluate('document.documentElement.scrollWidth<=innerWidth+1') and errors==[] and external==[]) + results['scenes'].append({'mode':mode,'zoom':factor,'geometry':page.evaluate('({innerWidth,innerHeight,dpr:devicePixelRatio,scrollWidth:document.documentElement.scrollWidth})'),'checks':checks,'errors':errors,'externalHosts':external,'state':state()});(out/'browser-results.json').write_text(json.dumps(results,indent=2)+'\n') +print(json.dumps({'scenes':len(results['scenes']),'checks':sum(len(s['checks']) for s in results['scenes'])})) diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-after.json b/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-after.json new file mode 100644 index 000000000..115f35ed6 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-after.json @@ -0,0 +1,173 @@ +[ + { + "oldOutcome": "success", + "BUsableWhileAPending": true, + "OldCompletionDidNotUnlockB": true, + "BUnlockedOnlyOnOwnOutcome": true, + "operations": [ + { + "method": "UpdateEquipmentAsync", + "args": [ + "A", + { + "name": "equipment-a", + "machineCode": "MC-A", + "unsLineId": "LINE-A", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2020, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + }, + { + "method": "UpdateEquipmentAsync", + "args": [ + "B", + { + "name": "equipment-b", + "machineCode": "MC-B", + "unsLineId": "LINE-B", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2020, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + } + ], + "pageErrors": [] + }, + { + "oldOutcome": "failure", + "BUsableWhileAPending": true, + "OldCompletionDidNotUnlockB": true, + "BUnlockedOnlyOnOwnOutcome": true, + "operations": [ + { + "method": "UpdateEquipmentAsync", + "args": [ + "A", + { + "name": "equipment-a", + "machineCode": "MC-A", + "unsLineId": "LINE-A", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2020, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + }, + { + "method": "UpdateEquipmentAsync", + "args": [ + "B", + { + "name": "equipment-b", + "machineCode": "MC-B", + "unsLineId": "LINE-B", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2020, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + } + ], + "pageErrors": [] + }, + { + "oldOutcome": "exception", + "BUsableWhileAPending": true, + "OldCompletionDidNotUnlockB": true, + "BUnlockedOnlyOnOwnOutcome": true, + "operations": [ + { + "method": "UpdateEquipmentAsync", + "args": [ + "A", + { + "name": "equipment-a", + "machineCode": "MC-A", + "unsLineId": "LINE-A", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2020, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + }, + { + "method": "UpdateEquipmentAsync", + "args": [ + "B", + { + "name": "equipment-b", + "machineCode": "MC-B", + "unsLineId": "LINE-B", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2020, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + } + ], + "pageErrors": [] + } +] diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-after.log b/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-after.log new file mode 100644 index 000000000..b5857bd35 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-after.log @@ -0,0 +1 @@ +{"scenes": 3, "allPassed": true} diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-before.json b/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-before.json new file mode 100644 index 000000000..4f5f836c9 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-before.json @@ -0,0 +1,32 @@ +{ + "source": "Already-built pre-peer-fix candidate; actual composed page", + "BName": "equipment-b", + "BUsableWhileAPending": false, + "operations": [ + { + "method": "UpdateEquipmentAsync", + "args": [ + "A", + { + "name": "equipment-a", + "machineCode": "MC-A", + "unsLineId": "LINE-A", + "zTag": null, + "sapid": null, + "manufacturer": "Maker", + "model": "Model", + "serialNumber": "Serial", + "hardwareRevision": "Hardware", + "softwareRevision": "Software", + "yearOfConstruction": 2020, + "assetLocation": "Location", + "manufacturerUri": "https://fixture.local/manufacturer", + "deviceManualUri": "https://fixture.local/manual", + "enabled": true + }, + "AQI=" + ] + } + ], + "BOnlyUnblockedAfterACompleted": true +} diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-confirm.py b/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-confirm.py new file mode 100644 index 000000000..07b27e847 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/busy-route-confirm.py @@ -0,0 +1,15 @@ +"""Two independent composed page writes: old A outcomes never unlock pending B.""" +import json,sys +from pathlib import Path +from playwright.sync_api import sync_playwright,expect +out=Path(__file__).parent;origin=sys.argv[1];records=[] +with sync_playwright() as p: + b=p.chromium.launch() + for outcome in ['success','failure','exception']: + page=b.new_page();errors=[];page.on('pageerror',lambda e:errors.append(str(e)));page.goto(origin);expect(page.locator('#ready')).to_have_text('ready');expect(page.locator('h1')).to_have_text('equipment-a');sid=page.locator('#session').inner_text() + def command(path):assert page.request.post(origin+'/fixture/'+path.replace('{id}',sid)).ok + page.get_by_role('button',name='Save changes',exact=True).click();expect(page.get_by_label('Name',exact=True)).to_be_disabled();command('route/{id}/B');expect(page.locator('h1')).to_have_text('equipment-b');expect(page.get_by_label('Name',exact=True)).to_be_enabled() + page.get_by_role('button',name='Save changes',exact=True).click();expect(page.get_by_label('Name',exact=True)).to_be_disabled();command('release-target/{id}/A/'+outcome);page.wait_for_timeout(150);expect(page.get_by_label('Name',exact=True)).to_be_disabled();assert page.locator('[data-testid=page-error-boundary]').count()==0 + command('release-target/{id}/B/success');expect(page.get_by_label('Name',exact=True)).to_be_enabled();state=page.request.get(origin+'/fixture/state/'+sid).json();assert len(state['operations'])==2 and errors==[];records.append({'oldOutcome':outcome,'BUsableWhileAPending':True,'OldCompletionDidNotUnlockB':True,'BUnlockedOnlyOnOwnOutcome':True,'operations':state['operations'],'pageErrors':errors});page.close() + b.close() +(out/'busy-route-after.json').write_text(json.dumps(records,indent=2)+'\n');print(json.dumps({'scenes':len(records),'allPassed':True})) diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/canary-build.log b/docs/ui-consistency/evidence/ot13-equipment-caller/canary-build.log new file mode 100644 index 000000000..ddf0a2b9a --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/canary-build.log @@ -0,0 +1,47 @@ + + Determining projects to restore... + All projects are up-to-date for restore. + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/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/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/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/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/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/ui-equipment-caller-canary/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/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/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/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/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/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/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/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/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/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + EquipmentCallerCanary -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-canary/bin/EquipmentCallerCanary/debug/EquipmentCallerCanary.dll + +Build succeeded. + 0 Warning(s) + 0 Error(s) + +Time Elapsed 00:00:03.61 diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Components/App.razor b/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Components/App.razor new file mode 100644 index 000000000..49fb335ee --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Components/App.razor @@ -0,0 +1,3 @@ + + + diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Components/Fixture.razor b/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Components/Fixture.razor new file mode 100644 index 000000000..cd681486d --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Components/Fixture.razor @@ -0,0 +1,16 @@ +@page "/" +@page "/uns/equipment/{RouteId}" +@implements IDisposable +@inject FixtureSession Session +@inject FixtureRegistry Registry +
+

Local synthetic Equipment caller fixture

+@(_ready?"ready":"loading")@Session.Id +

Access denied.

+
+@code{ + [Parameter]public string? RouteId{get;set;} + private bool _ready; + protected override void OnAfterRender(bool firstRender){if(firstRender){Registry.Sessions.TryAdd(Session.Id,Session);Session.Changed=()=>InvokeAsync(StateHasChanged);_ready=true;StateHasChanged();}} + public void Dispose(){Session.Changed=null;Registry.Sessions.TryRemove(Session.Id,out _);} +} diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Components/_Imports.razor b/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Components/_Imports.razor new file mode 100644 index 000000000..fd5ef854c --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Components/_Imports.razor @@ -0,0 +1,6 @@ +@using Microsoft.AspNetCore.Components +@using Microsoft.AspNetCore.Components.Authorization +@using Microsoft.AspNetCore.Components.Web +@using static Microsoft.AspNetCore.Components.Web.RenderMode +@using ZB.MOM.WW.Theme +@using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Uns diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/canary/EquipmentCallerCanary.csproj b/docs/ui-consistency/evidence/ot13-equipment-caller/canary/EquipmentCallerCanary.csproj new file mode 100644 index 000000000..cdeaa7cab --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/canary/EquipmentCallerCanary.csproj @@ -0,0 +1 @@ +net10.0enableenableConfigModalCanary diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Program.cs b/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Program.cs new file mode 100644 index 000000000..1a78f79bc --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/canary/Program.cs @@ -0,0 +1,96 @@ +using System.Collections.Concurrent; +using System.Reflection; +using System.Security.Claims; +using Microsoft.AspNetCore.Components.Authorization; +using Microsoft.EntityFrameworkCore; +using ConfigModalCanary.Components; +using ZB.MOM.WW.OtOpcUa.AdminUI.Browsing; +using ZB.MOM.WW.OtOpcUa.AdminUI.Clients; +using ZB.MOM.WW.OtOpcUa.AdminUI.Uns; +using ZB.MOM.WW.OtOpcUa.Commons.Interfaces; +using ZB.MOM.WW.OtOpcUa.Configuration; +using ZB.MOM.WW.OtOpcUa.Configuration.Enums; +var builder=WebApplication.CreateBuilder(args);builder.WebHost.UseStaticWebAssets(); +builder.Services.AddRazorComponents().AddInteractiveServerComponents().AddCircuitOptions(o=>o.DisconnectedCircuitRetentionPeriod=TimeSpan.Zero); +builder.Services.AddSingleton();builder.Services.AddScoped(); +builder.Services.AddDbContextFactory(o=>o.UseInMemoryDatabase("equipment-fixture-unused-export")); +builder.Services.AddScoped();builder.Services.AddScoped(); +builder.Services.AddAuthorizationCore(o=>{o.AddPolicy("ConfigEditor",p=>p.RequireRole("Administrator","Designer"));o.AddPolicy("DriverOperator",p=>p.RequireRole("Administrator","Operator"));}); +builder.Services.AddCascadingAuthenticationState();builder.Services.AddScoped(); +builder.Services.AddScoped(s=>{var p=DispatchProxy.Create();((SyntheticEquipment)(object)p).Session=s.GetRequiredService();return p;}); +builder.Services.AddScoped(_=>DispatchProxy.Create()); +builder.Services.AddScoped(_=>DispatchProxy.Create()); +builder.Services.AddScoped(_=>DispatchProxy.Create()); +var app=builder.Build();app.UseAntiforgery();app.MapStaticAssets(); +app.MapGet("/fixture/provenance",()=>new{purpose="Loopback synthetic Equipment page + actual child wrappers",backend="Fake equipment reads/deferred mutations; unused CSV context is EF InMemory; operational adapters refuse",auth="Synthetic Designer claims; ConfigEditor permitted, DriverOperator denied"}); +app.MapGet("/fixture/state/{id:guid}",(Guid id,FixtureRegistry registry)=>registry.Sessions.TryGetValue(id,out var s)?Results.Ok(new{target=s.Target,operations=s.Operations.ToArray(),reads=s.Reads.ToArray(),s.Forbidden}):Results.NotFound()); +app.MapPost("/fixture/route/{id:guid}/{target}",async(Guid id,string target,FixtureRegistry registry)=>{if(target is not("A" or "B")||!registry.Sessions.TryGetValue(id,out var s))return Results.BadRequest();s.Target=target;if(s.Changed is not null)await s.Changed();return Results.Ok();}); +app.MapPost("/fixture/fail-read/{id:guid}/{surface}",(Guid id,string surface,FixtureRegistry registry)=>{if(surface is not("details" or "references" or "virtual" or "alarms")||!registry.Sessions.TryGetValue(id,out var s))return Results.BadRequest();s.FailRead=surface;return Results.Ok();}); +app.MapPost("/fixture/hold-read/{id:guid}/{method}/{target}",(Guid id,string method,string target,FixtureRegistry registry)=>{if(method is not("LoadEquipmentAsync" or "LoadVirtualTagAsync" or "LoadScriptedAlarmAsync" or "LoadReferencesForEquipmentAsync" or "LoadVirtualTagsForEquipmentAsync" or "LoadAlarmsForEquipmentAsync")||!registry.Sessions.TryGetValue(id,out var s))return Results.BadRequest();s.HoldReadMethod=method;s.HoldReadId=target;return Results.Ok();}); +app.MapPost("/fixture/release-read/{id:guid}/{outcome}",(Guid id,string outcome,FixtureRegistry registry)=>{if(outcome is not("success" or "failure")||!registry.Sessions.TryGetValue(id,out var s)||s.ReadPending is null)return Results.BadRequest();s.ReadPending.TrySetResult(outcome=="success");return Results.Ok();}); +app.MapPost("/fixture/release/{id:guid}/{outcome}",(Guid id,string outcome,FixtureRegistry registry)=>{if(outcome is not("success" or "failure")||!registry.Sessions.TryGetValue(id,out var s)||s.Pending is null)return Results.BadRequest();s.Pending.TrySetResult(new(outcome=="success",outcome=="failure"?"Synthetic mutation failure":null,"created-fixture"));return Results.Ok();}); +app.MapPost("/fixture/release-target/{id:guid}/{target}/{outcome}",(Guid id,string target,string outcome,FixtureRegistry registry)=>{if(target is not("A" or "B")||outcome is not("success" or "failure" or "exception")||!registry.Sessions.TryGetValue(id,out var s)||!s.TargetWrites.TryGetValue(target,out var pending))return Results.BadRequest();if(outcome=="exception")pending.TrySetException(new InvalidOperationException("Synthetic retired write exception"));else pending.TrySetResult(new(outcome=="success",outcome=="failure"?"Synthetic retired write failure":null));return Results.Ok();}); +app.MapPost("/api/script-analysis/diagnostics",()=>Results.Ok(new{markers=Array.Empty()})); +app.MapRazorComponents().AddInteractiveServerRenderMode();app.Run(); +public sealed class FixtureAuth:AuthenticationStateProvider{public override Task GetAuthenticationStateAsync()=>Task.FromResult(new AuthenticationState(new ClaimsPrincipal(new ClaimsIdentity([new Claim(ClaimTypes.Name,"fixture"),new Claim(ClaimTypes.Role,"Designer")],"fixture"))));} +public sealed class FixtureRegistry{public ConcurrentDictionary Sessions=new();} +public sealed class FixtureSession +{ + public readonly Guid Id=Guid.NewGuid();public string Target="A";public Func? Changed; + public string? FailRead,HoldReadMethod,HoldReadId;public TaskCompletionSource? ReadPending; + public TaskCompletionSource? Pending;public int Forbidden; + public readonly ConcurrentDictionary> TargetWrites=new(); + public readonly ConcurrentQueue Operations=new();public readonly ConcurrentQueue Reads=new(); + public readonly ConcurrentDictionary Equipment=new();public readonly ConcurrentDictionary Overrides=new();public readonly ConcurrentDictionary Removed=new(); + public async Task BeforeRead(string method,string id) + { + Reads.Enqueue(method+":"+id); + if(HoldReadMethod==method&&HoldReadId==id){HoldReadMethod=null;ReadPending=new(TaskCreationOptions.RunContinuationsAsynchronously);if(!await ReadPending.Task)throw new InvalidOperationException("Synthetic retired read failure");} + var surface=method switch{"LoadEquipmentAsync"=>"details","LoadReferencesForEquipmentAsync"=>"references","LoadVirtualTagsForEquipmentAsync"=>"virtual","LoadAlarmsForEquipmentAsync"=>"alarms",_=>null}; + if(surface is not null&&FailRead==surface){FailRead=null;throw new InvalidOperationException("Synthetic current view read failure");} + } + public async Task Dispatch(string method,object?[] args) + { + var actual=args.Where(x=>x is not CancellationToken).Select(x=>x is byte[] bytes?bytes.ToArray():x).ToArray(); + Operations.Enqueue(new(method,actual));var pending=new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);Pending=pending; + if(method=="UpdateEquipmentAsync")TargetWrites[(string)actual[0]!]=pending; + var result=await pending.Task; + if(result.Ok) + { + if(method=="UpdateEquipmentAsync")Equipment[(string)actual[0]!]=SyntheticEquipment.FromInput((string)actual[0]!, (EquipmentInput)actual[1]!); + if(method=="SetReferenceOverrideAsync"){var value=(string?)actual[1];if(string.IsNullOrWhiteSpace(value))Overrides.TryRemove((string)actual[0]!,out _);else Overrides[(string)actual[0]!]=value;} + if(method is "RemoveReferenceAsync" or "DeleteVirtualTagAsync" or "DeleteScriptedAlarmAsync")Removed[(string)actual[0]!]=true; + } + return result; + } +} +public sealed record Mutation(string Method,object?[] Args); +public class SyntheticEquipment:DispatchProxy +{ + public FixtureSession Session=null!; + public static EquipmentEditDto Equipment(string id)=>new(id,"equipment-"+id.ToLowerInvariant(),"MC-"+id,"LINE-"+id,null,null,null,"Maker","Model","Serial","Hardware","Software",2020,"Location","https://fixture.local/manufacturer","https://fixture.local/manual",true,[1,2]); + public static EquipmentEditDto FromInput(string id,EquipmentInput x)=>new(id,x.Name,x.MachineCode,x.UnsLineId,null,x.ZTag,x.SAPID,x.Manufacturer,x.Model,x.SerialNumber,x.HardwareRevision,x.SoftwareRevision,x.YearOfConstruction,x.AssetLocation,x.ManufacturerUri,x.DeviceManualUri,x.Enabled,[3,4]); + protected override object? Invoke(MethodInfo? method,object?[]? args) + { + var name=method!.Name;var id=args is{Length:>0}?args[0]?.ToString()??"":""; + switch(name) + { + case "LoadEquipmentAsync":return Read(name,id,()=>Session.Equipment.GetValueOrDefault(id)??Equipment(id)); + case "LoadEquipmentPickContextAsync":return Read(name,id,()=>new EquipmentPickContext([("LINE-A","Synthetic line A"),("LINE-B","Synthetic line B")],[])); + case "LoadReferencesForEquipmentAsync":return Read>(name,id,()=>Enumerable.Range(1,2).Select(i=>id+"-ref-"+i).Where(r=>!Session.Removed.ContainsKey(r)).Select(r=>new EquipmentReferenceRow(r,Session.Overrides.GetValueOrDefault(r)??r,"raw/"+r,"Double",TagAccessLevel.Read,Session.Overrides.GetValueOrDefault(r),0,[1,2])).ToArray()); + case "LoadVirtualTagsForEquipmentAsync":return Read>(name,id,()=>Session.Removed.ContainsKey(id+"-vtag")?[]:[new(id+"-vtag","virtual-tag-"+id,"Double","S1",true)]); + case "LoadAlarmsForEquipmentAsync":return Read>(name,id,()=>Session.Removed.ContainsKey(id+"-alarm")?[]:[new(id+"-alarm","alarm-"+id,"LimitAlarm",500,"S1",true)]); + case "LoadVirtualTagAsync":return Read(name,id,()=>new(id,id[..1],"virtual-tag","Double","S1",true,null,false,true,[1,2])); + case "LoadScriptedAlarmAsync":return Read(name,id,()=>new(id,id[..1],"alarm","LimitAlarm",500,"message","S1",true,true,true,[1,2])); + case "LoadScriptsAsync":return Read>(name,id,()=>[("S1","Synthetic shared script")]); + case "GetScriptSourceAsync":return Read<(string SourceCode,byte[] RowVersion,string Name)?>(name,id,()=>("// shared synthetic\nreturn 1;",new byte[]{1,2},"Synthetic shared script")); + case "CountVirtualTagsUsingScriptAsync":return Task.FromResult(1); + case "LoadReferencePickerRootAsync":return Read(name,id,()=>{var root=new RawNode{Kind=RawNodeKind.Cluster,Key="cluster-"+id,EntityId=id,ClusterId=id,DisplayName="Synthetic cluster "+id,Expanded=true,Loaded=true};root.Children.Add(new(){Kind=RawNodeKind.Tag,Key="tag-"+id,EntityId="tag-"+id,ClusterId=id,DisplayName="Synthetic raw tag "+id});return root;}); + case "LoadDescendantTagIdsAsync":return Task.FromResult>(["tag-"+Session.Target]); + case "CreateEquipmentAsync":case "UpdateEquipmentAsync":case "SetReferenceOverrideAsync":case "RemoveReferenceAsync":case "AddReferencesAsync":case "CreateVirtualTagAsync":case "UpdateVirtualTagAsync":case "DeleteVirtualTagAsync":case "CreateScriptedAlarmAsync":case "UpdateScriptedAlarmAsync":case "DeleteScriptedAlarmAsync":return Session.Dispatch(name,args!); + default:Interlocked.Increment(ref Session.Forbidden);throw new InvalidOperationException("Refused operation: "+name); + } + } + private async Task Read(string method,string id,Func value){await Session.BeforeRead(method,id);return value();} +} +public class RefuseOperational:DispatchProxy{protected override object? Invoke(MethodInfo? method,object?[]? args)=>throw new InvalidOperationException("No operational access in Equipment fixture: "+method?.Name);} diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/check-boundaries.py b/docs/ui-consistency/evidence/ot13-equipment-caller/check-boundaries.py new file mode 100644 index 000000000..e76a3a89c --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/check-boundaries.py @@ -0,0 +1,38 @@ +"""Equipment contract/source boundaries, supplementary to actual component and browser tests.""" +import hashlib,json,re,subprocess +from pathlib import Path +root=Path(__file__).resolve().parent +while not list(root.glob('*.slnx')): + if root.parent==root:raise RuntimeError('Repository root not found') + root=root.parent +baseline='b3f6001f3bf8fd0b2c177fb43f31e204638d0544' +page='src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/EquipmentPage.razor' +def old(path):return subprocess.check_output(['git','show',baseline+':'+path],cwd=root) +prior=old(page).decode();source=(root/page).read_text() +def method(text,marker): + a=text.index(marker);start=text.index('{',a);depth=1;i=start+1 + while depth: + if text[i]=='{':depth+=1 + elif text[i]=='}':depth-=1 + i+=1 + return text[a:i] +def payload(text):return re.sub(r'\s+','',re.search(r'new EquipmentInput\((.*?)\);',text,re.S).group(1).replace('_form.','form.')) +checks={ + 'formModelDefaultsAnnotationsExact':prior[prior.index(' private sealed class FormModel'):].strip()==source[source.index(' private sealed class FormModel'):].strip(), + 'loadedDtoFormMapExact':method(prior,' private void LoadFormFrom(')==method(source,' private void LoadFormFrom('), + 'all15PayloadFieldsOrderExact':payload(prior)==payload(source) and len(payload(source).split(','))==15, + 'sameServiceApiSet':set(re.findall(r'Svc\.(\w+)\(',prior))==set(re.findall(r'Svc\.(\w+)\(',source)), + 'sameRoutesQueryAndAuthorization':all(x in source for x in ['@page "/uns/equipment/new"','@page "/uns/equipment/{EquipmentId}"','@attribute [Authorize(Policy = AdminUiPolicies.ConfigEditor)]','[SupplyParameterFromQuery] public string? LineId','@rendermode RenderMode.InteractiveServer']), + 'createRedirectPreserved':'Nav.NavigateTo($"/uns/equipment/{result.CreatedId}")' in source, + 'rawPathAbbreviationFullTooltipPreserved':'title="@r.RawPath"' in source and '@DisplayText.Abbreviate(r.RawPath, 48)' in source, + 'allThreeDestructiveIntentsStillConfirm':all(x in source for x in ['ConfirmRemoveReference(presentation, equipmentId, r)','ConfirmDeleteVirtualTag(presentation, equipmentId, v.VirtualTagId, v.Name)','ConfirmDeleteAlarm(presentation, equipmentId, a.ScriptedAlarmId, a.Name)']), +} +assert all(checks.values()),checks +files=[] +for path in ['src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Uns/EquipmentInput.cs','src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Uns/IUnsTreeService.cs','src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Uns/EquipmentChildRows.cs']: + data=(root/path).read_bytes();unchanged=old(path)==data;assert unchanged,path;files.append({'file':path,'sha256':hashlib.sha256(data).hexdigest(),'unchanged':unchanged}) +test='tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs' +wiring='tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Uns/DeleteConfirmationWiringTests.cs' +result={'baseline':baseline,'page':page,'beforeSha256':hashlib.sha256(prior.encode()).hexdigest(),'afterSha256':hashlib.sha256(source.encode()).hexdigest(),'test':test,'testSha256':hashlib.sha256((root/test).read_bytes()).hexdigest(),'checks':checks,'unchangedContracts':files,'sharedWiring':{'path':wiring,'sha256':hashlib.sha256((root/wiring).read_bytes()).hexdigest(),'ownerCommit':'e411f89f6','note':'Root integrates Equipment first-method and gateway ScriptEdit third-method refinements; not part of this worker commit'},'fieldInventory':{'detailsEditable':15,'disabledSystemEquipmentId':1,'requiredOrParserErrorLinks':['Name','MachineCode','UnsLineId','YearOfConstruction'],'persistentExistingHints':['EquipmentId','Name','ZTag'],'referenceOverride':'unique per-row id +visible row/column composite name +persistent clear-override help +shared scoped error','childWrappers':['AddReferenceModal','VirtualTagModal','ScriptedAlarmModal'],'confirmation':'RawConfirmDialog outside every tab; captured operation and explicit page/confirmation Target'},'scope':'Source checks do not certify runtime; see actual TRX/browser/focus/busy evidence. VoiceOver explicitly excluded.'} +(root/'docs/ui-consistency/evidence/ot13-equipment-caller/source-boundaries.json').write_text(json.dumps(result,indent=2)+'\n') +print(json.dumps({'checks':len(checks),'unchangedContracts':len(files),'allPassed':True})) diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/cleanup.json b/docs/ui-consistency/evidence/ot13-equipment-caller/cleanup.json new file mode 100644 index 000000000..534a305f9 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/cleanup.json @@ -0,0 +1,11 @@ +{ + "origin": "http://127.0.0.1:61070", + "ownedHostStopped": true, + "verification": "Connection refused after stopping only owned dotnet session", + "browserContextsClosedByHarness": true, + "parentPrivateSqlUntouched": true, + "existingRigsUntouched": true, + "noContainersNetworksOrCredentialsCreated": true, + "allMutationsSynthetic": true, + "timestampUtc": "2026-11-14T06:44:09.589600+00:00" +} diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/concurrent-scriptedit-compile.log b/docs/ui-consistency/evidence/ot13-equipment-caller/concurrent-scriptedit-compile.log new file mode 100644 index 000000000..37b5c7248 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/concurrent-scriptedit-compile.log @@ -0,0 +1,100 @@ + + Determining projects to restore... + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.csproj (in 52 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.csproj (in 52 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.csproj (in 47 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.csproj (in 52 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.csproj (in 57 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.csproj (in 0.8 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.csproj (in 188 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Commons/ZB.MOM.WW.OtOpcUa.Commons.csproj (in 92 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.csproj (in 208 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Cluster/ZB.MOM.WW.OtOpcUa.Cluster.csproj (in 109 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Security/ZB.MOM.WW.OtOpcUa.Security.csproj (in 239 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.csproj (in 235 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.csproj (in 0.9 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip/ZB.MOM.WW.OtOpcUa.Driver.AbCip.csproj (in 131 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.csproj (in 239 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.csproj (in 228 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.csproj (in 224 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.ControlPlane/ZB.MOM.WW.OtOpcUa.ControlPlane.csproj (in 111 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.csproj (in 35 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.csproj (in 5 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/ZB.MOM.WW.OtOpcUa.Runtime.csproj (in 260 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Abstractions/ZB.MOM.WW.OtOpcUa.Core.Abstractions.csproj (in 9 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.csproj (in 5 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.csproj (in 9 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting/ZB.MOM.WW.OtOpcUa.Core.Scripting.csproj (in 11 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer/ZB.MOM.WW.OtOpcUa.OpcUaServer.csproj (in 249 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.csproj (in 43 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Configuration/ZB.MOM.WW.OtOpcUa.Configuration.csproj (in 133 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/ZB.MOM.WW.OtOpcUa.AdminUI.csproj (in 49 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.csproj (in 2 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.csproj (in 1 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.csproj (in 17 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.FOCAS.Contracts/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.csproj (in 15 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.csproj (in 29 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.csproj (in 42 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core/ZB.MOM.WW.OtOpcUa.Core.csproj (in 12 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.csproj (in 0.8 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.csproj (in 4 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.csproj (in 4 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.csproj (in 47 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Tooling/ZB.MOM.WW.OtOpcUa.Analyzers/ZB.MOM.WW.OtOpcUa.Analyzers.csproj (in 25 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.csproj (in 36 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql/ZB.MOM.WW.OtOpcUa.Driver.Sql.csproj (in 51 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.csproj (in 64 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.csproj (in 50 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj (in 124 ms). + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll +/Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ScriptEditLifecycleTests.cs(44,28): error CS1061: 'IRenderedComponent' does not contain a definition for 'SetParametersAndRender' and no accessible extension method 'SetParametersAndRender' accepting a first argument of type 'IRenderedComponent' could be found (are you missing a using directive or an assembly reference?) [/Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj] +/Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ScriptEditLifecycleTests.cs(47,13): error CS1061: 'IRenderedComponent' does not contain a definition for 'SetParametersAndRender' and no accessible extension method 'SetParametersAndRender' accepting a first argument of type 'IRenderedComponent' could be found (are you missing a using directive or an assembly reference?) [/Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj] +/Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ScriptEditLifecycleTests.cs(57,13): error CS1061: 'IRenderedComponent' does not contain a definition for 'SetParametersAndRender' and no accessible extension method 'SetParametersAndRender' accepting a first argument of type 'IRenderedComponent' could be found (are you missing a using directive or an assembly reference?) [/Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj] +/Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ScriptEditLifecycleTests.cs(90,13): error CS1061: 'IRenderedComponent' does not contain a definition for 'SetParametersAndRender' and no accessible extension method 'SetParametersAndRender' accepting a first argument of type 'IRenderedComponent' could be found (are you missing a using directive or an assembly reference?) [/Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj] +/Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ScriptEditLifecycleTests.cs(89,103): error xUnit1031: Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031) [/Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj] diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/create-query-harness-first.log b/docs/ui-consistency/evidence/ot13-equipment-caller/create-query-harness-first.log new file mode 100644 index 000000000..9ef0625a7 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/create-query-harness-first.log @@ -0,0 +1,107 @@ + + Determining projects to restore... + All projects are up-to-date for restore. + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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.49] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredCreateCompletionCannotRedirectReplacementRoute [FAIL] +[xUnit.net 00:00:01.52] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.ConfirmedCreateWithoutReturnedIdDoesNotAllowReplayOrPretendToRefresh [FAIL] + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredCreateCompletionCannotRedirectReplacementRoute [< 1 ms] + Error Message: + System.ArgumentException : To pass a value to a SupplyParameterFromQuery parameter, use the NavigationManager and navigate to the URI. +For example: + +var uri = NavigationManager.GetUriWithQueryParameter("LineId", "LINE"); +NavigationManager.NavigateTo(uri); + Stack Trace: + at Bunit.ComponentParameterCollectionBuilder`1.GetParameterInfo[TValue](Expression`1 parameterSelector, Object value) in /_/src/bunit/ComponentParameterCollectionBuilder.cs:line 507 + at Bunit.ComponentParameterCollectionBuilder`1.Add[TValue](Expression`1 parameterSelector, TValue value) in /_/src/bunit/ComponentParameterCollectionBuilder.cs:line 51 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.<>c.b__18_0(ComponentParameterCollectionBuilder`1 p) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 204 + at Bunit.ComponentParameterCollectionBuilder`1..ctor(Action`1 parameterAdder) in /_/src/bunit/ComponentParameterCollectionBuilder.cs:line 38 + at Bunit.BunitContext.Render[TComponent](Action`1 parameterBuilder) in /_/src/bunit/BunitContext.cs:line 148 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.NewEquipment() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 204 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredCreateCompletionCannotRedirectReplacementRoute() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 190 +--- End of stack trace from previous location --- + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.ConfirmedCreateWithoutReturnedIdDoesNotAllowReplayOrPretendToRefresh [< 1 ms] + Error Message: + System.ArgumentException : To pass a value to a SupplyParameterFromQuery parameter, use the NavigationManager and navigate to the URI. +For example: + +var uri = NavigationManager.GetUriWithQueryParameter("LineId", "LINE"); +NavigationManager.NavigateTo(uri); + Stack Trace: + at Bunit.ComponentParameterCollectionBuilder`1.GetParameterInfo[TValue](Expression`1 parameterSelector, Object value) in /_/src/bunit/ComponentParameterCollectionBuilder.cs:line 507 + at Bunit.ComponentParameterCollectionBuilder`1.Add[TValue](Expression`1 parameterSelector, TValue value) in /_/src/bunit/ComponentParameterCollectionBuilder.cs:line 51 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.<>c.b__18_0(ComponentParameterCollectionBuilder`1 p) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 204 + at Bunit.ComponentParameterCollectionBuilder`1..ctor(Action`1 parameterAdder) in /_/src/bunit/ComponentParameterCollectionBuilder.cs:line 38 + at Bunit.BunitContext.Render[TComponent](Action`1 parameterBuilder) in /_/src/bunit/BunitContext.cs:line 148 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.NewEquipment() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 204 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.ConfirmedCreateWithoutReturnedIdDoesNotAllowReplayOrPretendToRefresh() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 198 +--- End of stack trace from previous location --- +[xUnit.net 00:00:01.55] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.CreateRedirectsOnceWithOriginalDefaultPayload [FAIL] + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.CreateRedirectsOnceWithOriginalDefaultPayload [< 1 ms] + Error Message: + System.ArgumentException : To pass a value to a SupplyParameterFromQuery parameter, use the NavigationManager and navigate to the URI. +For example: + +var uri = NavigationManager.GetUriWithQueryParameter("LineId", "LINE"); +NavigationManager.NavigateTo(uri); + Stack Trace: + at Bunit.ComponentParameterCollectionBuilder`1.GetParameterInfo[TValue](Expression`1 parameterSelector, Object value) in /_/src/bunit/ComponentParameterCollectionBuilder.cs:line 507 + at Bunit.ComponentParameterCollectionBuilder`1.Add[TValue](Expression`1 parameterSelector, TValue value) in /_/src/bunit/ComponentParameterCollectionBuilder.cs:line 51 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.<>c.b__18_0(ComponentParameterCollectionBuilder`1 p) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 204 + at Bunit.ComponentParameterCollectionBuilder`1..ctor(Action`1 parameterAdder) in /_/src/bunit/ComponentParameterCollectionBuilder.cs:line 38 + at Bunit.BunitContext.Render[TComponent](Action`1 parameterBuilder) in /_/src/bunit/BunitContext.cs:line 148 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.NewEquipment() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 204 + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.CreateRedirectsOnceWithOriginalDefaultPayload() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 181 +--- End of stack trace from previous location --- +WARNING: Overwriting results file: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-equipment-caller/green.trx +Results File: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-equipment-caller/green.trx + +Failed! - Failed: 3, Passed: 50, Skipped: 0, Total: 53, Duration: 477 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/desktop-composed-alarm.png b/docs/ui-consistency/evidence/ot13-equipment-caller/desktop-composed-alarm.png new file mode 100644 index 000000000..c35295052 Binary files /dev/null and b/docs/ui-consistency/evidence/ot13-equipment-caller/desktop-composed-alarm.png differ diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/desktop-details-recovery.png b/docs/ui-consistency/evidence/ot13-equipment-caller/desktop-details-recovery.png new file mode 100644 index 000000000..f0466bf6d Binary files /dev/null and b/docs/ui-consistency/evidence/ot13-equipment-caller/desktop-details-recovery.png differ diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/green.log b/docs/ui-consistency/evidence/ot13-equipment-caller/green.log new file mode 100644 index 000000000..6267eeef5 --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/green.log @@ -0,0 +1,56 @@ + + Determining projects to restore... + All projects are up-to-date for restore. + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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. +WARNING: Overwriting results file: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-equipment-caller/green.trx +Results File: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-equipment-caller/green.trx + +Passed! - Failed: 0, Passed: 57, Skipped: 0, Total: 57, Duration: 494 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/green.trx b/docs/ui-consistency/evidence/ot13-equipment-caller/green.trx new file mode 100644 index 000000000..165a84f7a --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/green.trx @@ -0,0 +1,370 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.0.2+dd36e86129 (64-bit .NET 10.0.14) +[xUnit.net 00:00:00.30] Discovering: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:01.03] Discovered: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:01.16] Starting: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:01.69] Finished: ZB.MOM.WW.OtOpcUa.AdminUI.Tests + + + + \ No newline at end of file diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/phone-composed-alarm.png b/docs/ui-consistency/evidence/ot13-equipment-caller/phone-composed-alarm.png new file mode 100644 index 000000000..3a0cb06ed Binary files /dev/null and b/docs/ui-consistency/evidence/ot13-equipment-caller/phone-composed-alarm.png differ diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/phone-details-recovery.png b/docs/ui-consistency/evidence/ot13-equipment-caller/phone-details-recovery.png new file mode 100644 index 000000000..0592691e3 Binary files /dev/null and b/docs/ui-consistency/evidence/ot13-equipment-caller/phone-details-recovery.png differ diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/real200-composed-alarm.png b/docs/ui-consistency/evidence/ot13-equipment-caller/real200-composed-alarm.png new file mode 100644 index 000000000..babff48ad Binary files /dev/null and b/docs/ui-consistency/evidence/ot13-equipment-caller/real200-composed-alarm.png differ diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/real200-details-recovery-cdp-first.png b/docs/ui-consistency/evidence/ot13-equipment-caller/real200-details-recovery-cdp-first.png new file mode 100644 index 000000000..c729a4a3e Binary files /dev/null and b/docs/ui-consistency/evidence/ot13-equipment-caller/real200-details-recovery-cdp-first.png differ diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/real200-details-recovery-playwright-blank.png b/docs/ui-consistency/evidence/ot13-equipment-caller/real200-details-recovery-playwright-blank.png new file mode 100644 index 000000000..4bc514b07 Binary files /dev/null and b/docs/ui-consistency/evidence/ot13-equipment-caller/real200-details-recovery-playwright-blank.png differ diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/real200-details-recovery.png b/docs/ui-consistency/evidence/ot13-equipment-caller/real200-details-recovery.png new file mode 100644 index 000000000..209e4b771 Binary files /dev/null and b/docs/ui-consistency/evidence/ot13-equipment-caller/real200-details-recovery.png differ diff --git a/docs/ui-consistency/evidence/ot13-equipment-caller/red.log b/docs/ui-consistency/evidence/ot13-equipment-caller/red.log new file mode 100644 index 000000000..094658cae --- /dev/null +++ b/docs/ui-consistency/evidence/ot13-equipment-caller/red.log @@ -0,0 +1,278 @@ + + Determining projects to restore... + All projects are up-to-date for restore. + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/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/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/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.30] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.LateEditReadCannotOpenUnderReplacementEquipment(kind: "alarm") [FAIL] +[xUnit.net 00:00:01.31] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.LateEditReadCannotOpenUnderReplacementEquipment(kind: "virtual") [FAIL] +[xUnit.net 00:00:01.32] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "alarm", cancel: False) [FAIL] +[xUnit.net 00:00:01.33] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "references", cancel: False) [FAIL] +[xUnit.net 00:00:01.33] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "virtual", cancel: True) [FAIL] +[xUnit.net 00:00:01.33] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "references", cancel: True) [FAIL] +[xUnit.net 00:00:01.34] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "alarm", cancel: True) [FAIL] +[xUnit.net 00:00:01.34] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "virtual", cancel: False) [FAIL] +[xUnit.net 00:00:01.36] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredConfirmCannotConsumeCurrentOperationAndCurrentRunsOnlyOnce [FAIL] + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.LateEditReadCannotOpenUnderReplacementEquipment(kind: "alarm") [217 ms] + Error Message: + Shouldly.ShouldAssertException : else cut.FindComponent>().Instance.Parameters.Get(x=>x.IsNew) + should be +True + but was +False + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.LateEditReadCannotOpenUnderReplacementEquipment(String kind) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 75 + 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.EquipmentCallerPresentationTests.LateEditReadCannotOpenUnderReplacementEquipment(kind: "virtual") [7 ms] + Error Message: + Shouldly.ShouldAssertException : if(kind=="virtual")cut.FindComponent>().Instance.Parameters.Get(x=>x.IsNew) + should be +True + but was +False + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.LateEditReadCannotOpenUnderReplacementEquipment(String kind) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 74 + 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.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "alarm", cancel: False) [8 ms] + Error Message: + Shouldly.ShouldAssertException : Visible(cut,kind) + should be +True + but was +False + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(String kind, Boolean cancel) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 49 + 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.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "references", cancel: False) [4 ms] + Error Message: + Shouldly.ShouldAssertException : Visible(cut,kind) + should be +True + but was +False + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(String kind, Boolean cancel) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 49 + 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.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "virtual", cancel: True) [3 ms] + Error Message: + Shouldly.ShouldAssertException : Visible(cut,kind) + should be +True + but was +False + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(String kind, Boolean cancel) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 49 + 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.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "references", cancel: True) [3 ms] + Error Message: + Shouldly.ShouldAssertException : Visible(cut,kind) + should be +True + but was +False + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(String kind, Boolean cancel) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 49 + 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.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "alarm", cancel: True) [3 ms] + Error Message: + Shouldly.ShouldAssertException : Visible(cut,kind) + should be +True + but was +False + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(String kind, Boolean cancel) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 49 + 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.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(kind: "virtual", cancel: False) [5 ms] + Error Message: + Shouldly.ShouldAssertException : Visible(cut,kind) + should be +True + but was +False + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredChildSavedOrCancelCannotReadOrCloseReplacement(String kind, Boolean cancel) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 49 + 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.EquipmentCallerPresentationTests.RetiredConfirmCannotConsumeCurrentOperationAndCurrentRunsOnlyOnce [13 ms] + Error Message: + Shouldly.ShouldAssertException : await cut.InvokeAsync(old.InvokeAsync());_service.Writes + should be empty but had +1 + item and was +[Mutation { Name = RemoveReferenceAsync, Args = System.Object[] }] + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.RetiredConfirmCannotConsumeCurrentOperationAndCurrentRunsOnlyOnce() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 60 + 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) +[xUnit.net 00:00:01.37] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.LateEquipmentReadCannotReplaceCurrentRoute [FAIL] +[xUnit.net 00:00:01.38] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.DetailsFieldsHaveVisibleUniqueNamesAndLinkedHelpErrors [FAIL] +[xUnit.net 00:00:01.40] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.DetailWriteKeepsCapturedVersionAndDoesNotReloadNewRoute [FAIL] +[xUnit.net 00:00:01.41] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.ConfirmedDetailsWriteWithFailedRefreshOffersReadOnlyRetryNotMutationReplay [FAIL] + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.LateEquipmentReadCannotReplaceCurrentRoute [17 ms] + Error Message: + Shouldly.ShouldAssertException : cut.Find("input[id$=eq-name]").GetAttribute("value") + should be +"equipment-b" + but was +"equipment-a" + difference +Difference | | + | \|/ +Index | 0 1 2 3 4 5 6 7 8 9 10 +Expected Value | e q u i p m e n t - b +Actual Value | e q u i p m e n t - a +Expected Code | 101 113 117 105 112 109 101 110 116 45 98 +Actual Code | 101 113 117 105 112 109 101 110 116 45 97 + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.LateEquipmentReadCannotReplaceCurrentRoute() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 85 + 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.EquipmentCallerPresentationTests.DetailsFieldsHaveVisibleUniqueNamesAndLinkedHelpErrors [3 ms] + Error Message: + Shouldly.ShouldAssertException : field.Id (null) + should not be null or white space + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.DetailsFieldsHaveVisibleUniqueNamesAndLinkedHelpErrors() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 34 + at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) + at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.DetailWriteKeepsCapturedVersionAndDoesNotReloadNewRoute [19 ms] + Error Message: + Shouldly.ShouldAssertException : Assert.IsType(_service.Writes[0].Args[1]).Name + should be +[1, 2] + but was +[9, 2] + difference +[*9*, 2] + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.EquipmentCallerPresentationTests.DetailWriteKeepsCapturedVersionAndDoesNotReloadNewRoute() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs:line 97 + 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.EquipmentCallerPresentationTests.ConfirmedDetailsWriteWithFailedRefreshOffersReadOnlyRetryNotMutationReplay [8 ms] + Error Message: + Shouldly.ShouldAssertException : cut.Markup + should not contain (case insensitive comparison) +"data-testid="page-error-boundary"" + but was actually +" @@ -112,32 +138,45 @@ else

OPC 40010 identification (optional)

-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
+
+
- @if (!string.IsNullOrWhiteSpace(_error)) {
@_error
} + +
-
+ @if (_detailsRead.Recovery) + { +
+ @(_detailsRead.Loading ? "Reloading the view…" : _detailsRead.Error ?? "View refreshed.") + +
+ } + else if (_detailsRead.NeedsRefresh && _detailsRead.Loading) + {

Changes were saved. Refreshing the view…

} + } else if (_activeTab == "tags") { @@ -148,15 +187,24 @@ else

Tag references

- +
- @if (!string.IsNullOrWhiteSpace(_refError)) + + @if (_refsRead.Recovery) { -
@_refError
+
+ @(_refsRead.Loading ? "Reloading the view…" : _refsRead.Error ?? "View refreshed.") + +
} + else if (_refsRead.NeedsRefresh && _refsRead.Loading) + {

Changes were saved. Refreshing the view…

} + @if (_refs is null) { -

Loading…

+

Loading…

} else if (_refs.Count == 0) { @@ -164,32 +212,35 @@ else } else { +

Leave the override empty to use the raw tag name.

- + @foreach (var r in _refs) { - + @* Bound so a long RawPath cannot squeeze the editable override input and the row's action buttons off the panel; the full value stays on the tooltip. *@ @@ -202,7 +253,8 @@ else + Target="@((presentation, equipmentId, referenceModal))" + OnCommitted="() => OnReferencesCommittedAsync(presentation, equipmentId, referenceModal)" OnCancel="() => CancelReference(presentation, equipmentId, referenceModal)" /> } else if (_activeTab == "vtags") { @@ -210,15 +262,24 @@ else

Virtual tags

- +
- @if (!string.IsNullOrWhiteSpace(_vtagError)) + + @if (_vtagsRead.Recovery) { -
@_vtagError
+
+ @(_vtagsRead.Loading ? "Reloading the view…" : _vtagsRead.Error ?? "View refreshed.") + +
} + else if (_vtagsRead.NeedsRefresh && _vtagsRead.Loading) + {

Changes were saved. Refreshing the view…

} + @if (_vtags is null) { -

Loading…

+

Loading…

} else if (_vtags.Count == 0) { @@ -241,8 +302,8 @@ else
@@ -256,7 +317,8 @@ else + Target="@((presentation, equipmentId, virtualModal))" + OnSaved="() => OnVirtualTagSavedAsync(presentation, equipmentId, virtualModal)" OnCancel="() => CancelVirtualTag(presentation, equipmentId, virtualModal)" /> } else if (_activeTab == "alarms") { @@ -264,15 +326,24 @@ else

Scripted alarms

- +
- @if (!string.IsNullOrWhiteSpace(_alarmError)) + + @if (_alarmsRead.Recovery) { -
@_alarmError
+
+ @(_alarmsRead.Loading ? "Reloading the view…" : _alarmsRead.Error ?? "View refreshed.") + +
} + else if (_alarmsRead.NeedsRefresh && _alarmsRead.Loading) + {

Changes were saved. Refreshing the view…

} + @if (_alarms is null) { -

Loading…

+

Loading…

} else if (_alarms.Count == 0) { @@ -296,8 +367,8 @@ else
@@ -311,15 +382,16 @@ else + Target="@((presentation, equipmentId, alarmModal))" + OnSaved="() => OnAlarmSavedAsync(presentation, equipmentId, alarmModal)" OnCancel="() => CancelAlarm(presentation, equipmentId, alarmModal)" /> } @* One confirm for every destructive row action on this page (R04 H1) — the same RawConfirmDialog /raw routes its deletes through. A mis-click used to delete immediately. It must render OUTSIDE the tab branches (#832): inside the Alarms branch it existed only on that tab, so the Tags tab's Remove and the Virtual Tags tab's Delete opened a dialog that was never on the page. *@ - + } @@ -343,7 +415,7 @@ else // --- Tags tab state (v3 reference-only). _refs is null until the tab is first activated (lazy load + // spinner). _overrideEdits carries the per-row editable display-name override, keyed by reference id. --- private IReadOnlyList? _refs; - private readonly Dictionary _overrideEdits = new(StringComparer.Ordinal); + private Dictionary _overrideEdits = new(StringComparer.Ordinal); private string? _refError; private bool _refModalVisible; @@ -363,224 +435,366 @@ else private ScriptedAlarmEditDto? _alarmModalExisting; private IReadOnlyList<(string Id, string Display)> _alarmScriptOptions = Array.Empty<(string, string)>(); + private InputText? _input0; + private ElementReference _invalid0; + private InputText? _input1; + private ElementReference _invalid1; + private InputSelect? _input2; + private ElementReference _invalid2; + private InputNumber? _input3; + private ElementReference _invalid3; + private async Task FocusInvalidAsync(long generation, string? equipmentId, FormModel form, EditContext context) + { + if (!Current(generation, equipmentId) || !ReferenceEquals(form, _form) || Locked(_detailsRead)) return; + if (context.GetValidationMessages(new FieldIdentifier(form, nameof(form.Name))).Any() && _input0?.Element is { } element0) await FocusErrorAsync(generation, equipmentId, form, _invalid0, element0); + else if (context.GetValidationMessages(new FieldIdentifier(form, nameof(form.MachineCode))).Any() && _input1?.Element is { } element1) await FocusErrorAsync(generation, equipmentId, form, _invalid1, element1); + else if (context.GetValidationMessages(new FieldIdentifier(form, nameof(form.UnsLineId))).Any() && _input2?.Element is { } element2) await FocusErrorAsync(generation, equipmentId, form, _invalid2, element2); + else if (context.GetValidationMessages(new FieldIdentifier(form, nameof(form.YearOfConstruction))).Any() && _input3?.Element is { } element3) await FocusErrorAsync(generation, equipmentId, form, _invalid3, element3); + } + private async Task FocusErrorAsync(long generation, string? equipmentId, FormModel form, ElementReference error, ElementReference input) + { + await error.FocusAsync(); + if (Current(generation, equipmentId) && ReferenceEquals(form, _form) && !Locked(_detailsRead)) await input.FocusAsync(preventScroll: true); + } + + private readonly string _fieldScope = "ot-equipment-" + Guid.NewGuid().ToString("N"); + private string FieldId(string suffix) => _fieldScope + "-" + suffix; + private string FieldIds(params string[] suffixes) => string.Join(" ", suffixes.Select(FieldId)); + private string RowId(string id) => Convert.ToHexString(System.Text.Encoding.UTF8.GetBytes(id)); + private long _generation, _routeRead, _refModalEpoch, _vtagModalEpoch, _alarmModalEpoch, _confirmEpoch; + private bool _disposed, _routeInitialized, _routeRecovery; + private object? _routeIdentity; + private string? _routeError; + private readonly ReadState _detailsRead = new(), _refsRead = new(), _vtagsRead = new(), _alarmsRead = new(); + private bool Current(long generation, string? equipmentId) => !_disposed && generation == _generation && equipmentId == EquipmentId; + private bool Locked(ReadState state) => _busy || state.NeedsRefresh; + private sealed class ReadState + { + public long Epoch; + public bool Loading, NeedsRefresh, Recovery; + public string? Error; + public void Reset() { ++Epoch; Loading = false; NeedsRefresh = false; Recovery = false; Error = null; } + } + private string TabClass(string tab) => _activeTab == tab ? "active" : ""; - - /// - /// Switches to a tab, lazily loading its list on first activation. The Tags/Virtual Tags lists are - /// null until first shown (and are reset to null in OnParametersSetAsync when the equipment changes), - /// so the fetch runs once per equipment rather than on every render. Equipment is fixed to - /// ; the tabs are disabled while IsNew so this is only ever reached with a - /// persisted equipment. - /// - private async Task ShowTabAsync(string tab) + private async Task ShowTabAsync(long generation, string? equipmentId, string tab) { + if (!Current(generation, equipmentId) || (string.IsNullOrEmpty(equipmentId) && tab != "details")) return; + if (_activeTab != tab) RetireDialogs(); _activeTab = tab; - if (IsNew) { return; } - if (tab == "tags" && _refs is null) { await ReloadReferencesAsync(); } - else if (tab == "vtags" && _vtags is null) { await ReloadVirtualTagsAsync(); } - else if (tab == "alarms" && _alarms is null) { await ReloadAlarmsAsync(); } + await EnsureTabAsync(generation, equipmentId, tab); } - - // --- Tags tab handlers (v3 reference-only; the owning equipment is fixed = EquipmentId) --- - - private async Task ReloadReferencesAsync() + private async Task EnsureTabAsync(long generation, string? equipmentId, string tab) { - _refs = await Svc.LoadReferencesForEquipmentAsync(EquipmentId!); - // Seed the per-row override edit buffer so each row's binds to a live value. - _overrideEdits.Clear(); - foreach (var r in _refs) { _overrideEdits[r.UnsTagReferenceId] = r.DisplayNameOverride; } + if (!Current(generation, equipmentId) || string.IsNullOrEmpty(equipmentId)) return; + if (tab == "tags" && _refs is null && !_refsRead.Loading) await ReloadReferencesAsync(generation, equipmentId); + else if (tab == "vtags" && _vtags is null && !_vtagsRead.Loading) await ReloadVirtualTagsAsync(generation, equipmentId); + else if (tab == "alarms" && _alarms is null && !_alarmsRead.Loading) await ReloadAlarmsAsync(generation, equipmentId); } - private void OpenAddReference() + private Task RetryViewAsync(long generation, string? equipmentId, ReadState state, Func read) + => Current(generation, equipmentId) && !state.Loading && state.Error is not null ? read() : Task.CompletedTask; + private Task RetryPageAsync(long generation, string? equipmentId, string? lineId) + => Current(generation, equipmentId) && !_loading && _routeError is not null ? LoadPageAsync(generation, equipmentId, lineId) : Task.CompletedTask; + + // A failed view refresh never clears last-good rows or replays its preceding mutation. + private async Task ReadViewAsync(long generation, string? equipmentId, ReadState state, Func loadAndInstall, string label) { - _refError = null; - _refModalVisible = true; + if (!Current(generation, equipmentId)) return; + var read = ++state.Epoch; + state.Loading = true; + StateHasChanged(); + try + { + await loadAndInstall(); + if (Current(generation, equipmentId) && read == state.Epoch) { state.NeedsRefresh = false; state.Error = null; } + } + catch when (!Current(generation, equipmentId) || read != state.Epoch) { } + catch + { + state.Recovery = true; + state.Error = state.NeedsRefresh + ? $"Changes were saved, but {label} could not be refreshed. Retry the view load; do not repeat the change." + : $"{label} could not be loaded. Retry the view load."; + } + finally { if (Current(generation, equipmentId) && read == state.Epoch) state.Loading = false; } } - - private async Task OnReferencesCommittedAsync() + private Task ReloadReferencesAsync(long generation, string? equipmentId) { - _refModalVisible = false; - await ReloadReferencesAsync(); + var expected = _refsRead.Epoch + 1; + return ReadViewAsync(generation, equipmentId, _refsRead, async () => + { + var rows = await Svc.LoadReferencesForEquipmentAsync(equipmentId!); + if (!Current(generation, equipmentId) || expected != _refsRead.Epoch) return; + var edits = new Dictionary(StringComparer.Ordinal); + foreach (var row in rows) edits[row.UnsTagReferenceId] = row.DisplayNameOverride; + _refs = rows; _overrideEdits = edits; + }, "Tag references"); } - - private async Task SaveOverride(EquipmentReferenceRow r) + private Task ReloadVirtualTagsAsync(long generation, string? equipmentId) { - _refError = null; - var edited = _overrideEdits.GetValueOrDefault(r.UnsTagReferenceId); - var res = await Svc.SetReferenceOverrideAsync(r.UnsTagReferenceId, edited, r.RowVersion); - if (res.Ok) { await ReloadReferencesAsync(); } - else { _refError = res.Error; } + var expected = _vtagsRead.Epoch + 1; + return ReadViewAsync(generation, equipmentId, _vtagsRead, async () => + { + var rows = await Svc.LoadVirtualTagsForEquipmentAsync(equipmentId!); + if (Current(generation, equipmentId) && expected == _vtagsRead.Epoch) _vtags = rows; + }, "Virtual tags"); + } + private Task ReloadAlarmsAsync(long generation, string? equipmentId) + { + var expected = _alarmsRead.Epoch + 1; + return ReadViewAsync(generation, equipmentId, _alarmsRead, async () => + { + var rows = await Svc.LoadAlarmsForEquipmentAsync(equipmentId!); + if (Current(generation, equipmentId) && expected == _alarmsRead.Epoch) _alarms = rows; + }, "Alarms"); + } + private Task RefreshDetailsAsync(long generation, string? equipmentId) + { + var expected = _detailsRead.Epoch + 1; + return ReadViewAsync(generation, equipmentId, _detailsRead, async () => + { + var equipment = await Svc.LoadEquipmentAsync(equipmentId!); + if (!Current(generation, equipmentId) || expected != _detailsRead.Epoch) return; + if (equipment is null) throw new InvalidOperationException("Equipment no longer available"); + _equipment = equipment; LoadFormFrom(equipment); + }, "Equipment details"); + } + + private void SetOverrideEdit(long generation, string? equipmentId, Dictionary edits, string referenceId, ChangeEventArgs args) + { + if (Current(generation, equipmentId) && !Locked(_refsRead) && ReferenceEquals(edits, _overrideEdits)) edits[referenceId] = args.Value?.ToString(); + } + private void OpenAddReference(long generation, string? equipmentId) + { + if (!Current(generation, equipmentId) || string.IsNullOrEmpty(equipmentId) || Locked(_refsRead)) return; + ++_refModalEpoch; _refError = null; _refModalVisible = true; + } + private async Task OnReferencesCommittedAsync(long generation, string? equipmentId, long modal) + { + if (!Current(generation, equipmentId) || modal != _refModalEpoch || !_refModalVisible) return; + ++_refModalEpoch; _refModalVisible = false; _refsRead.NeedsRefresh = true; + await ReloadReferencesAsync(generation, equipmentId); + } + private void CancelReference(long generation, string? equipmentId, long modal) + { if (Current(generation, equipmentId) && modal == _refModalEpoch) { ++_refModalEpoch; _refModalVisible = false; } } + private Task SaveOverride(long generation, string? equipmentId, Dictionary edits, EquipmentReferenceRow row) + { + if (!Current(generation, equipmentId) || !ReferenceEquals(edits, _overrideEdits) || Locked(_refsRead)) return Task.CompletedTask; + var referenceId = row.UnsTagReferenceId; + var edited = edits.GetValueOrDefault(referenceId); + var version = row.RowVersion.ToArray(); + return WriteAsync(generation, equipmentId, _refsRead, + () => Svc.SetReferenceOverrideAsync(referenceId, edited, version), + () => ReloadReferencesAsync(generation, equipmentId), error => _refError = error); + } + private async Task WriteAsync(long generation, string? equipmentId, ReadState state, Func> write, Func refresh, Action setError) + { + if (!Current(generation, equipmentId) || Locked(state)) return; + _busy = true; setError(null); + UnsMutationResult result; + try { result = await write(); } + catch when (!Current(generation, equipmentId)) { return; } + finally { if (Current(generation, equipmentId)) _busy = false; } + if (!Current(generation, equipmentId)) return; + if (!result.Ok) { setError(result.Error); return; } + state.NeedsRefresh = true; + await refresh(); } - // --- Delete confirmation (R04 H1) --- private bool _confirmVisible; - private string _confirmTitle = ""; - private string _confirmMessage = ""; - private string _confirmLabel = "Delete"; + private string _confirmTitle = "", _confirmMessage = "", _confirmLabel = "Delete"; private Func? _confirmAction; - - private void AskConfirm(string title, string message, string label, Func action) + private void AskConfirm(long generation, string? equipmentId, ReadState state, string title, string message, string label, Func action) { - _confirmTitle = title; - _confirmMessage = message; - _confirmLabel = label; - _confirmAction = action; - _confirmVisible = true; + if (!Current(generation, equipmentId) || Locked(state)) return; + var confirmation = ++_confirmEpoch; + _confirmTitle = title; _confirmMessage = message; _confirmLabel = label; + _confirmAction = () => action(confirmation); _confirmVisible = true; } - - private async Task RunConfirmedAsync() + private bool CurrentConfirm(long generation, string? equipmentId, long confirmation) + => Current(generation, equipmentId) && _confirmVisible && confirmation == _confirmEpoch; + private void SetConfirmVisible(long generation, string? equipmentId, long confirmation, bool value) { - var action = _confirmAction; + if (!CurrentConfirm(generation, equipmentId, confirmation) || _busy || value) return; + ++_confirmEpoch; _confirmVisible = false; _confirmAction = null; + } + private async Task RunConfirmedAsync(long generation, string? equipmentId, long confirmation, Func? action) + { + if (!CurrentConfirm(generation, equipmentId, confirmation) || _busy || action is null || !ReferenceEquals(action, _confirmAction)) return; _confirmAction = null; - if (action is not null) await action(); + await action(); + } + private void ConfirmRemoveReference(long generation, string? equipmentId, EquipmentReferenceRow row) + { + var referenceId = row.UnsTagReferenceId; var version = row.RowVersion.ToArray(); + AskConfirm(generation, equipmentId, _refsRead, "Remove reference", + $"Remove the reference '{row.EffectiveName}'? After the next deploy its UNS node is gone, and any client subscribed to it loses it. The raw tag is not affected.", "Remove", + confirmation => CurrentConfirm(generation, equipmentId, confirmation) + ? WriteAsync(generation, equipmentId, _refsRead, () => Svc.RemoveReferenceAsync(referenceId, version), () => ReloadReferencesAsync(generation, equipmentId), error => _refError = error) + : Task.CompletedTask); + } + private void ConfirmDeleteVirtualTag(long generation, string? equipmentId, string vtagId, string name) => AskConfirm(generation, equipmentId, _vtagsRead, + "Delete virtual tag", $"Delete the virtual tag '{name}'? After the next deploy its OPC UA node is gone, and any client subscribed to it loses it.", "Delete", + confirmation => DeleteVirtualTag(generation, equipmentId, confirmation, vtagId)); + private void ConfirmDeleteAlarm(long generation, string? equipmentId, string alarmId, string name) => AskConfirm(generation, equipmentId, _alarmsRead, + "Delete scripted alarm", $"Delete the scripted alarm '{name}'? After the next deploy its condition is gone, and any client subscribed to it loses it.", "Delete", + confirmation => DeleteAlarm(generation, equipmentId, confirmation, alarmId)); + private async Task DeleteVirtualTag(long generation, string? equipmentId, long confirmation, string vtagId) + { + if (!CurrentConfirm(generation, equipmentId, confirmation) || Locked(_vtagsRead)) return; + _busy = true; _vtagError = null; + UnsMutationResult? result = null; + try + { + var dto = await Svc.LoadVirtualTagAsync(vtagId); + if (!CurrentConfirm(generation, equipmentId, confirmation)) return; + if (dto is not null) result = await Svc.DeleteVirtualTagAsync(vtagId, dto.RowVersion.ToArray()); + } + catch when (!Current(generation, equipmentId)) { return; } + finally { if (Current(generation, equipmentId)) _busy = false; } + if (!CurrentConfirm(generation, equipmentId, confirmation)) return; + if (result is { Ok: false } failure) { _vtagError = failure.Error; return; } + if (result is not null) _vtagsRead.NeedsRefresh = true; + await ReloadVirtualTagsAsync(generation, equipmentId); + } + private async Task DeleteAlarm(long generation, string? equipmentId, long confirmation, string alarmId) + { + if (!CurrentConfirm(generation, equipmentId, confirmation) || Locked(_alarmsRead)) return; + _busy = true; _alarmError = null; + UnsMutationResult? result = null; + try + { + var dto = await Svc.LoadScriptedAlarmAsync(alarmId); + if (!CurrentConfirm(generation, equipmentId, confirmation)) return; + if (dto is not null) result = await Svc.DeleteScriptedAlarmAsync(alarmId, dto.RowVersion.ToArray()); + } + catch when (!Current(generation, equipmentId)) { return; } + finally { if (Current(generation, equipmentId)) _busy = false; } + if (!CurrentConfirm(generation, equipmentId, confirmation)) return; + if (result is { Ok: false } failure) { _alarmError = failure.Error; return; } + if (result is not null) _alarmsRead.NeedsRefresh = true; + await ReloadAlarmsAsync(generation, equipmentId); } - private void ConfirmRemoveReference(EquipmentReferenceRow r) => AskConfirm( - "Remove reference", - $"Remove the reference '{r.EffectiveName}'? After the next deploy its UNS node is gone, and any client subscribed to it loses it. The raw tag is not affected.", - "Remove", - () => RemoveReference(r)); - - private void ConfirmDeleteVirtualTag(string vtagId, string name) => AskConfirm( - "Delete virtual tag", - $"Delete the virtual tag '{name}'? After the next deploy its OPC UA node is gone, and any client subscribed to it loses it.", - "Delete", - () => DeleteVirtualTag(vtagId)); - - private void ConfirmDeleteAlarm(string scriptedAlarmId, string name) => AskConfirm( - "Delete scripted alarm", - $"Delete the scripted alarm '{name}'? After the next deploy its condition is gone, and any client subscribed to it loses it.", - "Delete", - () => DeleteAlarm(scriptedAlarmId)); - - private async Task RemoveReference(EquipmentReferenceRow r) - { - _refError = null; - var res = await Svc.RemoveReferenceAsync(r.UnsTagReferenceId, r.RowVersion); - if (res.Ok) { await ReloadReferencesAsync(); } - else { _refError = res.Error; } - } - - // --- Virtual Tags tab handlers --- - - private async Task ReloadVirtualTagsAsync() - { - _vtags = await Svc.LoadVirtualTagsForEquipmentAsync(EquipmentId!); - } - - private async Task OpenAddVirtualTag() - { - _vtagError = null; - _vtagModalIsNew = true; - _vtagModalExisting = null; - _vtagScriptOptions = await Svc.LoadScriptsAsync(); - _vtagModalVisible = true; - } - - private async Task OpenEditVirtualTag(string vtagId) - { - _vtagError = null; - var dto = await Svc.LoadVirtualTagAsync(vtagId); - if (dto is null) { _vtagError = "That virtual tag no longer exists; the list was refreshed."; await ReloadVirtualTagsAsync(); return; } - _vtagModalIsNew = false; - _vtagModalExisting = dto; - _vtagScriptOptions = await Svc.LoadScriptsAsync(); - _vtagModalVisible = true; - } - - private async Task OnVirtualTagSavedAsync() + private async Task OpenAddVirtualTag(long generation, string? equipmentId) { + if (!Current(generation, equipmentId) || Locked(_vtagsRead)) return; + var modal = ++_vtagModalEpoch; _vtagModalVisible = false; - await ReloadVirtualTagsAsync(); + try + { + var scripts = await Svc.LoadScriptsAsync(); + if (!Current(generation, equipmentId) || modal != _vtagModalEpoch) return; + _vtagError = null; _vtagModalIsNew = true; _vtagModalExisting = null; _vtagScriptOptions = scripts; _vtagModalVisible = true; + } + catch when (!Current(generation, equipmentId) || modal != _vtagModalEpoch) { } } - - private async Task DeleteVirtualTag(string vtagId) + private async Task OpenEditVirtualTag(long generation, string? equipmentId, string vtagId) { + if (!Current(generation, equipmentId) || Locked(_vtagsRead)) return; + var modal = ++_vtagModalEpoch; _vtagModalVisible = false; - _vtagError = null; - // Load the virtual tag fresh to capture its current RowVersion for the concurrency-guarded delete. + try + { var dto = await Svc.LoadVirtualTagAsync(vtagId); - if (dto is null) { await ReloadVirtualTagsAsync(); return; } - var r = await Svc.DeleteVirtualTagAsync(vtagId, dto.RowVersion); - if (r.Ok) { await ReloadVirtualTagsAsync(); } - else { _vtagError = r.Error; } + if (!Current(generation, equipmentId) || modal != _vtagModalEpoch) return; + if (dto is null) { _vtagError = "That virtual tag no longer exists; the list was refreshed."; await ReloadVirtualTagsAsync(generation, equipmentId); return; } + var scripts = await Svc.LoadScriptsAsync(); + if (!Current(generation, equipmentId) || modal != _vtagModalEpoch) return; + _vtagError = null; _vtagModalIsNew = false; _vtagModalExisting = dto; _vtagScriptOptions = scripts; _vtagModalVisible = true; + } + catch when (!Current(generation, equipmentId) || modal != _vtagModalEpoch) { } } - - // --- Alarms tab handlers (mirror the Tags/Virtual Tags tabs; the owning equipment is fixed = EquipmentId) --- - - private async Task ReloadAlarmsAsync() + private async Task OnVirtualTagSavedAsync(long generation, string? equipmentId, long modal) { - _alarms = await Svc.LoadAlarmsForEquipmentAsync(EquipmentId!); + if (!Current(generation, equipmentId) || modal != _vtagModalEpoch || !_vtagModalVisible) return; + ++_vtagModalEpoch; _vtagModalVisible = false; _vtagsRead.NeedsRefresh = true; + await ReloadVirtualTagsAsync(generation, equipmentId); } - - private async Task OpenAddAlarm() - { - _alarmError = null; - _alarmModalIsNew = true; - _alarmModalExisting = null; - _alarmScriptOptions = await Svc.LoadScriptsAsync(); - _alarmModalVisible = true; - } - - private async Task OpenEditAlarm(string scriptedAlarmId) - { - _alarmError = null; - var dto = await Svc.LoadScriptedAlarmAsync(scriptedAlarmId); - if (dto is null) { _alarmError = "That alarm no longer exists; the list was refreshed."; await ReloadAlarmsAsync(); return; } - _alarmModalIsNew = false; - _alarmModalExisting = dto; - _alarmScriptOptions = await Svc.LoadScriptsAsync(); - _alarmModalVisible = true; - } - - private async Task OnAlarmSavedAsync() + private void CancelVirtualTag(long generation, string? equipmentId, long modal) + { if (Current(generation, equipmentId) && modal == _vtagModalEpoch) { ++_vtagModalEpoch; _vtagModalVisible = false; } } + private async Task OpenAddAlarm(long generation, string? equipmentId) { + if (!Current(generation, equipmentId) || Locked(_alarmsRead)) return; + var modal = ++_alarmModalEpoch; _alarmModalVisible = false; - await ReloadAlarmsAsync(); + try + { + var scripts = await Svc.LoadScriptsAsync(); + if (!Current(generation, equipmentId) || modal != _alarmModalEpoch) return; + _alarmError = null; _alarmModalIsNew = true; _alarmModalExisting = null; _alarmScriptOptions = scripts; _alarmModalVisible = true; + } + catch when (!Current(generation, equipmentId) || modal != _alarmModalEpoch) { } } - - private async Task DeleteAlarm(string scriptedAlarmId) + private async Task OpenEditAlarm(long generation, string? equipmentId, string alarmId) { + if (!Current(generation, equipmentId) || Locked(_alarmsRead)) return; + var modal = ++_alarmModalEpoch; _alarmModalVisible = false; - _alarmError = null; - // Load the alarm fresh to capture its current RowVersion for the concurrency-guarded delete. - var dto = await Svc.LoadScriptedAlarmAsync(scriptedAlarmId); - if (dto is null) { await ReloadAlarmsAsync(); return; } - var r = await Svc.DeleteScriptedAlarmAsync(scriptedAlarmId, dto.RowVersion); - if (r.Ok) { await ReloadAlarmsAsync(); } - else { _alarmError = r.Error; } + try + { + var dto = await Svc.LoadScriptedAlarmAsync(alarmId); + if (!Current(generation, equipmentId) || modal != _alarmModalEpoch) return; + if (dto is null) { _alarmError = "That alarm no longer exists; the list was refreshed."; await ReloadAlarmsAsync(generation, equipmentId); return; } + var scripts = await Svc.LoadScriptsAsync(); + if (!Current(generation, equipmentId) || modal != _alarmModalEpoch) return; + _alarmError = null; _alarmModalIsNew = false; _alarmModalExisting = dto; _alarmScriptOptions = scripts; _alarmModalVisible = true; + } + catch when (!Current(generation, equipmentId) || modal != _alarmModalEpoch) { } } + private async Task OnAlarmSavedAsync(long generation, string? equipmentId, long modal) + { + if (!Current(generation, equipmentId) || modal != _alarmModalEpoch || !_alarmModalVisible) return; + ++_alarmModalEpoch; _alarmModalVisible = false; _alarmsRead.NeedsRefresh = true; + await ReloadAlarmsAsync(generation, equipmentId); + } + private void CancelAlarm(long generation, string? equipmentId, long modal) + { if (Current(generation, equipmentId) && modal == _alarmModalEpoch) { ++_alarmModalEpoch; _alarmModalVisible = false; } } + private void RetireDialogs() + { + ++_refModalEpoch; ++_vtagModalEpoch; ++_alarmModalEpoch; ++_confirmEpoch; + _refModalVisible = _vtagModalVisible = _alarmModalVisible = _confirmVisible = false; + _confirmAction = null; + } protected override async Task OnParametersSetAsync() { - _loading = true; - _error = null; - // _activeTab is intentionally NOT reset here: an in-place save reloads the page (re-runs - // OnParametersSetAsync) and the user's tab selection should survive that. The create→redirect - // path lands on Details because the field initializes to "details" and a fresh page instance - // starts with that initial value. The Tags/Virtual Tags lists are reset to null below so the - // lazy loaders re-fetch for the (possibly different) equipment this parameter set targets. - _refs = null; - _vtags = null; - _alarms = null; - if (!IsNew) - { - _equipment = await Svc.LoadEquipmentAsync(EquipmentId!); - if (_equipment is not null) - { - LoadFormFrom(_equipment); - var ctx = await Svc.LoadEquipmentPickContextAsync(_equipment.UnsLineId); - _lineOptions = ctx.Lines; - } - } - else - { - _form = new FormModel { UnsLineId = LineId ?? "" }; - var ctx = await Svc.LoadEquipmentPickContextAsync(LineId); - _lineOptions = ctx.Lines; - } - _loading = false; + object identity = (EquipmentId, IsNew ? LineId : null); + if (_disposed || (_routeInitialized && Equals(_routeIdentity, identity))) return; + _routeInitialized = true; _routeIdentity = identity; + var generation = ++_generation; + _busy = false; _routeRecovery = false; + RetireDialogs(); _detailsRead.Reset(); _refsRead.Reset(); _vtagsRead.Reset(); _alarmsRead.Reset(); + _equipment = null; _form = new(); _refs = null; _vtags = null; _alarms = null; + _overrideEdits = new(StringComparer.Ordinal); _error = _refError = _vtagError = _alarmError = null; + if (IsNew) _activeTab = "details"; + await LoadPageAsync(generation, EquipmentId, LineId); } + private async Task LoadPageAsync(long generation, string? equipmentId, string? lineId) + { + if (!Current(generation, equipmentId)) return; + var read = ++_routeRead; var isNew = string.IsNullOrEmpty(equipmentId); + _loading = true; _routeError = null; + try + { + var equipment = isNew ? null : await Svc.LoadEquipmentAsync(equipmentId!); + if (!Current(generation, equipmentId) || read != _routeRead) return; + var context = isNew || equipment is not null ? await Svc.LoadEquipmentPickContextAsync(isNew ? lineId : equipment!.UnsLineId) : null; + if (!Current(generation, equipmentId) || read != _routeRead) return; + _equipment = equipment; + if (equipment is not null) LoadFormFrom(equipment); + else if (isNew) _form = new FormModel { UnsLineId = lineId ?? "" }; + _lineOptions = context?.Lines ?? Array.Empty<(string, string)>(); + } + catch when (!Current(generation, equipmentId) || read != _routeRead) { } + catch { _routeRecovery = true; _routeError = "Equipment could not be loaded. Retry the page load."; } + finally { if (Current(generation, equipmentId) && read == _routeRead) _loading = false; } + if (Current(generation, equipmentId) && read == _routeRead && _routeError is null && _equipment is not null) + await EnsureTabAsync(generation, equipmentId, _activeTab); + } + /// Retires UI callbacks without cancelling a dispatched service mutation. + public void Dispose() { _disposed = true; ++_generation; RetireDialogs(); } /// Maps a loaded equipment's fields into the working form (mirrors EquipmentModal's edit branch). private void LoadFormFrom(EquipmentEditDto e) @@ -605,52 +819,49 @@ else }; } - private async Task SaveAsync() + private async Task SaveAsync(long generation, string? equipmentId, FormModel form) { - _busy = true; - _error = null; + if (!Current(generation, equipmentId) || !ReferenceEquals(form, _form) || Locked(_detailsRead) || (!IsNew && _equipment is null)) return; + var isNew = IsNew; + var target = _equipment?.EquipmentId; + var version = _equipment?.RowVersion.ToArray() ?? Array.Empty(); + var input = new EquipmentInput( + form.Name, + form.MachineCode, + form.UnsLineId, + form.ZTag, + form.SAPID, + form.Manufacturer, + form.Model, + form.SerialNumber, + form.HardwareRevision, + form.SoftwareRevision, + form.YearOfConstruction, + form.AssetLocation, + form.ManufacturerUri, + form.DeviceManualUri, + form.Enabled); + _busy = true; _error = null; + UnsMutationResult result; try { - var input = new EquipmentInput( - _form.Name, - _form.MachineCode, - _form.UnsLineId, - _form.ZTag, - _form.SAPID, - _form.Manufacturer, - _form.Model, - _form.SerialNumber, - _form.HardwareRevision, - _form.SoftwareRevision, - _form.YearOfConstruction, - _form.AssetLocation, - _form.ManufacturerUri, - _form.DeviceManualUri, - _form.Enabled); - - var result = IsNew - ? await Svc.CreateEquipmentAsync(input) - : await Svc.UpdateEquipmentAsync(_equipment!.EquipmentId, input, _equipment.RowVersion); - - if (!result.Ok) { _error = result.Error; return; } - - if (IsNew) - { - // Redirect to the persisted editor so the other tabs (disabled while new) become available. - if (string.IsNullOrEmpty(result.CreatedId)) { _error = "Equipment was created but no id was returned."; return; } - Nav.NavigateTo($"/uns/equipment/{result.CreatedId}"); - } - else - { - // Reload to pick up the fresh RowVersion for the next save. - _equipment = await Svc.LoadEquipmentAsync(EquipmentId!); - if (_equipment is not null) { LoadFormFrom(_equipment); } - } + result = isNew ? await Svc.CreateEquipmentAsync(input) : await Svc.UpdateEquipmentAsync(target!, input, version); } - finally + catch when (!Current(generation, equipmentId)) { return; } + finally { if (Current(generation, equipmentId)) _busy = false; } + if (!Current(generation, equipmentId)) return; + if (!result.Ok) { _error = result.Error; return; } + _detailsRead.NeedsRefresh = true; + if (isNew) { - _busy = false; + if (string.IsNullOrEmpty(result.CreatedId)) + { + _error = "Equipment was created but no id was returned. Return to UNS to locate it before creating another."; + return; + } + Nav.NavigateTo($"/uns/equipment/{result.CreatedId}"); } + else await RefreshDetailsAsync(generation, equipmentId); } /// The working form for the Details tab — identical to EquipmentModal.FormModel. diff --git a/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs b/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs new file mode 100644 index 000000000..9eaf2b8e5 --- /dev/null +++ b/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/EquipmentCallerPresentationTests.cs @@ -0,0 +1,295 @@ +using System.Reflection; +using Bunit; +using Bunit.TestDoubles; +using Microsoft.AspNetCore.Components; +using Microsoft.Extensions.DependencyInjection; +using Shouldly; +using Xunit; +using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Uns; +using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Raw; +using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Uns; +using ZB.MOM.WW.OtOpcUa.AdminUI.Uns; +using ZB.MOM.WW.OtOpcUa.Configuration.Enums; + +namespace ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages; + +/// Equipment route ownership, captured callers and read-only post-commit recovery. +[Trait("Category","Unit")] +public sealed class EquipmentCallerPresentationTests:BunitContext +{ + private readonly EquipmentService _service; + public EquipmentCallerPresentationTests() + { + var service=DispatchProxy.Create();_service=(EquipmentService)(object)service;Services.AddSingleton(service); + ComponentFactories.AddStub();ComponentFactories.AddStub();ComponentFactories.AddStub();ComponentFactories.AddStub(); + JSInterop.SetupVoid("Blazor._internal.domWrapper.focus",_=>true).SetVoidResult(); + } + + [Fact] + public void DetailsFieldsHaveVisibleUniqueNamesAndLinkedHelpErrors() + { + var a=Render(p=>p.Add(x=>x.EquipmentId,"A"));var b=Render(p=>p.Add(x=>x.EquipmentId,"B")); + foreach(var cut in new[]{a,b})foreach(var field in cut.FindAll("input,select,textarea")) + { + field.Id.ShouldNotBeNullOrWhiteSpace();cut.FindAll("label").ShouldContain(x=>x.GetAttribute("for")==field.Id); + foreach(var id in(field.GetAttribute("aria-describedby")??"").Split(' ',StringSplitOptions.RemoveEmptyEntries))cut.Find("#"+id).ShouldNotBeNull(); + } + var ids=a.FindAll("[id]").Concat(b.FindAll("[id]")).Select(x=>x.Id).ToArray();ids.Distinct().Count().ShouldBe(ids.Length); + } + + [Theory] + [InlineData("references",false)] [InlineData("references",true)] + [InlineData("virtual",false)] [InlineData("virtual",true)] + [InlineData("alarm",false)] [InlineData("alarm",true)] + public async Task RetiredChildSavedOrCancelCannotReadOrCloseReplacement(string kind,bool cancel) + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));await Open(cut,kind);var old=Callback(cut,kind,cancel); + await Route(cut,"B");await Open(cut,kind);var count=_service.Reads.Count; + await cut.InvokeAsync(()=>old.InvokeAsync()); + Visible(cut,kind).ShouldBeTrue();_service.Reads.Count.ShouldBe(count); + Target(cut,kind).ShouldNotBeNull(); + } + + [Fact] + public async Task RetiredConfirmCannotConsumeCurrentOperationAndCurrentRunsOnlyOnce() + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));await Tab(cut,"Tags"); + cut.FindAll("button").First(x=>x.TextContent.Trim()=="Remove").Click();var old=cut.FindComponent>().Instance.Parameters.Get(x=>x.OnConfirm); + await cut.InvokeAsync(()=>cut.FindComponent>().Instance.Parameters.Get(x=>x.VisibleChanged).InvokeAsync(false)); + cut.FindAll("button").Last(x=>x.TextContent.Trim()=="Remove").Click();var current=cut.FindComponent>().Instance.Parameters.Get(x=>x.OnConfirm); + await cut.InvokeAsync(()=>old.InvokeAsync());_service.Writes.ShouldBeEmpty(); + cut.FindComponent>().Instance.Parameters.Get(x=>x.Visible).ShouldBeTrue(); + await cut.InvokeAsync(()=>current.InvokeAsync());await cut.InvokeAsync(()=>current.InvokeAsync()); + _service.Writes.Count.ShouldBe(1);_service.Writes[0].Args[0].ShouldBe("A-ref-2"); + } + + [Theory] + [InlineData("virtual")] [InlineData("alarm")] + public async Task LateEditReadCannotOpenUnderReplacementEquipment(string kind) + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));await Tab(cut,kind=="virtual"?"Virtual Tags":"Alarms"); + _service.HoldEdit=true;var opening=cut.FindAll("button").Single(x=>x.TextContent.Trim()=="Edit").ClickAsync(new()); + await _service.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken); + await Route(cut,"B");await Open(cut,kind);_service.Release.TrySetResult();await opening; + if(kind=="virtual")cut.FindComponent>().Instance.Parameters.Get(x=>x.IsNew).ShouldBeTrue(); + else cut.FindComponent>().Instance.Parameters.Get(x=>x.IsNew).ShouldBeTrue(); + Visible(cut,kind).ShouldBeTrue();_service.Writes.ShouldBeEmpty(); + } + + [Fact] + public async Task LateEquipmentReadCannotReplaceCurrentRoute() + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"BASE"));_service.HoldEquipmentA=true; + var opening=Route(cut,"A");await _service.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken); + await Route(cut,"B");_service.Release.TrySetResult();await opening; + cut.Find("input[id$=eq-name]").GetAttribute("value").ShouldBe("equipment-b");cut.Find("h1").TextContent.ShouldBe("equipment-b"); + } + + [Fact] + public async Task DetailWriteKeepsCapturedVersionAndDoesNotReloadNewRoute() + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));cut.Find("input[id$=eq-name]").Change("submitted-a");_service.HoldWrite=true; + var saving=cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty); + await _service.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken); + _service.Version[0]=9;await Route(cut,"B");var before=_service.Reads.Count; + _service.Release.TrySetResult();await saving; + _service.Writes.Count.ShouldBe(1);_service.Writes[0].Args[0].ShouldBe("A"); + Assert.IsType(_service.Writes[0].Args[1]).Name.ShouldBe("submitted-a");((byte[])_service.Writes[0].Args[2]!).ShouldBe(new byte[]{1,2}); + _service.Reads.Count.ShouldBe(before);cut.Find("input[id$=eq-name]").GetAttribute("value").ShouldBe("equipment-b"); + } + + [Fact] + public async Task ConfirmedDetailsWriteWithFailedRefreshOffersReadOnlyRetryNotMutationReplay() + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));_service.FailPostWriteRead=true; + await cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty); + cut.Markup.ShouldNotContain("data-testid=\"page-error-boundary\"");_service.Writes.Count.ShouldBe(1); + cut.Find("button[type=submit]").HasAttribute("disabled").ShouldBeTrue(); + cut.FindAll("button").Single(x=>x.TextContent.Trim()=="Retry view load").Click(); + _service.Writes.Count.ShouldBe(1);cut.Find("button[type=submit]").HasAttribute("disabled").ShouldBeFalse(); + } + + [Fact] + public async Task TabReadsStayLazyAndSelectedTabLoadsForReplacementWithoutClobberingSameRouteDraft() + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A")); + _service.Reads.ShouldNotContain(x=>x.Contains("References",StringComparison.Ordinal)||x.Contains("VirtualTags",StringComparison.Ordinal)||x.Contains("Alarms",StringComparison.Ordinal)); + await Tab(cut,"Tags");await Tab(cut,"Details");await Tab(cut,"Tags"); + _service.Reads.Count(x=>x=="LoadReferencesForEquipmentAsync:A").ShouldBe(1); + await Route(cut,"B");_service.Reads.Count(x=>x=="LoadReferencesForEquipmentAsync:B").ShouldBe(1); + await Tab(cut,"Details");cut.Find("input[id$=eq-name]").Change("queued-draft");var before=_service.Reads.Count; + await Route(cut,"B");_service.Reads.Count.ShouldBe(before);cut.Find("input[id$=eq-name]").GetAttribute("value").ShouldBe("queued-draft"); + } + + [Theory] + [InlineData("references")] [InlineData("virtual")] [InlineData("alarm")] + public async Task SavedCallbackAlreadyReloadingCannotOverwriteOrCloseNewRouteModal(string kind) + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));await Open(cut,kind);var saved=Callback(cut,kind,false); + _service.HoldSurface=kind;var pending=cut.InvokeAsync(()=>saved.InvokeAsync()); + await _service.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken); + await Route(cut,"B");await Open(cut,kind);_service.Release.TrySetResult();await pending; + Visible(cut,kind).ShouldBeTrue(); + cut.Find("tbody").TextContent.ShouldContain(kind=="references"?"B-first":kind=="virtual"?"virtual-tag-B":"alarm-B"); + } + + [Theory] + [InlineData("virtual")] [InlineData("alarm")] + public async Task DeleteReadRetiredBeforeDispatchDoesNotMutateEitherEquipment(string kind) + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));await Tab(cut,kind=="virtual"?"Virtual Tags":"Alarms"); + cut.FindAll("button").Single(x=>x.TextContent.Trim()=="Delete").Click();_service.HoldEdit=true; + var action=cut.FindComponent>().Instance.Parameters.Get(x=>x.OnConfirm); + var deleting=cut.InvokeAsync(()=>action.InvokeAsync());await _service.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken); + await Route(cut,"B");_service.Release.TrySetResult();await deleting; + _service.Writes.ShouldBeEmpty();cut.Find("h1").TextContent.ShouldBe("equipment-b"); + } + + [Fact] + public async Task ConfirmedOverrideWithFailedReadRetainsRowsAndOnlyRetriesRead() + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));await Tab(cut,"Tags");_service.FailReferenceReadAfterWrite=true; + cut.FindAll("button").First(x=>x.TextContent.Trim()=="Save name").Click(); + _service.Writes.Count.ShouldBe(1);cut.FindAll("tbody tr").Count.ShouldBe(2);cut.Markup.ShouldContain("Changes were saved"); + cut.FindAll("button").Where(x=>x.TextContent.Trim()=="Save name").ShouldAllBe(x=>x.HasAttribute("disabled")); + cut.FindAll("button").Single(x=>x.TextContent.Trim()=="Retry view load").Click(); + _service.Writes.Count.ShouldBe(1);cut.FindAll("button").First(x=>x.TextContent.Trim()=="Save name").HasAttribute("disabled").ShouldBeFalse(); + await Task.CompletedTask; + } + + [Fact] + public async Task RetiredDetailsSubmitAfterSuccessfulRefreshCannotReplayMutation() + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));var old=cut.FindComponent().Instance; + var submit=old.OnValidSubmit;var context=new Microsoft.AspNetCore.Components.Forms.EditContext(old.Model!); + await cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty);_service.Writes.Count.ShouldBe(1); + await cut.InvokeAsync(()=>submit.InvokeAsync(context));_service.Writes.Count.ShouldBe(1); + } + + [Fact] + public async Task YearParserErrorIsNamedAndLinkedWithoutAddingARangeRule() + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));var year=cut.FindAll("input").Single(x=>x.GetAttribute("type")=="number");year.Change("40000"); + await cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty); + year=cut.FindAll("input").Single(x=>x.GetAttribute("type")=="number");year.GetAttribute("aria-invalid").ShouldBe("true"); + cut.Find("#"+year.GetAttribute("aria-describedby")!.Split(' ')[0]).TextContent.ShouldContain("Year of construction");_service.Writes.ShouldBeEmpty(); + } + + [Fact] + public async Task CreateRedirectsOnceWithOriginalDefaultPayload() + { + var cut=NewEquipment();await cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty); + var navigation=Services.GetRequiredService();navigation.Uri.ShouldEndWith("/uns/equipment/created-fixture"); + _service.Writes.Count.ShouldBe(1);_service.Writes[0].Name.ShouldBe("CreateEquipmentAsync"); + var input=Assert.IsType(_service.Writes[0].Args[0]);input.Name.ShouldBe("new-equipment");input.MachineCode.ShouldBe("MC-NEW");input.UnsLineId.ShouldBe("LINE");input.Enabled.ShouldBeTrue();input.YearOfConstruction.ShouldBeNull(); + await cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty);_service.Writes.Count.ShouldBe(1); + } + [Fact] + public async Task RetiredCreateCompletionCannotRedirectReplacementRoute() + { + var cut=NewEquipment();_service.HoldWrite=true;var saving=cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty); + await _service.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken); + await Route(cut,"B");var before=_service.Reads.Count;_service.Release.TrySetResult();await saving; + Services.GetRequiredService().Uri.ShouldNotContain("created-fixture");_service.Writes.Count.ShouldBe(1);_service.Reads.Count.ShouldBe(before); + } + [Fact] + public async Task ConfirmedCreateWithoutReturnedIdDoesNotAllowReplayOrPretendToRefresh() + { + var cut=NewEquipment();_service.CreatedId=null;await cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty); + cut.Markup.ShouldContain("Equipment was created but no id was returned");cut.Markup.ShouldNotContain("Refreshing the view"); + cut.Find("button[type=submit]").HasAttribute("disabled").ShouldBeTrue();await cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty);_service.Writes.Count.ShouldBe(1); + } + private IRenderedComponent NewEquipment() + { + var cut=Render();cut.Find("input[id$=eq-name]").Change("new-equipment");cut.Find("input[id$=eq-machinecode]").Change("MC-NEW");cut.Find("select[id$=eq-line]").Change("LINE");return cut; + } + + [Theory] + [InlineData("success")] [InlineData("failure")] [InlineData("exception")] + public async Task ReplacementOwnsBusyAndOldCompletionCannotUnlockItsIndependentWrite(string outcome) + { + _service.HoldWritesByTarget=true;var cut=Render(p=>p.Add(x=>x.EquipmentId,"A")); + var a=cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty);cut.WaitForAssertion(()=>_service.PendingWrites.ContainsKey("A").ShouldBeTrue()); + await Route(cut,"B");cut.Find("button[type=submit]").HasAttribute("disabled").ShouldBeFalse(); + var b=cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty);cut.WaitForAssertion(()=>_service.PendingWrites.ContainsKey("B").ShouldBeTrue()); + var reads=_service.Reads.Count; + if(outcome=="exception")_service.PendingWrites["A"].SetException(new InvalidOperationException("Retired A write failure")); + else _service.PendingWrites["A"].SetResult(new(outcome=="success",outcome=="failure"?"Retired A failure":null)); + await a;cut.Find("button[type=submit]").HasAttribute("disabled").ShouldBeTrue();_service.Reads.Count.ShouldBe(reads);cut.Markup.ShouldNotContain("Retired A"); + _service.PendingWrites["B"].SetResult(new(true,null));await b;cut.Find("button[type=submit]").HasAttribute("disabled").ShouldBeFalse();_service.Writes.Count.ShouldBe(2); + } + + [Fact] + public async Task RetryControlGuardsSingleFlightAndKeepsStableOutcomeId() + { + var cut=Render(p=>p.Add(x=>x.EquipmentId,"A"));_service.FailPostWriteRead=true; + await cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty); + var retry=cut.Find("button[id$=details-retry]");var retryId=retry.Id;_service.HoldEquipmentA=true; + var pending=retry.ClickAsync(new());await _service.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken); + var count=_service.Reads.Count;retry=cut.Find("button[id$=details-retry]");retry.Id.ShouldBe(retryId); + retry.GetAttribute("aria-disabled").ShouldBe("true");await retry.ClickAsync(new());_service.Reads.Count.ShouldBe(count); + _service.Release.TrySetResult();await pending; + retry=cut.Find("button[id$=details-retry]");retry.Id.ShouldBe(retryId);retry.TextContent.ShouldContain("View refreshed");retry.GetAttribute("aria-disabled").ShouldBe("true"); + await retry.ClickAsync(new());_service.Reads.Count.ShouldBe(count);_service.Writes.Count.ShouldBe(1); + } + + private static Task Route(IRenderedComponent cut,string id)=>cut.InvokeAsync(()=>cut.Instance.SetParametersAsync(ParameterView.FromDictionary(new Dictionary{{"EquipmentId",id}}))); + private static Task Tab(IRenderedComponent cut,string name)=>cut.FindAll("button").Single(x=>x.TextContent.Trim()==name).ClickAsync(new()); + private static async Task Open(IRenderedComponent cut,string kind) + {await Tab(cut,kind=="references"?"Tags":kind=="virtual"?"Virtual Tags":"Alarms");await cut.FindAll("button").Single(x=>x.TextContent.Trim()==(kind=="references"?"+ Add reference":kind=="virtual"?"Add virtual tag":"Add alarm")).ClickAsync(new());} + private static EventCallback Callback(IRenderedComponent cut,string kind,bool cancel)=>kind switch + { + "references"=>cancel?cut.FindComponent>().Instance.Parameters.Get(x=>x.OnCancel):cut.FindComponent>().Instance.Parameters.Get(x=>x.OnCommitted), + "virtual"=>cancel?cut.FindComponent>().Instance.Parameters.Get(x=>x.OnCancel):cut.FindComponent>().Instance.Parameters.Get(x=>x.OnSaved), + _=>cancel?cut.FindComponent>().Instance.Parameters.Get(x=>x.OnCancel):cut.FindComponent>().Instance.Parameters.Get(x=>x.OnSaved) + }; + private static bool Visible(IRenderedComponent cut,string kind)=>kind switch{"references"=>cut.FindComponent>().Instance.Parameters.Get(x=>x.Visible),"virtual"=>cut.FindComponent>().Instance.Parameters.Get(x=>x.Visible),_=>cut.FindComponent>().Instance.Parameters.Get(x=>x.Visible)}; + private static object? Target(IRenderedComponent cut,string kind)=>kind switch{"references"=>cut.FindComponent>().Instance.Parameters.Get(x=>x.Target),"virtual"=>cut.FindComponent>().Instance.Parameters.Get(x=>x.Target),_=>cut.FindComponent>().Instance.Parameters.Get(x=>x.Target)}; + + public sealed record Mutation(string Name,object?[] Args); + public class EquipmentService:DispatchProxy + { + public readonly List Reads=new();public readonly List Writes=new();public readonly byte[] Version=[1,2]; + public bool HoldEdit,HoldEquipmentA,HoldWrite,FailPostWriteRead,FailReferenceReadAfterWrite,HoldWritesByTarget; + public readonly System.Collections.Concurrent.ConcurrentDictionary> PendingWrites=new(); + public string? HoldSurface; + public string? CreatedId="created-fixture"; + public readonly TaskCompletionSource Entered=new(TaskCreationOptions.RunContinuationsAsynchronously),Release=new(TaskCreationOptions.RunContinuationsAsynchronously); + public EquipmentEditDto Equipment(string id)=>new(id,"equipment-"+id.ToLowerInvariant(),"MC-"+id,"LINE",null,null,null,"Maker","Model","Serial","Hardware","Software",2020,"Location","https://fixture/manufacturer","https://fixture/manual",true,Version); + protected override object? Invoke(MethodInfo? method,object?[]? args) + { + var name=method!.Name;var id=args is{Length:>0}?args[0]?.ToString()??"":""; + if(name.StartsWith("Load",StringComparison.Ordinal))Reads.Add(name+":"+id); + return name switch + { + "LoadEquipmentAsync"=>ReadEquipment(id), + "LoadEquipmentPickContextAsync"=>Task.FromResult(new EquipmentPickContext([("LINE","Synthetic line")],[])), + "LoadReferencesForEquipmentAsync"=>ReadReferences(id), + "LoadVirtualTagsForEquipmentAsync"=>ReadVirtualRows(id), + "LoadAlarmsForEquipmentAsync"=>ReadAlarmRows(id), + "LoadScriptsAsync"=>Task.FromResult>([("S1","Synthetic script")]), + "LoadVirtualTagAsync"=>ReadVirtual(id), + "LoadScriptedAlarmAsync"=>ReadAlarm(id), + "UpdateEquipmentAsync" or "CreateEquipmentAsync" or "RemoveReferenceAsync" or "SetReferenceOverrideAsync" or "DeleteVirtualTagAsync" or "DeleteScriptedAlarmAsync"=>Write(name,args!), + _=>throw new InvalidOperationException("Refused operation: "+name) + }; + } + private async Task HoldRows(string surface) + {if(HoldSurface==surface){HoldSurface=null;Entered.TrySetResult();await Release.Task;}} + private async Task> ReadReferences(string id) + { + await HoldRows("references"); + if(FailReferenceReadAfterWrite&&Writes.Count>0){FailReferenceReadAfterWrite=false;throw new InvalidOperationException("Synthetic reference read failure");} + return [new(id+"-ref-1",id+"-first","raw/first","Double",TagAccessLevel.Read,null,0,Version),new(id+"-ref-2",id+"-second","raw/second","Double",TagAccessLevel.Read,null,1,Version)]; + } + private async Task> ReadVirtualRows(string id) + {await HoldRows("virtual");return [new(id+"-vtag","virtual-tag-"+id,"Double","S1",true)];} + private async Task> ReadAlarmRows(string id) + {await HoldRows("alarm");return [new(id+"-alarm","alarm-"+id,"LimitAlarm",500,"S1",true)];} + private async Task ReadEquipment(string id) + {if(HoldEquipmentA&&id=="A"){Entered.TrySetResult();await Release.Task;}if(FailPostWriteRead&&Writes.Count>0){FailPostWriteRead=false;throw new InvalidOperationException("Synthetic post-commit read failure");}return Equipment(id);} + private async Task ReadVirtual(string id){if(HoldEdit&&id.StartsWith("A",StringComparison.Ordinal)){Entered.TrySetResult();await Release.Task;}return new(id,id[..1],"virtual-tag","Double","S1",true,null,false,true,Version);} + private async Task ReadAlarm(string id){if(HoldEdit&&id.StartsWith("A",StringComparison.Ordinal)){Entered.TrySetResult();await Release.Task;}return new(id,id[..1],"alarm","LimitAlarm",500,"message","S1",true,true,true,Version);} + private async Task Write(string name,object?[] args){Writes.Add(new(name,args));if(HoldWritesByTarget&&name=="UpdateEquipmentAsync"){var pending=new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);PendingWrites[(string)args[0]!]=pending;return await pending.Task;}if(HoldWrite){Entered.TrySetResult();await Release.Task;}return new(true,null,CreatedId);} + } +}
Effective nameRaw pathData typeAccessDisplay-name overrideActionsDisplay-name overrideActions
@r.EffectiveName@r.EffectiveName@DisplayText.Abbreviate(r.RawPath, 48) @r.DataType @r.AccessLevel - +
- - + +
@(v.Enabled ? "Yes" : "No")
- - + +
@(a.Enabled ? "Yes" : "No")
- - + +