fix(admin-ui): scope configuration modal lifecycles and validation

This commit is contained in:
Joseph Doherty
2026-11-13 23:24:56 -05:00
parent f7bc69e9c3
commit 79acb80da9
65 changed files with 17081 additions and 511 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,94 @@
"""Five source-linked configuration wrappers, strictly owned loopback synthetic state."""
import base64,csv,hashlib,io,json,re,sys
from pathlib import Path
from urllib.parse import urlsplit,parse_qs
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='http://127.0.0.1:58916';results={'origin':origin,'scenes':[]}
with sync_playwright() as p:
for mode,width,zoom in [('desktop',1440,1),('phone',390,1),('real200',1440,2)]:
for kind in ['device','driver','tag','export','scope']:
with zoom_browser(p,width=width,height=900) as(ctx,worker):
page=ctx.new_page();page.set_default_timeout(10000);errors=[];external=[]
page.on('pageerror',lambda e:errors.append(str(e)))
def route(request):
if urlsplit(request.request.url).hostname not in ['127.0.0.1','localhost']:external.append(urlsplit(request.request.url).hostname);request.abort()
else:request.continue_()
page.route('**/*',route)
provenance=page.request.get(origin+'/fixture/provenance').json();assert provenance['provider']=='Microsoft.EntityFrameworkCore.InMemory'
page.goto(origin+'/?kind='+kind);expect(page.locator('#ready')).to_have_text('ready');factor=set_browser_zoom(worker,page,zoom)
session=page.locator('#session').inner_text();checks=[]
def state():return page.request.get(origin+'/fixture/state/'+session).json()
def check(name,value):checks.append({'name':name,'passed':bool(value)});assert value,name
def command(path):
response=page.request.post(origin+'/fixture/'+path+'/'+session+('/B' if path=='target' else '/success'));assert response.ok
def release(outcome='success'):
response=page.request.post(origin+'/fixture/release/'+session+'/'+outcome);assert response.ok
def replace():
response=page.request.post(origin+'/fixture/target/'+session+'/B');assert response.ok
def name_input():return page.get_by_label({'device':'Device name','driver':'Driver name','tag':'Name'}[kind],exact=True)
page.locator('#open').click();modal=page.locator('[role=dialog]');expect(modal).to_be_visible();safe=modal.locator('[data-initial-focus]');expect(safe).to_be_focused()
check('Named dialog and visible safe initial focus',modal.evaluate("n=>!!document.getElementById(n.getAttribute('aria-labelledby'))?.textContent.trim()") and safe.evaluate('n=>{const r=n.getBoundingClientRect();return r.top>=0&&r.bottom<=innerHeight}'))
page.locator('#outside').evaluate('n=>n.focus()');check('Outside focus denied',modal.evaluate('n=>n.contains(document.activeElement)'))
for _ in range(12):page.keyboard.press('Tab');assert modal.evaluate('n=>n.contains(document.activeElement)')
check('Twelve Tab steps remain scoped',True)
for field in modal.locator('input:not([type=hidden]),select,textarea').all():
if not field.is_visible() or field.is_disabled():continue
id=field.get_attribute('id');label=modal.locator('label[for="'+str(id)+'"]')
if id and label.count()==1:
check('Visible field has matching label '+id,True)
if field.get_attribute('type') not in ['checkbox','radio']:label.click();expect(field).to_be_focused()
else:
labelled=field.evaluate("n=>(n.getAttribute('aria-labelledby')||'').split(/\\s+/).filter(Boolean).map(id=>document.getElementById(id)?.textContent.trim()||'')")
snapshot=field.aria_snapshot();check('Composite table field has actual accessible row/column name',len(labelled)>=2 and all(text and re.sub(r'\s+',' ',text) in re.sub(r'\s+',' ',snapshot) for text in labelled))
field.focus();expect(field).to_be_focused()
check('Descriptions resolve '+str(id),field.evaluate("n=>(n.getAttribute('aria-describedby')||'').split(/\\s+/).filter(Boolean).every(id=>!!document.getElementById(id))"))
check('Text/select/textarea label clicks focus actual controls',True)
geometry=modal.locator('.modal-content').evaluate('n=>{const r=n.getBoundingClientRect();return {left:r.left,right:r.right,innerWidth,scrollWidth:document.documentElement.scrollWidth,dpr:devicePixelRatio}}')
check('Modal and page fit horizontally',geometry['left']>=0 and geometry['right']<=geometry['innerWidth']+1 and geometry['scrollWidth']<=geometry['innerWidth'])
modal.screenshot(path=str(out/(mode+'-'+kind+'.png')))
if kind=='export':
preview=modal.locator('textarea').input_value();check('Bounded CSV preview',1<len(preview.splitlines())<=50)
link=modal.get_by_role('link',name='Download CSV',exact=True);href=link.get_attribute('href');check('Download URL uses same target',parse_qs(urlsplit(href).query)['deviceId']==['CSV-A'])
with page.expect_download() as awaiting:link.click()
download=awaiting.value;content=Path(download.path()).read_bytes();rows=list(csv.reader(io.StringIO(content.decode())))
check('Full synthetic CSV download preserves127 rows',len(rows)==128)
replace();expect(modal.locator('textarea')).not_to_have_value(preview);check('Retarget preview/download remain paired',parse_qs(urlsplit(link.get_attribute('href')).query)['deviceId']==['CSV-B'] and len(modal.locator('textarea').input_value().splitlines())==4)
safe.click();expect(modal).to_have_count(0);expect(page.locator('#open')).to_be_focused()
check('Export closes without any mutation',state()['operations']==[])
csvproof={'rows':len(rows)-1,'sha256':hashlib.sha256(content).hexdigest(),'fileName':download.suggested_filename}
else:
page.keyboard.press('Escape');expect(modal).to_have_count(0);expect(page.locator('#open')).to_be_focused();check('Idle Escape returns to trigger',True)
page.locator('#open').click();expect(modal).to_be_visible()
if kind=='scope':
check('Scope selection required',modal.locator('.modal-footer .btn-primary').is_disabled())
modal.get_by_role('button',name='Expand Synthetic scope A',exact=True).click();expect(modal.locator('button[aria-pressed]').filter(has_text='Synthetic scope child-scope-A')).to_be_visible();check('Lazy children load inside current scope',True)
modal.locator('button[aria-pressed]').filter(has_text='Synthetic scope A').click()
else:
if kind=='tag':
name_input().fill('/bad');modal.locator('.modal-footer .btn-primary').click();expect(modal.locator('[id$="name-error"]')).not_to_have_text('');check('Invalid RawPath sends no operation',state()['operations']==[])
name_input().fill('fixture-updated');name_input().press('Tab')
modal.locator('.modal-footer .btn-primary').click();expect(modal).to_have_attribute('aria-busy','true')
check('Busy body controls disabled',modal.locator('fieldset').first.evaluate('n=>n.disabled'))
page.keyboard.press('Escape');check('Busy Escape/header/cancel cannot dismiss',modal.count()==1 and modal.locator('.btn-close').is_disabled() and modal.locator('.modal-footer .btn-outline-secondary').is_disabled())
first=state();check('Exactly one captured synthetic action',len(first['operations'])==1 and first['operations'][0]['target']=='A')
if kind!='scope':check('Unknown JSON and optimistic version retained',json.loads(first['operations'][0]['json'])['marker']=='A' and list(base64.b64decode(first['operations'][0]['version']))==[1,2])
release();expect(modal).to_have_count(0);expect(page.locator('#open')).to_be_focused();check('Successful action closes and restores focus',True)
page.locator('#open').click();expect(modal).to_be_visible();before=state()
if kind=='scope':modal.locator('button[aria-pressed]').filter(has_text='Synthetic scope A').click()
else:name_input().fill('fixture-replacement');name_input().press('Tab')
modal.locator('.modal-footer .btn-primary').click();expect(modal).to_have_attribute('aria-busy','true');replace()
if kind=='scope':expect(modal.locator('button[aria-pressed]').filter(has_text='Synthetic scope B')).to_be_visible()
else:expect(name_input()).to_have_value('beta')
release('failure');expect(modal).to_have_attribute('aria-busy','false')
current=state();check('Retired result does not invoke replacement UI callbacks',current['saved']==before['saved'] and current['closed']==before['closed'] and len(current['operations'])==2)
check('Retired failure does not overwrite current presentation','Synthetic old target failure' not in modal.inner_text())
if kind!='scope':check('Replacement draft remains beta',name_input().input_value()=='beta')
modal.locator('.modal-footer .btn-outline-secondary').click();expect(modal).to_have_count(0);expect(page.locator('#open')).to_be_focused();check('Replacement idle cancel returns focus',True)
csvproof=None
check('No operational/probe calls or external network',state()['forbidden']==0 and external==[])
check('No page errors',errors==[])
results['scenes'].append({'mode':mode,'kind':kind,'zoom':factor,'geometry':geometry,'checks':checks,'errors':errors,'externalHosts':external,'finalState':state(),'csv':csvproof})
(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'])}))
@@ -0,0 +1,2 @@
bin/
obj/
@@ -0,0 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><base href="/"/>
<link rel="stylesheet" href="_content/ZB.MOM.WW.OtOpcUa.AdminUI/lib/bootstrap/css/bootstrap.min.css"/><ThemeHead/><link rel="stylesheet" href="_content/ZB.MOM.WW.OtOpcUa.AdminUI/css/site.css"/>
</head><body><Router AppAssembly="typeof(App).Assembly"><Found Context="route"><RouteView RouteData="route"/></Found></Router><script src="_content/ZB.MOM.WW.OtOpcUa.AdminUI/js/dialog-focus.js"></script><script src="_framework/blazor.web.js"></script></body></html>
@@ -0,0 +1,24 @@
@page "/"
@rendermode InteractiveServer
@implements IDisposable
@inject FixtureSession Session
@inject FixtureRegistry Registry
@{ var target=Session.Target; }
<h1>Local synthetic configuration fixture</h1>
<button type="button" id="open" @onclick="()=>_visible=true">Open fixture</button><button type="button" id="outside">Outside fixture control</button>
<output id="ready">@(_ready?"ready":"loading")</output><output id="session">@Session.Id</output>
@if(Kind=="device"){<DeviceModal Visible="_visible" DeviceId="@target" OnSaved="()=>Saved(target)" VisibleChanged="value=>SetVisible(value,target)"/>}
else if(Kind=="driver"){<DriverConfigModal Visible="_visible" DriverInstanceId="@target" OnSaved="()=>Saved(target)" VisibleChanged="value=>SetVisible(value,target)"/>}
else if(Kind=="tag"){<RawTagModal Visible="_visible" TagId="@target" DriverType="Galaxy" OnSaved="()=>Saved(target)" VisibleChanged="value=>SetVisible(value,target)"/>}
else if(Kind=="export"){<RawCsvExportModal Visible="_visible" DeviceId='@("CSV-"+target)' DriverType="Modbus" VisibleChanged="value=>SetVisible(value,target)"/>}
else if(Kind=="scope"){<AclScopePickerModal Visible="_visible" ClusterId="@target" OnPicked="node=>Picked(node,target)" OnCancel="()=>SetVisible(false,target)"/>}
else{<p>Unknown fixture kind; no component is rendered.</p>}
@code{
[SupplyParameterFromQuery(Name="kind")]public string Kind{get;set;}="device";
private bool _visible,_ready;
protected override void OnAfterRender(bool firstRender){if(firstRender){Registry.Sessions.TryAdd(Session.Id,Session);Session.Changed=()=>InvokeAsync(StateHasChanged);_ready=true;StateHasChanged();}}
private Task Saved(string target){Session.Saved.Enqueue(target);return Task.CompletedTask;}
private Task SetVisible(bool value,string target){Session.Closed.Enqueue(target);if(Session.Target==target)_visible=value;return Task.CompletedTask;}
private async Task Picked(ZB.MOM.WW.OtOpcUa.AdminUI.Acls.AclScopeNode node,string target){Session.Picked.Enqueue(node.Key);await Session.Dispatch(new("PickScope",target,node.Key,"{}",null,null,[]));if(Session.Target==target)_visible=false;}
public void Dispose(){Session.Changed=null;Registry.Sessions.TryRemove(Session.Id,out _);}
}
@@ -0,0 +1,9 @@
@using Microsoft.AspNetCore.Components
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using static Microsoft.AspNetCore.Components.Web.RenderMode
@using ZB.MOM.WW.Theme
@using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Raw
@using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Uns
@using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Drivers
@using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Acls
@@ -0,0 +1 @@
<Project Sdk="Microsoft.NET.Sdk.Web"><PropertyGroup><TargetFramework>net10.0</TargetFramework><Nullable>enable</Nullable><ImplicitUsings>enable</ImplicitUsings><RootNamespace>ConfigModalCanary</RootNamespace></PropertyGroup><ItemGroup><ProjectReference Include="../../../../../src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/ZB.MOM.WW.OtOpcUa.AdminUI.csproj"/><PackageReference Include="Microsoft.EntityFrameworkCore.InMemory"/></ItemGroup></Project>
@@ -0,0 +1,96 @@
using System.Collections.Concurrent;
using System.Reflection;
using Microsoft.EntityFrameworkCore;
using ConfigModalCanary.Components;
using ZB.MOM.WW.OtOpcUa.AdminUI.Acls;
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.Entities;
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<FixtureRegistry>();builder.Services.AddScoped<FixtureSession>();
builder.Services.AddDbContextFactory<OtOpcUaConfigDbContext>(o=>o.UseInMemoryDatabase("ui-config-"+FixtureRegistry.DatabaseId));
builder.Services.AddScoped<RawTagCsvExportReader>();
builder.Services.AddScoped<IRawTreeService>(s=>{var p=DispatchProxy.Create<IRawTreeService,SyntheticRaw>();((SyntheticRaw)(object)p).Session=s.GetRequiredService<FixtureSession>();return p;});
builder.Services.AddScoped<IAclScopeService>(s=>{var p=DispatchProxy.Create<IAclScopeService,SyntheticScopes>();((SyntheticScopes)(object)p).Session=s.GetRequiredService<FixtureSession>();return p;});
builder.Services.AddScoped<IAdminOperationsClient>(s=>{var p=DispatchProxy.Create<IAdminOperationsClient,RefuseOperational>();((RefuseOperational)(object)p).Session=s.GetRequiredService<FixtureSession>();return p;});
builder.Services.AddScoped<AdminProbeService>();
var app=builder.Build();app.UseAntiforgery();app.MapStaticAssets();
using(var scope=app.Services.CreateScope())
{
using var db=scope.ServiceProvider.GetRequiredService<IDbContextFactory<OtOpcUaConfigDbContext>>().CreateDbContext();
FixtureRegistry.Provider=db.Database.ProviderName??"unknown";
db.ServerClusters.Add(new(){ClusterId="C1",Name="Synthetic cluster",Enterprise="fixture",Site="loopback",RedundancyMode=RedundancyMode.None,CreatedBy="fixture"});
db.DriverInstances.Add(new(){DriverInstanceId="CSV-DRV",ClusterId="C1",Name="fixture-driver",DriverType="Modbus",DriverConfig="{}"});
foreach(var id in new[]{"CSV-A","CSV-B"})
{
db.Devices.Add(new(){DeviceId=id,DriverInstanceId="CSV-DRV",Name=id,DeviceConfig="{}"});
for(var i=0;i<(id=="CSV-A"?127:3);i++)db.Tags.Add(new(){TagId=id+"-"+i,DeviceId=id,Name="fixture-tag-"+i,DataType="Int16",AccessLevel=TagAccessLevel.Read,TagConfig="{\"region\":\"HoldingRegisters\",\"address\":"+i+",\"marker\":\""+id+"\"}"});
}
db.SaveChanges();
}
app.MapGet("/fixture/provenance",()=>new{purpose="Loopback synthetic configuration modal fixture",backend="EF InMemory CSV seed only; fake component reads and mutation results; all operational/probe clients refuse",provider=FixtureRegistry.Provider,productionDownloadAuthorization="Not exercised here; existing endpoint metadata tests retained"});
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(),saved=s.Saved.ToArray(),closed=s.Closed.ToArray(),picked=s.Picked.ToArray(),forbidden=s.Forbidden}):Results.NotFound());
app.MapPost("/fixture/target/{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/release/{id:guid}/{outcome}",(Guid id,string outcome,FixtureRegistry registry)=>
{
if(outcome is not("success" or "failure" or "exception")||!registry.Sessions.TryGetValue(id,out var s)||s.Pending is null)return Results.BadRequest();
if(outcome=="exception")s.Pending.TrySetException(new InvalidOperationException("Synthetic old target exception"));else s.Pending.TrySetResult(new(outcome=="success",outcome=="failure"?"Synthetic old target failure":null));return Results.Ok();
});
app.MapGet("/api/raw/tags.csv",async(string deviceId,string driverType,RawTagCsvExportReader reader)=>
{
if(deviceId is not("CSV-A" or "CSV-B")||driverType!="Modbus")return Results.BadRequest();
var csv=await RawTagCsvExport.BuildAsync(reader,deviceId,null,driverType);return csv is null?Results.NotFound():Results.File(System.Text.Encoding.UTF8.GetBytes(csv.Csv),"text/csv",csv.FileName);
});
app.MapRazorComponents<App>().AddInteractiveServerRenderMode();app.Run();
public sealed class FixtureRegistry {public static string Provider="unknown";public static readonly string DatabaseId=Guid.NewGuid().ToString("N");public ConcurrentDictionary<Guid,FixtureSession> Sessions=new();}
public sealed class FixtureSession
{
public readonly Guid Id=Guid.NewGuid();public string Target="A";public Func<Task>? Changed;
public readonly ConcurrentQueue<Mutation> Operations=new();public readonly ConcurrentQueue<string> Saved=new(),Closed=new(),Picked=new();
public int Forbidden;public TaskCompletionSource<UnsMutationResult>? Pending;
public Task<UnsMutationResult> Dispatch(Mutation operation){Operations.Enqueue(operation);Pending=new(TaskCreationOptions.RunContinuationsAsynchronously);return Pending.Task;}
}
public sealed record Mutation(string Method,string Target,string Name,string Json,bool? Enabled,string? Resilience,byte[] Version);
public class SyntheticRaw:DispatchProxy
{
public FixtureSession Session=null!;
protected override object? Invoke(MethodInfo? method,object?[]? args)
{
var id=(string)args![0]!;var name=id=="A"?"alpha":"beta";var marker="\"marker\":\""+id+"\"";
switch(method?.Name)
{
case "LoadDeviceForEditAsync":return Task.FromResult<RawDeviceEditDto?>(new(id,"PARENT-"+id,name,"{\"Host\":\"127.0.0.1\",\"Port\":502,\"UnitId\":1,"+marker+"}",true,"Modbus",[1,2]));
case "LoadDriverForEditAsync":return Task.FromResult<RawDriverEditDto?>(new(id,name,"Modbus","{"+marker+"}",null,[1,2]));
case "LoadTagForEditAsync":return Task.FromResult<RawTagEditDto?>(new(id,"device-"+id,null,name,"Float",TagAccessLevel.Read,false,null,"{"+marker+"}",[1,2]));
case "LoadMergedProbeConfigAsync":return Task.FromResult<(string DriverType,string MergedConfigJson)?>(("Modbus","{\"Host\":\"127.0.0.1\",\"Port\":502,"+marker+"}"));
case "UpdateDeviceAsync":return Session.Dispatch(new(method.Name,id,(string)args[1]!, (string)args[2]!, (bool)args[3]!,null,((byte[])args[4]!).ToArray()));
case "UpdateDriverAsync":return Session.Dispatch(new(method.Name,id,(string)args[1]!, (string)args[2]!,null,(string?)args[3],((byte[])args[4]!).ToArray()));
case "UpdateTagAsync":var tag=(RawTagInput)args[1]!;return Session.Dispatch(new(method.Name,id,tag.Name,tag.TagConfig,null,null,((byte[])args[2]!).ToArray()));
default:Interlocked.Increment(ref Session.Forbidden);throw new InvalidOperationException("Operational request refused: "+method?.Name);
}
}
}
public class SyntheticScopes:DispatchProxy
{
public FixtureSession Session=null!;
protected override object? Invoke(MethodInfo? method,object?[]? args)
{
if(method?.Name=="LoadRootsAsync")return Task.FromResult(new AclScopeRoots([Node((string)args![0]!)],[]));
if(method?.Name=="LoadChildrenAsync")return Task.FromResult<IReadOnlyList<AclScopeNode>>([Node("child-"+((AclScopeNode)args![0]!).Key)]);
Interlocked.Increment(ref Session.Forbidden);throw new InvalidOperationException("Scope operation refused");
}
private static AclScopeNode Node(string id)=>new(){Key="scope-"+id,DisplayName="Synthetic scope "+id,Icon="C",ScopeKind=NodeAclScopeKind.Cluster,PathLabel="Synthetic scope "+id,HasLazyChildren=true};
}
public class RefuseOperational:DispatchProxy
{
public FixtureSession Session=null!;
protected override object? Invoke(MethodInfo? method,object?[]? args){Interlocked.Increment(ref Session.Forbidden);throw new InvalidOperationException("No operational/probe access in UI fixture");}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

@@ -0,0 +1,10 @@
[
{
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DeviceModal.razor",
"leadingWhitespaceOnly": true
},
{
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DriverConfigModal.razor",
"leadingWhitespaceOnly": true
}
]
@@ -0,0 +1,8 @@
Traceback (most recent call last):
File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-config-modals/browser.py", line 38, in <module>
id=field.get_attribute('id');label=modal.locator('label[for="'+str(id)+'"]');check('Visible field has matching label '+str(id),bool(id) and label.count()==1)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-config-modals/browser.py", line 23, in check
def check(name,value):checks.append({'name':name,'passed':bool(value)});assert value,name
^^^^^
AssertionError: Visible field has matching label None
@@ -0,0 +1 @@
{"scenes": 15, "checks": 627}
@@ -0,0 +1,55 @@
Determining projects to restore...
All projects are up-to-date for restore.
ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll
ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll
ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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.
Results File: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-config-modals/contracts-acceptance.trx
Passed! - Failed: 0, Passed: 233, Skipped: 0, Total: 233, Duration: 769 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
@@ -0,0 +1,55 @@
Determining projects to restore...
All projects are up-to-date for restore.
ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll
ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll
ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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.
Results File: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-config-modals/contracts-private-sql.trx
Passed! - Failed: 0, Passed: 226, Skipped: 0, Total: 226, Duration: 713 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
@@ -0,0 +1,102 @@
Determining projects to restore...
All projects are up-to-date for restore.
ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll
ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll
ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll
ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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.89] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(value: "") [FAIL]
[xUnit.net 00:00:01.91] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(value: "/bad") [FAIL]
[xUnit.net 00:00:01.92] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.RequiredFallbackConfigIsLinkedAndFocusesItsOwnControl [FAIL]
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(value: "") [578 ms]
Error Message:
Shouldly.ShouldAssertException : JSInterop.Invocations.Count(i=>i.Identifier=="Blazor._internal.domWrapper.focus")
should be
1
but was
0
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(String value) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 359
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.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(value: "/bad") [18 ms]
Error Message:
Shouldly.ShouldAssertException : JSInterop.Invocations.Count(i=>i.Identifier=="Blazor._internal.domWrapper.focus")
should be
1
but was
0
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(String value) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 359
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.ComplexModalAccessibilityTests.RequiredFallbackConfigIsLinkedAndFocusesItsOwnControl [12 ms]
Error Message:
Shouldly.ShouldAssertException : cut.Find("[id$=save-error]").TextContent (null)
should not be null or white space
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.RequiredFallbackConfigIsLinkedAndFocusesItsOwnControl() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 412
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
--- End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
Failed! - Failed: 3, Passed: 0, Skipped: 0, Total: 3, Duration: 617 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
@@ -0,0 +1,139 @@
Determining projects to restore...
All projects are up-to-date for restore.
ZB.MOM.WW.OtOpcUa.Analyzers -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll
ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
ZB.MOM.WW.OtOpcUa.Commons -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll
ZB.MOM.WW.OtOpcUa.Cluster -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll
ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll
ZB.MOM.WW.OtOpcUa.Configuration -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll
ZB.MOM.WW.OtOpcUa.Core -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll
ZB.MOM.WW.OtOpcUa.Security -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
ZB.MOM.WW.OtOpcUa.ControlPlane -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
ZB.MOM.WW.OtOpcUa.OpcUaServer -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll
ZB.MOM.WW.OtOpcUa.Runtime -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll
ZB.MOM.WW.OtOpcUa.AdminUI -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll
ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll
Test run for /tmp/ot-config-modal-artifacts/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.18] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Drivers.SaveRefusalNoticesTests.Both_modals_render_one_shared_error_area_and_reset_it_on_resubmit_and_edit(file: "DeviceModal.razor", jsonField: "_deviceConfigJson") [FAIL]
[xUnit.net 00:00:01.18] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Raw.RawCsvRenderingTests.Modals_no_longer_embed_the_csv_or_render_every_row [FAIL]
[xUnit.net 00:00:01.18] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Raw.ParameterDictionaryCacheTests.Modals_build_their_parameters_through_the_cache_with_reused_callbacks [FAIL]
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Raw.RawCsvRenderingTests.Modals_no_longer_embed_the_csv_or_render_every_row [15 ms]
Error Message:
Shouldly.ShouldAssertException : dir
should not be null but was
Additional Info:
could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test binary)
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.AdminUiSource.Read(String[] relativeSegments) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/AdminUiSource.cs:line 20
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Raw.RawCsvRenderingTests.Modals_no_longer_embed_the_csv_or_render_every_row() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Raw/RawCsvRenderingTests.cs:line 123
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.Raw.ParameterDictionaryCacheTests.Modals_build_their_parameters_through_the_cache_with_reused_callbacks [26 ms]
Error Message:
Shouldly.ShouldAssertException : dir
should not be null but was
Additional Info:
could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test binary)
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.AdminUiSource.Read(String[] relativeSegments) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/AdminUiSource.cs:line 20
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Raw.ParameterDictionaryCacheTests.Modals_build_their_parameters_through_the_cache_with_reused_callbacks() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Raw/ParameterDictionaryCacheTests.cs:line 67
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.Drivers.SaveRefusalNoticesTests.Both_modals_render_one_shared_error_area_and_reset_it_on_resubmit_and_edit(file: "DeviceModal.razor", jsonField: "_deviceConfigJson") [14 ms]
Error Message:
Shouldly.ShouldAssertException : dir
should not be null but was
Additional Info:
could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test binary)
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.AdminUiSource.Read(String[] relativeSegments) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/AdminUiSource.cs:line 20
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Drivers.SaveRefusalNoticesTests.Both_modals_render_one_shared_error_area_and_reset_it_on_resubmit_and_edit(String file, String jsonField) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Drivers/SaveRefusalNoticesTests.cs:line 41
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
[xUnit.net 00:00:01.19] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Drivers.SaveRefusalNoticesTests.Both_modals_render_one_shared_error_area_and_reset_it_on_resubmit_and_edit(file: "DriverConfigModal.razor", jsonField: "_driverConfigJson") [FAIL]
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Drivers.SaveRefusalNoticesTests.Both_modals_render_one_shared_error_area_and_reset_it_on_resubmit_and_edit(file: "DriverConfigModal.razor", jsonField: "_driverConfigJson") [< 1 ms]
Error Message:
Shouldly.ShouldAssertException : dir
should not be null but was
Additional Info:
could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test binary)
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.AdminUiSource.Read(String[] relativeSegments) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/AdminUiSource.cs:line 20
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Drivers.SaveRefusalNoticesTests.Both_modals_render_one_shared_error_area_and_reset_it_on_resubmit_and_edit(String file, String jsonField) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Drivers/SaveRefusalNoticesTests.cs:line 41
at InvokeStub_SaveRefusalNoticesTests.Both_modals_render_one_shared_error_area_and_reset_it_on_resubmit_and_edit(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[xUnit.net 00:00:01.19] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Raw.RawTagModalMergedConfigTests.The_accessor_is_live_not_a_captured_snapshot [FAIL]
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Raw.RawTagModalMergedConfigTests.The_accessor_is_live_not_a_captured_snapshot [4 ms]
Error Message:
Shouldly.ShouldAssertException : firstAccessor()
should be
"{"endpoint":"10.0.0.1:44818","slot":0}"
but was
"{}"
difference
Difference | | | | | | | | | | | | | | | | | | | | | |
| \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/
Index | ... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 ...
Expected Value | ... " e n d p o i n t " : " 1 0 . 0 . 0 . 1 : ...
Actual Value | ... } ...
Expected Code | ... 34 101 110 100 112 111 105 110 116 34 58 34 49 48 46 48 46 48 46 49 58 ...
Actual Code | ... 125 ...
Difference | | | | | | | | | | | | | | | | | | | | | |
| \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/
Index | ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Expected Value | ... . 0 . 1 : 4 4 8 1 8 " , " s l o t " : 0 }
Actual Value | ...
Expected Code | ... 46 48 46 49 58 52 52 56 49 56 34 44 34 115 108 111 116 34 58 48 125
Actual Code | ...
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Raw.RawTagModalMergedConfigTests.The_accessor_is_live_not_a_captured_snapshot() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Raw/RawTagModalMergedConfigTests.cs:line 101
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
--- End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
Failed! - Failed: 5, Passed: 29, Skipped: 0, Total: 34, Duration: 505 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
@@ -0,0 +1,89 @@
Determining projects to restore...
All projects are up-to-date for restore.
ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll
ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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.82] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(value: "") [FAIL]
[xUnit.net 00:00:01.82] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(value: "/bad") [FAIL]
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(value: "") [10 ms]
Error Message:
Shouldly.ShouldAssertException : ameInput(cut,"tag");name.GetAttribute("aria-invalid")
should be
"true"
but was
null
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(String value) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 356
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.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(value: "/bad") [4 ms]
Error Message:
Shouldly.ShouldAssertException : ameInput(cut,"tag");name.GetAttribute("aria-invalid")
should be
"true"
but was
null
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(String value) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 356
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)
Results File: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-config-modals/contracts-final.trx
Failed! - Failed: 2, Passed: 226, Skipped: 0, Total: 228, Duration: 740 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
@@ -0,0 +1,71 @@
Determining projects to restore...
All projects are up-to-date for restore.
ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll
ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll
ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll
ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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-theme-config-modal-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.77] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(value: "/bad") [FAIL]
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(value: "/bad") [31 ms]
Error Message:
Shouldly.ShouldAssertException : ameInput(cut,"tag");name.GetAttribute("aria-invalid")
should be
"true"
but was
null
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.InvalidTagNameExposesBothDomainAndRequiredErrors(String value) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 356
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
--- End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options)
Failed! - Failed: 1, Passed: 1, Skipped: 0, Total: 2, Duration: 597 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
@@ -0,0 +1,79 @@
Determining projects to restore...
All projects are up-to-date for restore.
ZB.MOM.WW.OtOpcUa.Analyzers -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll
ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
ZB.MOM.WW.OtOpcUa.Commons -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
ZB.MOM.WW.OtOpcUa.Cluster -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll
ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll
ZB.MOM.WW.OtOpcUa.Configuration -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll
ZB.MOM.WW.OtOpcUa.Core -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll
ZB.MOM.WW.OtOpcUa.Security -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll
ZB.MOM.WW.OtOpcUa.OpcUaServer -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll
ZB.MOM.WW.OtOpcUa.ControlPlane -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll
ZB.MOM.WW.OtOpcUa.Runtime -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll
ZB.MOM.WW.OtOpcUa.AdminUI -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll
ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll
Test run for /tmp/ot-config-modal-artifacts/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:00.95] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.OpcUaClientDriverPageFormSerializationTests.The_host_name_check_is_an_opt_in_in_the_security_panel_with_its_caveats [FAIL]
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.OpcUaClientDriverPageFormSerializationTests.The_host_name_check_is_an_opt_in_in_the_security_panel_with_its_caveats [24 ms]
Error Message:
Shouldly.ShouldAssertException : dir
should not be null but was
Additional Info:
could not locate the repository root
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.OpcUaClientDriverPageFormSerializationTests.The_host_name_check_is_an_opt_in_in_the_security_panel_with_its_caveats() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/OpcUaClientDriverPageFormSerializationTests.cs:line 221
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
[xUnit.net 00:00:00.96] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.AbLegacyDriverPageFormSerializationTests.The_transport_dropdown_labels_name_libplctag_as_the_default_and_native_as_opt_in [FAIL]
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.AbLegacyDriverPageFormSerializationTests.The_transport_dropdown_labels_name_libplctag_as_the_default_and_native_as_opt_in [< 1 ms]
Error Message:
Shouldly.ShouldAssertException : dir
should not be null but was
Additional Info:
could not locate the repository root
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.AbLegacyDriverPageFormSerializationTests.The_transport_dropdown_labels_name_libplctag_as_the_default_and_native_as_opt_in() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/AbLegacyDriverPageFormSerializationTests.cs:line 181
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Results File: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot13-config-modals/contracts.trx
Failed! - Failed: 2, Passed: 224, Skipped: 0, Total: 226, Duration: 659 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
@@ -0,0 +1 @@
{"contexts": 2, "passed": true}
@@ -0,0 +1 @@
{"contexts": 2, "passed": false}
@@ -0,0 +1 @@
{"contexts": 2, "passed": false}
@@ -0,0 +1,160 @@
Determining projects to restore...
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.csproj (in 46 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.csproj (in 44 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.csproj (in 46 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Abstractions/ZB.MOM.WW.OtOpcUa.Core.Abstractions.csproj (in 44 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.csproj (in 46 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.7 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.csproj (in 0.5 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.csproj (in 2 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.csproj (in 125 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.csproj (in 48 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.csproj (in 125 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.csproj (in 0.9 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.csproj (in 72 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.csproj (in 0.5 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.csproj (in 26 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.csproj (in 30 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.8 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting/ZB.MOM.WW.OtOpcUa.Core.Scripting.csproj (in 172 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.csproj (in 172 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/Tooling/ZB.MOM.WW.OtOpcUa.Analyzers/ZB.MOM.WW.OtOpcUa.Analyzers.csproj (in 54 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.csproj (in 3 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.csproj (in 0.9 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.csproj (in 35 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.csproj (in 33 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Security/ZB.MOM.WW.OtOpcUa.Security.csproj (in 226 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip/ZB.MOM.WW.OtOpcUa.Driver.AbCip.csproj (in 221 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.csproj (in 156 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.csproj (in 76 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer/ZB.MOM.WW.OtOpcUa.OpcUaServer.csproj (in 227 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.csproj (in 61 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.csproj (in 226 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.csproj (in 60 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Commons/ZB.MOM.WW.OtOpcUa.Commons.csproj (in 1 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.csproj (in 2 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core/ZB.MOM.WW.OtOpcUa.Core.csproj (in 151 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.csproj (in 4 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.csproj (in 3 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Cluster/ZB.MOM.WW.OtOpcUa.Cluster.csproj (in 21 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.ControlPlane/ZB.MOM.WW.OtOpcUa.ControlPlane.csproj (in 19 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.csproj (in 10 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql/ZB.MOM.WW.OtOpcUa.Driver.Sql.csproj (in 16 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/ZB.MOM.WW.OtOpcUa.Runtime.csproj (in 271 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.csproj (in 34 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/ZB.MOM.WW.OtOpcUa.AdminUI.csproj (in 47 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Configuration/ZB.MOM.WW.OtOpcUa.Configuration.csproj (in 114 ms).
Restored /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj (in 241 ms).
ZB.MOM.WW.OtOpcUa.Analyzers -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll
ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
ZB.MOM.WW.OtOpcUa.Commons -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll
ZB.MOM.WW.OtOpcUa.Cluster -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll
ZB.MOM.WW.OtOpcUa.Core.Scripting -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll
ZB.MOM.WW.OtOpcUa.Configuration -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll
ZB.MOM.WW.OtOpcUa.Core -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll
ZB.MOM.WW.OtOpcUa.Security -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll
ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll
ZB.MOM.WW.OtOpcUa.Driver.Sql -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll
ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll
ZB.MOM.WW.OtOpcUa.ControlPlane -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll
ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll
ZB.MOM.WW.OtOpcUa.OpcUaServer -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll
ZB.MOM.WW.OtOpcUa.Runtime -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll
ZB.MOM.WW.OtOpcUa.AdminUI -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll
ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /tmp/ot-config-modal-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll
Test run for /tmp/ot-config-modal-artifacts/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.70] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(kind: "tag") [FAIL]
[xUnit.net 00:00:01.72] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(kind: "device") [FAIL]
[xUnit.net 00:00:01.74] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(kind: "scope") [FAIL]
[xUnit.net 00:00:01.74] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(kind: "driver") [FAIL]
[xUnit.net 00:00:01.81] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(kind: "export") [FAIL]
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(kind: "tag") [544 ms]
Error Message:
Shouldly.ShouldAssertException : ut.Find("[role=dialog]");modal.GetAttribute("aria-modal")
should be
"true"
but was
null
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(String kind) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 45
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(kind: "device") [19 ms]
Error Message:
Shouldly.ShouldAssertException : ut.Find("[role=dialog]");modal.GetAttribute("aria-modal")
should be
"true"
but was
null
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(String kind) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 45
at InvokeStub_ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(kind: "scope") [12 ms]
Error Message:
Shouldly.ShouldAssertException : ut.Find("[role=dialog]");modal.GetAttribute("aria-modal")
should be
"true"
but was
null
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(String kind) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 45
at InvokeStub_ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(kind: "driver") [4 ms]
Error Message:
Shouldly.ShouldAssertException : ut.Find("[role=dialog]");modal.GetAttribute("aria-modal")
should be
"true"
but was
null
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(String kind) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 45
at InvokeStub_ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(kind: "export") [70 ms]
Error Message:
Shouldly.ShouldAssertException : ut.Find("[role=dialog]");modal.GetAttribute("aria-modal")
should be
"true"
but was
null
Stack Trace:
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(String kind) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/ComplexModalAccessibilityTests.cs:line 45
at InvokeStub_ComplexModalAccessibilityTests.Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Failed! - Failed: 5, Passed: 0, Skipped: 0, Total: 5, Duration: 659 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
@@ -0,0 +1,18 @@
"""Bounded owned Name error visibility and recovery, no real mutations."""
import argparse,json,sys
from pathlib import Path
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
parser=argparse.ArgumentParser();parser.add_argument('--output',default='name-error-green.json');args=parser.parse_args();out=Path(__file__).parent;results=[]
with sync_playwright()as p:
for mode,width,zoom in [('phone',390,1),('real200',1440,2)]:
with zoom_browser(p,width=width,height=900)as(ctx,worker):
page=ctx.new_page();errors=[];page.on('pageerror',lambda e:errors.append(str(e)));page.goto('http://127.0.0.1:58916/?kind=tag');expect(page.locator('#ready')).to_have_text('ready');factor=set_browser_zoom(worker,page,zoom);session=page.locator('#session').inner_text();page.locator('#open').click();name=page.get_by_label('Name',exact=True);cases=[]
for value in ['/bad','']:
name.fill(value);page.locator('.modal-footer .btn-primary').click();expect(name).to_have_attribute('aria-invalid','true');expect(name).to_be_focused();message=page.locator('[id$=name-error]');expect(message).not_to_have_text('')
geometry=message.evaluate('n=>{const r=n.getBoundingClientRect();return {top:r.top,bottom:r.bottom,height:innerHeight}}');focused=name.evaluate('n=>n===document.activeElement');state=page.request.get('http://127.0.0.1:58916/fixture/state/'+session).json();cases.append({'value':value,'geometry':geometry,'nameFocused':focused,'errorVisible':geometry['top']>=0 and geometry['bottom']<=geometry['height'],'noOperation':state['operations']==[]});page.screenshot(path=str(out/(mode+('-required-error.png'if value==''else'-domain-error.png'))))
name.fill('fixture-recovered');name.press('Tab');expect(name).not_to_have_attribute('aria-invalid','true')
config=page.get_by_label('Tag config (Galaxy)',exact=True);config.fill('');config.press('Tab');page.locator('.modal-footer .btn-primary').click();expect(config).to_have_attribute('aria-invalid','true');expect(config).to_be_focused();message=page.locator('[id$=save-error]');expect(message).not_to_have_text('');geometry=message.evaluate('n=>{const r=n.getBoundingClientRect();return {top:r.top,bottom:r.bottom,height:innerHeight}}');state=page.request.get('http://127.0.0.1:58916/fixture/state/'+session).json();cases.append({'field':'fallback config','value':'','geometry':geometry,'nameFocused':config.evaluate('n=>n===document.activeElement'),'errorVisible':geometry['top']>=0 and geometry['bottom']<=geometry['height'],'noOperation':state['operations']==[]});page.screenshot(path=str(out/(mode+'-config-error.png')))
config.fill('{"marker":"A"}');config.press('Tab');expect(config).not_to_have_attribute('aria-invalid','true');page.locator('.modal-footer .btn-primary').click();expect(page.locator('[role=dialog]')).to_have_attribute('aria-busy','true');assert page.request.post('http://127.0.0.1:58916/fixture/release/'+session+'/success').ok;expect(page.locator('[role=dialog]')).to_have_count(0);expect(page.locator('#open')).to_be_focused();state=page.request.get('http://127.0.0.1:58916/fixture/state/'+session).json();results.append({'mode':mode,'zoom':factor,'cases':cases,'recoveredSingleOperation':len(state['operations'])==1 and state['operations'][0]['name']=='fixture-recovered','forbidden':state['forbidden'],'errors':errors})
(out/args.output).write_text(json.dumps(results,indent=2)+'\n');ok=all(all(c['nameFocused']and c['errorVisible']and c['noOperation']for c in s['cases'])and s['recoveredSingleOperation']and s['forbidden']==0 and not s['errors']for s in results);print(json.dumps({'contexts':len(results),'passed':ok}));sys.exit(0 if ok else 1)
@@ -0,0 +1,88 @@
[
{
"mode": "phone",
"zoom": 1,
"cases": [
{
"value": "/bad",
"geometry": {
"top": 148.609375,
"bottom": 170.21875,
"height": 900
},
"nameFocused": true,
"errorVisible": true,
"noOperation": true
},
{
"value": "",
"geometry": {
"top": 148.609375,
"bottom": 170.21875,
"height": 900
},
"nameFocused": true,
"errorVisible": true,
"noOperation": true
},
{
"field": "fallback config",
"value": "",
"geometry": {
"top": 662.546875,
"bottom": 681.4375,
"height": 900
},
"nameFocused": true,
"errorVisible": true,
"noOperation": true
}
],
"recoveredSingleOperation": true,
"forbidden": 0,
"errors": []
},
{
"mode": "real200",
"zoom": 2,
"cases": [
{
"value": "/bad",
"geometry": {
"top": 168.59375,
"bottom": 190.1875,
"height": 450
},
"nameFocused": true,
"errorVisible": true,
"noOperation": true
},
{
"value": "",
"geometry": {
"top": 168.59375,
"bottom": 190.1875,
"height": 450
},
"nameFocused": true,
"errorVisible": true,
"noOperation": true
},
{
"field": "fallback config",
"value": "",
"geometry": {
"top": 339.9609375,
"bottom": 358.859375,
"height": 450
},
"nameFocused": true,
"errorVisible": true,
"noOperation": true
}
],
"recoveredSingleOperation": true,
"forbidden": 0,
"errors": []
}
]
@@ -0,0 +1,64 @@
[
{
"mode": "phone",
"zoom": 1,
"cases": [
{
"value": "/bad",
"geometry": {
"top": 148.609375,
"bottom": 170.21875,
"height": 900
},
"nameFocused": false,
"errorVisible": true,
"noOperation": true
},
{
"value": "",
"geometry": {
"top": 148.609375,
"bottom": 170.21875,
"height": 900
},
"nameFocused": false,
"errorVisible": true,
"noOperation": true
}
],
"recoveredSingleOperation": true,
"forbidden": 0,
"errors": []
},
{
"mode": "real200",
"zoom": 2,
"cases": [
{
"value": "/bad",
"geometry": {
"top": -195.40625,
"bottom": -173.8125,
"height": 450
},
"nameFocused": false,
"errorVisible": false,
"noOperation": true
},
{
"value": "",
"geometry": {
"top": -195.90625,
"bottom": -174.3125,
"height": 450
},
"nameFocused": false,
"errorVisible": false,
"noOperation": true
}
],
"recoveredSingleOperation": true,
"forbidden": 0,
"errors": []
}
]
@@ -0,0 +1,88 @@
[
{
"mode": "phone",
"zoom": 1,
"cases": [
{
"value": "/bad",
"geometry": {
"top": 148.609375,
"bottom": 170.21875,
"height": 900
},
"nameFocused": false,
"errorVisible": true,
"noOperation": true
},
{
"value": "",
"geometry": {
"top": 148.609375,
"bottom": 170.21875,
"height": 900
},
"nameFocused": false,
"errorVisible": true,
"noOperation": true
},
{
"field": "fallback config",
"value": "",
"geometry": {
"top": 662.546875,
"bottom": 681.4375,
"height": 900
},
"nameFocused": true,
"errorVisible": true,
"noOperation": true
}
],
"recoveredSingleOperation": true,
"forbidden": 0,
"errors": []
},
{
"mode": "real200",
"zoom": 2,
"cases": [
{
"value": "/bad",
"geometry": {
"top": 168.59375,
"bottom": 190.1875,
"height": 450
},
"nameFocused": false,
"errorVisible": true,
"noOperation": true
},
{
"value": "",
"geometry": {
"top": -195.90625,
"bottom": -174.3125,
"height": 450
},
"nameFocused": true,
"errorVisible": false,
"noOperation": true
},
{
"field": "fallback config",
"value": "",
"geometry": {
"top": 339.9609375,
"bottom": 358.859375,
"height": 450
},
"nameFocused": false,
"errorVisible": true,
"noOperation": true
}
],
"recoveredSingleOperation": true,
"forbidden": 0,
"errors": []
}
]
Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

@@ -0,0 +1,60 @@
{
"files": [
{
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DeviceModal.razor",
"beforeSha256": "635ddc8941db2af7c99f45d3c0a4c2bd7b169f2ba78a0773b196512a8d06e885",
"afterSha256": "645b62892cb49032c0acdc6f63735399fd00e2a486a86729c438cd671a42a1e7",
"allOriginalModelBindingsPreserved": true,
"originalPublicParametersRetainedWithOnlyAdditiveTarget": true,
"originalDriverDeviceProbeMergeUnchanged": true
},
{
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DriverConfigModal.razor",
"beforeSha256": "054b7477509ac2fd6b4644a7fbed950870e9270b42debf644378b9cc18701c3f",
"afterSha256": "d5bc3ed27957ea288ba4a417965a4493500f699f96ab50a8d950fd458c2f112f",
"allOriginalModelBindingsPreserved": true,
"originalPublicParametersRetainedWithOnlyAdditiveTarget": true
},
{
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawTagModal.razor",
"beforeSha256": "44593da63ad02d007dea573a0326d90ce8b47e7f3d19df1d2ab1f87d5aa53824",
"afterSha256": "af2f3e2fd6a7411235b125a4afd9df54a581e894a38cc7209b02718a5fcbbaf1",
"allOriginalModelBindingsPreserved": true,
"originalPublicParametersRetainedWithOnlyAdditiveTarget": true,
"modelFieldsDefaultsAndValidationAttributesPreserved": true,
"dataTypeChoicesByteIdentical": true
},
{
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawCsvExportModal.razor",
"beforeSha256": "da3efab821a97caa5e3157ad862aaafe36f9cf8fc4c6826818cbd7074a3703bf",
"afterSha256": "f08ef467d997ef47855e70f5766cb64b0d848a8950af11c3485674db22a6edeb",
"allOriginalModelBindingsPreserved": true,
"originalPublicParametersRetainedWithOnlyAdditiveTarget": true,
"originalBoundedPreviewLimitRetained": true
},
{
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Acls/AclScopePickerModal.razor",
"beforeSha256": "49b87873653b326047fb47fc65b3622cb3dedda814099a0e2e8f9ee7f18b9853",
"afterSha256": "9134d589f7476d7ca697b9e9f2804bb820fee12ece7664e4958721f8ce2a8d77",
"allOriginalModelBindingsPreserved": true,
"originalPublicParametersRetainedWithOnlyAdditiveTarget": true,
"namespaceScopeKindsIdsAndLabelsByteIdentical": true
}
],
"sharedAssets": [
{
"url": "/_content/ZB.MOM.WW.OtOpcUa.AdminUI/js/dialog-focus.js",
"source": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/wwwroot/js/dialog-focus.js",
"sha256": "54f0251c5655bc23481b942425e948ef37ceb228a0ba02d0d16ebd74e348debc",
"servedBytesEqualCurrentSource": true
},
{
"url": "/_content/ZB.MOM.WW.OtOpcUa.AdminUI/css/site.css",
"source": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/wwwroot/css/site.css",
"sha256": "9ad68c4a77de58045d87420f17b5fc41604839d2867dd41c59e8b2258bd841d6",
"servedBytesEqualCurrentSource": true
}
],
"sharedModalFrameAndJsEditedByThisSlice": false,
"domainModelsServicesSchemasAndEndpointsEditedByThisSlice": false
}
@@ -0,0 +1,67 @@
# OT13 configuration modal checkpoint
This checkpoint owns exactly five production components: `Shared/Drivers/DeviceModal.razor`, `DriverConfigModal.razor`, `Shared/Raw/RawTagModal.razor`, `RawCsvExportModal.razor` and `Shared/Acls/AclScopePickerModal.razor`. It adds `Pages/ComplexModalAccessibilityTests.cs` and owned evidence/fixture files. Parent additionally authorized the narrow `AdminUiSource.cs` discovery repair and `Raw/RawTagModalMergedConfigTests.cs` contract refinement described below.
The existing .NET10/bUnit2.7.2/Theme1.0.1 graph is retained. No production package, service interface, endpoint, model/schema, authorization policy, shared ModalFrame/JS, protocol form, device form, tag editor, picker or caller is edited by this slice. The canary's InMemory package uses the existing central version.
## Result by component
| Component | Presentation changes | Preserved behavior |
|---|---|---|
| DeviceModal | Named ModalFrame, Cancel entry, unique device name/enabled/help/error relationships; loading/pending body gating; generation-scoped child callbacks and probe accessor; detached save arguments/row version | DeviceFormMap dispatch, enabled default/update meaning, unknown JSON, original DriverDeviceConfigMerger, parent driver config, Test Connect component and probe semantics |
| DriverConfigModal | Named ModalFrame and safe Cancel; retains the existing unique TechField driver-name association; context/generation keys, child callback guards, captured create/edit scope/JSON/resilience/version/callbacks | DriverConfigFormMap and single-connection guidance, protocol defaults/JSON overlay, resilience payload, save refusal gate/one shared error area |
| RawTagModal | Named form/modal, unique native labels/checkbox/JSON/error/form references; current-generation callbacks, ABA-safe reads, detached update/version; existing name errors integrated with EditContext; visible owned invalid-field focus/recovery | DataTypes array, FormModel fields/defaults/attributes, RawPaths/TagConfigValidator/RawTagRowDefaults rules, immutable RawTagInput construction, native-alarm composition, typed editor dispatch and fail-soft merged-probe resolution |
| RawCsvExportModal | Named modal, Close entry, labelled readonly preview; captured device/group/type for both build and URL; direct retarget/read/disposal guards | Exactly the original bounded preview limit, full row count, group filtering via unchanged builder, file naming, same-origin escaped download URL and unchanged production endpoint policy |
| AclScopePickerModal | Named scoped modal, Cancel entry, semantic tree headings, protected roots/lazy reads/selection/callbacks, pending selection/cancel guard | Exact namespace scope kinds/IDs/labels, cluster-rooted trees, lazy behavior, deliberate selection, typed AclScopeNode payload and parent-owned visibility |
All five add only optional `Target` to their original public parameter set. Their default identity includes the existing target/scope parameters, so direct A→B replacement also advances the existing presentation/read generation. Unrelated renders retain drafts, caches and expansion. Existing bindings, RawTag model/default/validation declarations, DataTypes choices, namespace header definitions and the original device probe merge are checked in `source-guard.json`.
Save/selection/close callbacks and mutation arguments are captured for the rendered presentation. Pending mutation/selection remains single-flight through completion; body controls and close actions are disabled. A dispatched operation is neither cancelled nor replayed. After replacement/disposal its result/exception cannot install an old refusal or invoke new presentation callbacks. Read-only loads remain dismissible and stale read/child results are discarded. Callback/service exception behavior for a current target stays with the existing component/route boundary; tests cover the specific late-success/failure/exception cases, not a blanket exception guarantee.
## Approved getter contract refinement
The old merged-config test explicitly required a getter retained by tag A's retired child to return tag B's device config after reopening. Parent review identified that as the retargeting gap being repaired. The final assertion is stronger and specific: the current getter remains live while its asynchronous A resolve finishes; a retired getter retains its own immutable last-known A snapshot; a fresh B getter returns B. No getter throws or introduces a new neutral/default protocol config on retirement. Device getters likewise freeze the latest unsaved A merge before replacement/close/disposal. DynamicComponent is keyed by presentation generation and callbacks remain cached within a presentation.
This does **not** certify old shared pickers' pre-dispatch/disposed-initialization behavior. Root owns the separate six-picker guard gate. Previously dispatched A operations retain A semantics; retired components must also be prevented from starting new requests by that separate gate. No shared picker was edited here.
## Validation and native recovery
A real browser check found that the custom RawPath error had a description target but no invalid state. An attempted manual attribute was rejected by framework behavior; `InputBase` derives this state from its field messages. The existing RawPaths name error is now entered into a local ValidationMessageStore on the existing EditForm context, cleared on name edit/context retirement and unsubscribed on disposal. Required rules and OnValidSubmit remain unchanged. Errors render once through ValidationMessage. The existing fallback JSON Required message is also rendered in its already-linked error region.
The first real200% check then found the invalid Name error above the viewport (top−195/bottom−174 in450px height) while Save retained focus. Current-generation public ElementReference.FocusAsync now moves focus/scroll to the owned invalid Name or fallback JSON control. It does not focus Name for another field's error. Validation happens before write-busy begins, keeping the invalid field focusable. A deferred-focus regression proves an old validation-focus completion cannot unlock a subsequently started save.
Framework references: [InputBase validation attributes](https://raw.githubusercontent.com/dotnet/aspnetcore/v10.0.7/src/Components/Web/src/Forms/InputBase.cs), [public focus/scroll API](https://raw.githubusercontent.com/dotnet/aspnetcore/v10.0.7/src/Components/Web/src/ElementReferenceExtensions.cs). Actual installed-runtime checks below are the acceptance evidence.
## Tests and source discovery
- Before production edits: **5 valid name/association failures**, zero passes. These remain in logs/red.log.
- New ComplexModalAccessibilityTests total **41 cases**: repeated-instance names/IDs; nine edit result/exception replacements; three disposal cases; six late read success/failure cases; same-ID tag reopen; three retired/current child callback cases; live/frozen device getter; ACL roots/lazy reads/selection/cancel; CSV retarget; custom/Required invalid state and corrected retry; two create-scope snapshots; fallback JSON field focus; delayed validation-focus/write-busy isolation.
- Final aggregate **233/233 pass, zero skips**: the41 new cases plus192 existing cache, merged-config, stale-open, save-refusal, CSV, serialization, map/parity, native-alarm and credential-gate contracts. `contracts-acceptance.trx` / logs/contracts-acceptance.log are final.
- Parent-approved AdminUiSource repair locates the checked-out source through compile-time CallerFilePath and still discovers the actual `.slnx`; its Read API and assertions remain. Four initial isolated-artifact failures were lookup failures, retained alongside the one explicitly refined getter contract.
- Two other legacy serialization tests have their own binary-ancestry lookup. Their assertions/files were retained unchanged; the aggregate used a separate repo-anchored `artifacts/ui-theme-config-modal-tests` output (contents ignored by existing bin/obj rules), avoiding default output races while retaining native `.slnx` discovery. Initial224/226 lookup failures are retained.
Final command from the repository root (the state is the coordinator's owned private0600 fixture, never a committed credential):
```sh
python3 infra/tools/ui-consistency/with_private_sql.py --state "$OT_UI_PRIVATE_SQL_STATE" -- dotnet test tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj --artifacts-path "$PWD/artifacts/ui-theme-config-modal-tests" --filter 'FullyQualifiedName~ComplexModalAccessibilityTests|FullyQualifiedName~ParameterDictionaryCacheTests|FullyQualifiedName~RawTagModalMergedConfigTests|FullyQualifiedName~ModalStaleOpenGuardTests|FullyQualifiedName~SaveRefusalNoticesTests|FullyQualifiedName~RawCsv|FullyQualifiedName~DriverPageFormSerializationTests|FullyQualifiedName~DriverPageJsonConverterTests|FullyQualifiedName~DriverFormMapParityTests|FullyQualifiedName~TagConfigAuthoringDeployParityTests|FullyQualifiedName~NativeAlarmEditorModelTests|FullyQualifiedName~DriverConfigSaveGateTests' --logger 'trx;LogFileName=contracts-acceptance.trx' --results-directory docs/ui-consistency/evidence/ot13-config-modals
```
The final aggregate uses the validated owned loopback SQL fixture environment even for test discovery. Earlier filtered runs did not select SQL collections, but the pre-existing SqlServerFact constructor could probe the shared default during discovery; those earlier runs are not claimed SQL-isolated. No SQL collection or operational write was performed by this checkpoint. Full-suite integration is coordinator-owned and not claimed here.
## Actual browser evidence
The disposable source-linked fixture registers Razor, an explicitly verified Microsoft.EntityFrameworkCore.InMemory CSV seed, synthetic read/mutation callbacks and operation-refusing probe clients. Its fixture-only target/release endpoints modify only a per-circuit synthetic session. They cannot reach a real SQL/driver/gateway/provider. External browser HTTP hosts are blocked/recorded. Production endpoint authorization is retained by existing metadata tests; the canary download endpoint deliberately exercises only the shared CSV builder over synthetic data.
**15 Chromium scenes /627 assertions**: five wrappers at1440,390 and real browser200% (720px layout viewport/DPR2). Checks cover resolved modal names, visible safe entry, outside focus denial,12 scoped Tab steps, visible direct-label native focus and descriptions, and actual accessible row/column names for composite resilience fields. Checkbox state is preserved. They also cover idle Escape/return, invalid RawPath/no dispatch, busy body/close/Escape isolation, exactly-one synthetic action with unknown JSON/version retained, current completion/return, and A→B replacement retaining B despite A's late failure. ACL lazy nodes and selection are exercised. CSV preview stays at≤50 lines while the actual full synthetic download contains127 rows; retargeted preview/URL both identify B. No page errors, operational/probe calls or external HTTP requests.
The initial browser harness required a direct label/id for valid composite resilience inputs. It was corrected to verify their actual accessible row/column name; no product workaround or missing-name waiver. logs/browser-direct-label-assumption.log is retained.
**Two additional final-source error contexts** at390 and real200% cover six invalid states (custom Name, Required Name, Required fallback config), all with native focus on the correct control, fully visible error rectangles, and zero dispatch. Each then recovers with exactly one synthetic save and trigger focus return. `name-error-green.json` is final; `name-error-red.json`, the first focus-attempt observations, logs and screenshots retain failures. At200%, final Name errors occupy169–190px and config error340–359px inside the450px viewport. This is native focus/geometry evidence; no assistive-technology certification is claimed.
`browser.py` and `name-error-browser.py` import ignitionoee's existing loopback-only real-zoom helper; that explicit harness dependency does not affect production. Shared JS/CSS served bytes are verified against current source in source-guard.json. No CSS is edited by this slice.
## Integration boundaries
Primary owns actual caller Target identities, follow-up-message ordering after originating overlay cleanup, and generation checks inside already-dispatched parent refresh/close callbacks. Wrappers cannot retroactively guard an external callback's inner await. Root owns the separate shared-picker guard acceptance. Those gates and remaining wrappers keep OT13 open; this checkpoint is not a whole-task completion claim.
Parent and independent peer review accepted the frozen scoped source/tests/evidence, source hashes,233 tests and native proofs with no blocker. The owned58916 fixture is stopped after the scoped commit; no other agent's fixture or private SQL lifecycle is owned here. No deployment, real issue/key/config write, publication, push or shared ledger change.
@@ -11,17 +11,12 @@
@using ZB.MOM.WW.OtOpcUa.Core.Authorization
@inject IAclScopeService Scopes
@if (Visible)
{
<div class="modal-backdrop fade show" style="display:block"></div>
<div class="modal fade show" tabindex="-1" role="dialog" style="display:block">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Choose scope &middot; <span class="mono">@ClusterId</span></h5>
<button type="button" class="btn-close" aria-label="Close" @onclick="CancelAsync"></button>
</div>
<div class="modal-body">
@implements IDisposable
@{ var presentation = _generation; var pickedAction = OnPicked; var cancelAction = OnCancel; }
<ModalFrame Visible="@Visible" Title="Choose scope" DialogClass="modal-xl" Target="@presentation" Busy="@_pending" OnClose="() => CancelPresentation(presentation, cancelAction)">
<TitleContent>Choose scope &middot; <span class="mono">@ClusterId</span></TitleContent>
<ChildContent><fieldset disabled="@_pending" @key="_generation">
<p class="text-muted small mb-3">
Pick the node this grant applies to. Permissions inherit <strong>downward</strong>,
so a grant on a device covers every tag beneath it. Both trees are scoped to this
@@ -30,15 +25,15 @@
@if (_loading)
{
<p class="text-muted"><span class="spinner-border spinner-border-sm me-1"></span>Loading…</p>
<p class="text-muted" role="status"><span class="spinner-border spinner-border-sm me-1" aria-hidden="true"></span>Loading…</p>
}
else
{
<div class="row g-3">
<div class="col-md-6">
<div class="panel-head mb-1">Raw device tree</div>
<h3 class="panel-head mb-1">Raw device tree</h3>
<div class="border rounded p-2" style="max-height:50vh; overflow:auto">
<AclScopeTree Nodes="_rawHeader" SelectedKey="@_selected?.Key" OnSelect="Select" />
<AclScopeTree Nodes="_rawHeader" SelectedKey="@_selected?.Key" OnSelect="node => SelectPresentation(node, presentation)" />
@if (_roots.Raw.Count == 0)
{
<p class="text-muted small mb-0 mt-1">This cluster has no raw tree yet.</p>
@@ -46,21 +41,21 @@
else
{
<AclScopeTree Nodes="_roots.Raw" SelectedKey="@_selected?.Key"
OnSelect="Select" LoadChildren="LoadChildrenAsync" />
OnSelect="node => SelectPresentation(node, presentation)" LoadChildren="node => LoadChildrenPresentation(node, presentation)" />
}
</div>
</div>
<div class="col-md-6">
<div class="panel-head mb-1">UNS tree</div>
<h3 class="panel-head mb-1">UNS tree</h3>
<div class="border rounded p-2" style="max-height:50vh; overflow:auto">
<AclScopeTree Nodes="_unsHeader" SelectedKey="@_selected?.Key" OnSelect="Select" />
<AclScopeTree Nodes="_unsHeader" SelectedKey="@_selected?.Key" OnSelect="node => SelectPresentation(node, presentation)" />
@if (_roots.Uns.Count == 0)
{
<p class="text-muted small mb-0 mt-1">This cluster has no UNS areas yet.</p>
}
else
{
<AclScopeTree Nodes="_roots.Uns" SelectedKey="@_selected?.Key" OnSelect="Select" />
<AclScopeTree Nodes="_roots.Uns" SelectedKey="@_selected?.Key" OnSelect="node => SelectPresentation(node, presentation)" />
}
</div>
<p class="text-muted small mt-2 mb-0">
@@ -72,8 +67,9 @@
</div>
</div>
}
</div>
<div class="modal-footer d-flex justify-content-between">
</fieldset></ChildContent>
<Footer><div class="d-flex justify-content-between w-100 gap-2 flex-wrap">
<div class="small">
@if (_selected is null)
{
@@ -93,18 +89,17 @@
</div>
<div class="d-flex gap-2">
<div class="btn-group" role="group">
<button type="button" class="btn btn-outline-secondary" @onclick="CancelAsync">Cancel</button>
<button type="button" class="btn btn-primary" @onclick="ConfirmAsync"
disabled="@(_selected is null)">Use this scope</button>
<button type="button" class="btn btn-outline-secondary" data-initial-focus="true" disabled="@_pending" @onclick="() => CancelPresentation(presentation, cancelAction)">Cancel</button>
<button type="button" class="btn btn-primary" @onclick="() => ConfirmPresentation(presentation, pickedAction)"
disabled="@(_selected is null || _pending || _loading)">Use this scope</button>
</div>
</div>
</div>
</div>
</div>
</div>
}
</div></Footer>
</ModalFrame>
@code {
/// <summary>Whether the modal is shown. The host owns this flag.</summary>
[Parameter] public bool Visible { get; set; }
@@ -150,43 +145,67 @@
},
};
/// <summary>Optional nonconfidential identity when different grants use the same cluster.</summary>
[Parameter] public object? Target { get; set; }
private object? _lastTarget;
private bool _pending, _disposed;
private int _generation;
private bool IsStale(int generation) => _disposed || !Visible || generation != _generation;
protected override async Task OnParametersSetAsync()
{
// Reload only on the false→true transition, so a re-render while open does not wipe the
// expansion state the operator has built up.
if (Visible && !_wasVisible)
object identity = (Target, ClusterId);
if (_disposed || (_wasVisible == Visible && Equals(_lastTarget, identity))) return;
_wasVisible = Visible; _lastTarget = identity;
var generation = ++_generation;
if (!Visible) return;
var clusterId = ClusterId;
_selected = null; _loading = true;
_roots = new AclScopeRoots([], []);
try
{
_selected = null;
_loading = true;
_roots = new AclScopeRoots(Array.Empty<AclScopeNode>(), Array.Empty<AclScopeNode>());
StateHasChanged();
_roots = string.IsNullOrWhiteSpace(ClusterId)
? new AclScopeRoots(Array.Empty<AclScopeNode>(), Array.Empty<AclScopeNode>())
: await Scopes.LoadRootsAsync(ClusterId);
// The cluster root is the one node worth opening for the operator — everything else is a
// decision they should make deliberately.
foreach (var root in _roots.Raw) { root.Expanded = false; }
_loading = false;
var roots = string.IsNullOrWhiteSpace(clusterId) ? new AclScopeRoots([], []) : await Scopes.LoadRootsAsync(clusterId);
if (IsStale(generation)) return;
foreach (var root in roots.Raw) root.Expanded = false;
_roots = roots;
}
_wasVisible = Visible;
catch (Exception) when (IsStale(generation)) { }
finally { if (!IsStale(generation)) _loading = false; }
}
private Task<IReadOnlyList<AclScopeNode>> LoadChildrenAsync(AclScopeNode node) =>
Scopes.LoadChildrenAsync(node);
private void Select(AclScopeNode node)
private async Task<IReadOnlyList<AclScopeNode>> LoadChildrenPresentation(AclScopeNode node, int generation)
{
if (IsStale(generation) || _pending) return [];
try
{
var children = await Scopes.LoadChildrenAsync(node);
return IsStale(generation) ? [] : children;
}
catch (Exception) when (IsStale(generation)) { return []; }
}
private void SelectPresentation(AclScopeNode node, int generation)
{
if (IsStale(generation) || _pending || _loading) return;
_selected = node;
StateHasChanged();
}
private async Task ConfirmAsync()
private async Task ConfirmPresentation(int generation, EventCallback<AclScopeNode> action)
{
if (_selected is null) { return; }
await OnPicked.InvokeAsync(_selected);
if (IsStale(generation) || _pending || _loading || _selected is null) return;
var selected = _selected;
_pending = true;
try { await action.InvokeAsync(selected); }
finally { _pending = false; }
}
private Task CancelAsync() => OnCancel.InvokeAsync();
private async Task CancelPresentation(int generation, EventCallback action)
{
if (IsStale(generation) || _pending) return;
_pending = true;
try { await action.InvokeAsync(); }
finally { _pending = false; }
}
/// <summary>Discards old picker callbacks and late read results.</summary>
public void Dispose() { _disposed = true; ++_generation; }
}
@@ -8,18 +8,20 @@
@using ZB.MOM.WW.OtOpcUa.Core.Abstractions
@inject IRawTreeService Svc
@if (Visible)
{
<div class="modal-backdrop fade show" style="display:block"></div>
<div class="modal fade show" tabindex="-1" role="dialog" style="display:block">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">@(_isNew ? "New device" : "Edit device") &middot; <span class="mono">@_driverType</span></h5>
<button type="button" class="btn-close" aria-label="Close" @onclick="CloseAsync"></button>
</div>
<div class="modal-body">
@if (_loadError is not null)
@implements IDisposable
@{
var presentation = _openGeneration;
var savedAction = OnSaved;
var closeAction = VisibleChanged;
}
<ModalFrame Visible="@Visible" Title="@(_isNew ? "New device" : "Edit device")" Target="@presentation" Busy="@Pending" DialogClass="modal-lg" OnClose="() => ClosePresentation(presentation, closeAction)">
<TitleContent>@(_isNew ? "New device" : "Edit device") &middot; <span class="mono">@_driverType</span></TitleContent>
<ChildContent>
<fieldset disabled="@(Pending || _loading)" @key="_openGeneration">
@if (_loading)
{ <p role="status">Loading…</p> }
else if (_loadError is not null)
{
<div class="panel notice notice-alert mb-3">@_loadError</div>
}
@@ -27,14 +29,14 @@
{
<div class="row g-3 mb-2">
<div class="col-md-6">
<label class="form-label">Device name</label>
<input class="form-control form-control-sm mono" @bind="_name" placeholder="e.g. plc1" />
<div class="form-text">A RawPath segment — letters, digits, dash, underscore.</div>
<label class="form-label" for='@FieldId("device-name")'>Device name</label>
<input id='@FieldId("device-name")' aria-describedby='@FieldIds("name-hint", "save-error")' class="form-control form-control-sm mono" @bind="_name" placeholder="e.g. plc1" />
<div id='@FieldId("name-hint")' class="form-text">A RawPath segment — letters, digits, dash, underscore.</div>
</div>
<div class="col-md-3">
<div class="form-check form-switch mt-4">
<input type="checkbox" class="form-check-input" id="devEnabled" @bind="_enabled" />
<label class="form-check-label" for="devEnabled">Enabled</label>
<input type="checkbox" class="form-check-input" id='@FieldId("enabled")' @bind="_enabled" />
<label class="form-check-label" for='@FieldId("enabled")'>Enabled</label>
</div>
</div>
</div>
@@ -44,7 +46,7 @@
have no per-device form; the parity test consults that set. *@
@if (DeviceFormMap.Resolve(_driverType) is { } deviceFormType)
{
<DynamicComponent Type="deviceFormType" Parameters="_deviceFormParameters" />
<DynamicComponent @key="_openGeneration" Type="deviceFormType" Parameters="_deviceFormParameters" />
}
else if (DeviceFormMap.IsSingleConnection(_driverType))
{
@@ -59,31 +61,30 @@
}
<div class="mt-3">
<DriverTestConnectButton DriverType="@_driverType" GetConfigJson="@BuildMergedProbeConfig" DriverInstanceId="@_resolvedDriverInstanceId" />
<DriverTestConnectButton DriverType="@_driverType" GetConfigJson="@ProbeConfigAccessor" DriverInstanceId="@_resolvedDriverInstanceId" />
</div>
<SaveRefusalNotice GateError="@DriverConfigSaveGate.Validate(_driverType, _deviceConfigJson)" SaveError="@_saveError" />
<div id='@FieldId("save-error")'><SaveRefusalNotice GateError="@DriverConfigSaveGate.Validate(_driverType, _deviceConfigJson)" SaveError="@_saveError" /></div>
}
</div>
<div class="modal-footer">
<div class="btn-group" role="group">
<button type="button" class="btn btn-outline-secondary" @onclick="CloseAsync" disabled="@_busy">Cancel</button>
@if (_loadError is null)
{
<button type="button" class="btn btn-primary" @onclick="SaveAsync"
disabled="@(_busy || DriverConfigSaveGate.Validate(_driverType, _deviceConfigJson) is not null)">
@if (_busy) { <span class="spinner-border spinner-border-sm me-1"></span> }
@(_isNew ? "Create device" : "Save changes")
</button>
}
</div>
</div>
</div>
</fieldset>
</ChildContent>
<Footer>
<div class="btn-group" role="group">
<button type="button" class="btn btn-outline-secondary" data-initial-focus="true" @onclick="() => ClosePresentation(presentation, closeAction)" disabled="@Pending">Cancel</button>
@if (_loadError is null)
{
<button type="button" class="btn btn-primary" @onclick="() => SavePresentation(presentation, savedAction, closeAction)" disabled="@(Pending || _loading || DriverConfigSaveGate.Validate(_driverType, _deviceConfigJson) is not null)">
@if (_busy) { <span class="spinner-border spinner-border-sm me-1" aria-hidden="true"></span> }
@(_isNew ? "Create device" : "Save changes")
</button>
}
</div>
</div>
}
</Footer>
</ModalFrame>
@code {
/// <summary>Whether the modal is shown (supports @bind-Visible).</summary>
[Parameter] public bool Visible { get; set; }
/// <summary>Two-way visibility callback.</summary>
@@ -109,14 +110,20 @@
/// <summary>Parameters handed to the DynamicComponent-rendered device form. Cached on the value it
/// carries and rebuilt when that changes (never build-once: see DriverConfigModal), with the callback
/// created once (R04 H2).</summary>
private Dictionary<string, object> _deviceFormParameters => _deviceFormParameterCache.Get(
[_deviceConfigJson],
() => new()
private Dictionary<string, object> _deviceFormParameters {
get
{
["DeviceConfigJson"] = _deviceConfigJson,
["DeviceConfigJsonChanged"] = _deviceConfigJsonChanged ??=
EventCallback.Factory.Create<string>(this, v => { _deviceConfigJson = v; _saveError = null; }),
});
var generation = _openGeneration;
return _deviceFormParameterCache.Get(
[_deviceConfigJson, _openGeneration],
() => new()
{
["DeviceConfigJson"] = _deviceConfigJson,
["DeviceConfigJsonChanged"] = _deviceConfigJsonChanged ??=
EventCallback.Factory.Create<string>(this, GuardChange<string>(generation, v => { _deviceConfigJson = v; _saveError = null; })),
});
}
}
private readonly ParameterDictionaryCache _deviceFormParameterCache = new();
private EventCallback<string>? _deviceConfigJsonChanged;
private byte[] _rowVersion = [];
@@ -127,62 +134,90 @@
private string? _saveError;
private bool _openHandled;
// Bumped on every open and close; LoadAsync re-checks it after each await so a superseded open can't
// install one target's fields under another target's displayed modal (RawBrowseModal idiom).
private int _openGeneration;
private bool IsStale(int generation) => generation != _openGeneration || !Visible;
/// <summary>Optional nonconfidential identity for otherwise identical editor contexts.</summary>
[Parameter] public object? Target { get; set; }
private readonly string _fieldScope = "ot-config-" + Guid.NewGuid().ToString("N");
private string FieldId(string suffix) => _fieldScope + "-" + suffix;
private string FieldIds(params string[] suffixes) => string.Join(" ", suffixes.Select(FieldId));
private bool _loading, _closing, _disposed, _lastVisible;
private object? _lastTarget;
private int _openGeneration;
private bool Pending => _busy || _closing;
private bool IsStale(int generation) => _disposed || generation != _openGeneration || !Visible;
private Action<T> GuardChange<T>(int generation, Action<T> update) => value => { if (!IsStale(generation) && !Pending && !_loading) update(value); };
protected override async Task OnParametersSetAsync()
{
if (Visible && !_openHandled)
object identity = (Target, DeviceId, DriverInstanceId, DriverType);
if (_disposed || (_lastVisible == Visible && Equals(_lastTarget, identity))) return;
FreezeProbeConfig();
_lastVisible = Visible; _lastTarget = identity;
_probeConfig = new ProbeConfigState();
var generation = ++_openGeneration;
_openHandled = Visible;
if (Visible)
{
_openHandled = true;
await LoadAsync(++_openGeneration);
}
else if (!Visible)
{
_openHandled = false;
_openGeneration++;
_deviceConfigJsonChanged = null;
_probeConfigAccessor = null;
_deviceFormParameterCache.Reset();
await LoadAsync(generation);
}
}
private async Task LoadAsync(int generation)
{
_busy = false; _loadError = null; _saveError = null;
_isNew = string.IsNullOrEmpty(DeviceId);
var deviceId = DeviceId;
var driverInstanceId = DriverInstanceId;
var driverType = DriverType;
_loading = true;
_parentDriverConfig = "{}";
try
{
_loadError = null; _saveError = null;
_isNew = string.IsNullOrEmpty(deviceId);
if (_isNew)
{
_resolvedDriverInstanceId = DriverInstanceId;
_driverType = DriverType ?? "";
_name = ""; // placeholder only: a pre-filled value made typing append to it (#577); the name is validated on save
_enabled = true;
_deviceConfigJson = "{}";
_rowVersion = [];
}
else
{
var dto = await Svc.LoadDeviceForEditAsync(DeviceId!);
if (IsStale(generation)) { return; }
if (dto is null) { _loadError = $"Device '{DeviceId}' was not found."; return; }
_resolvedDriverInstanceId = dto.DriverInstanceId;
_driverType = dto.DriverType;
_name = dto.Name;
_enabled = dto.Enabled;
_deviceConfigJson = string.IsNullOrWhiteSpace(dto.DeviceConfig) ? "{}" : dto.DeviceConfig;
_rowVersion = dto.RowVersion;
}
if (_isNew)
{
_resolvedDriverInstanceId = driverInstanceId;
_driverType = driverType ?? "";
_name = ""; // placeholder only: a pre-filled value made typing append to it (#577); the name is validated on save
_enabled = true;
_deviceConfigJson = "{}";
_rowVersion = [];
}
else
{
var dto = await Svc.LoadDeviceForEditAsync(deviceId!);
if (IsStale(generation)) { return; }
if (dto is null) { _loadError = $"Device '{deviceId}' was not found."; return; }
_resolvedDriverInstanceId = dto.DriverInstanceId;
_driverType = dto.DriverType;
_name = dto.Name;
_enabled = dto.Enabled;
_deviceConfigJson = string.IsNullOrWhiteSpace(dto.DeviceConfig) ? "{}" : dto.DeviceConfig;
_rowVersion = dto.RowVersion;
}
// The parent driver's DriverConfig — folded with the (possibly unsaved) DeviceConfig for Test-connect.
if (!string.IsNullOrEmpty(_resolvedDriverInstanceId))
// The parent driver's DriverConfig — folded with the (possibly unsaved) DeviceConfig for Test-connect.
if (!string.IsNullOrEmpty(_resolvedDriverInstanceId))
{
var drv = await Svc.LoadDriverForEditAsync(_resolvedDriverInstanceId);
if (IsStale(generation)) { return; }
_parentDriverConfig = drv?.DriverConfig ?? "{}";
}
}
catch (Exception) when (IsStale(generation)) { }
finally
{
var drv = await Svc.LoadDriverForEditAsync(_resolvedDriverInstanceId);
if (IsStale(generation)) { return; }
_parentDriverConfig = drv?.DriverConfig ?? "{}";
if (!IsStale(generation))
{
_loading = false;
if (_loadError is null) _probeConfig.Value = BuildMergedProbeConfig();
}
}
}
/// <summary>Builds the merged Driver+Device probe config from the CURRENT (possibly unsaved) form —
/// same merge as <c>LoadMergedProbeConfigAsync</c>, so Test-connect works before the device is saved.</summary>
private string BuildMergedProbeConfig()
@@ -191,50 +226,71 @@
new[] { new DriverDeviceConfigMerger.DeviceRow(_name, _deviceConfigJson) },
Array.Empty<RawTagEntry>());
private async Task SaveAsync()
private Func<string>? _probeConfigAccessor;
private sealed class ProbeConfigState { public string Value = "{}"; }
private ProbeConfigState _probeConfig = new();
private void FreezeProbeConfig()
{
// A resubmit REPLACES the previous refusal; a gate refusal is already rendered live by
// SaveRefusalNotice, so it is not copied into _saveError (that stacked two boxes — lmxopcua#847).
if (!_loading && _loadError is null) _probeConfig.Value = BuildMergedProbeConfig();
}
private Func<string> ProbeConfigAccessor
{
get
{
var generation = _openGeneration;
var state = _probeConfig;
return _probeConfigAccessor ??= () =>
{
if (!IsStale(generation) && !_loading && _loadError is null) state.Value = BuildMergedProbeConfig();
return state.Value;
};
}
}
private Task SaveAsync() => SavePresentation(_openGeneration, OnSaved, VisibleChanged);
private async Task SavePresentation(int generation, EventCallback savedAction, EventCallback<bool> closeAction)
{
if (IsStale(generation) || Pending || _loading || _loadError is not null) return;
_saveError = null;
if (DriverConfigSaveGate.Validate(_driverType, _deviceConfigJson) is not null) return;
var isNew = _isNew;
var name = _name;
var json = _deviceConfigJson;
var driverType = _driverType;
var rowVersion = _rowVersion.ToArray();
var parentId = _resolvedDriverInstanceId;
var deviceId = DeviceId;
var enabled = _enabled;
_busy = true;
try
{
UnsMutationResult result;
if (_isNew)
if (isNew)
{
if (string.IsNullOrEmpty(_resolvedDriverInstanceId))
{
_saveError = "No owning driver instance was supplied.";
return;
}
result = await Svc.CreateDeviceAsync(_resolvedDriverInstanceId, _name, _deviceConfigJson);
if (string.IsNullOrEmpty(parentId)) { _saveError = "No owning driver instance was supplied."; return; }
result = await Svc.CreateDeviceAsync(parentId, name, json);
}
else
{
result = await Svc.UpdateDeviceAsync(DeviceId!, _name, _deviceConfigJson, _enabled, _rowVersion);
}
if (!result.Ok)
{
_saveError = result.Error ?? "Save failed.";
return;
}
await OnSaved.InvokeAsync();
await SetVisibleAsync(false);
else result = await Svc.UpdateDeviceAsync(deviceId!, name, json, enabled, rowVersion);
if (IsStale(generation)) return;
if (!result.Ok) { _saveError = result.Error ?? "Save failed."; return; }
await savedAction.InvokeAsync();
if (!IsStale(generation)) await ClosePresentation(generation, closeAction, true);
}
catch (Exception ex) { _saveError = ex.Message; }
catch (Exception ex) { if (!IsStale(generation)) _saveError = ex.Message; }
finally { _busy = false; }
}
private Task CloseAsync() => SetVisibleAsync(false);
private async Task SetVisibleAsync(bool value)
private Task CloseAsync() => ClosePresentation(_openGeneration, VisibleChanged);
private async Task ClosePresentation(int generation, EventCallback<bool> action, bool afterSave = false)
{
Visible = value;
_openHandled = value;
_openGeneration++;
await VisibleChanged.InvokeAsync(value);
if (IsStale(generation) || _closing || (_busy && !afterSave)) return;
_closing = true;
FreezeProbeConfig();
Visible = false; _lastVisible = false; _openHandled = false; ++_openGeneration;
try { await action.InvokeAsync(false); }
finally { _closing = false; }
}
/// <summary>Invalidates UI callbacks and read results without cancelling dispatched mutations.</summary>
public void Dispose() { FreezeProbeConfig(); _disposed = true; ++_openGeneration; }
}
@@ -6,18 +6,20 @@
@using ZB.MOM.WW.OtOpcUa.Core.Abstractions
@inject IRawTreeService Svc
@if (Visible)
{
<div class="modal-backdrop fade show" style="display:block"></div>
<div class="modal fade show" tabindex="-1" role="dialog" style="display:block">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">@(_isNew ? "New driver" : "Configure driver") &middot; <span class="mono">@_driverType</span></h5>
<button type="button" class="btn-close" aria-label="Close" @onclick="CloseAsync"></button>
</div>
<div class="modal-body">
@if (_loadError is not null)
@implements IDisposable
@{
var presentation = _openGeneration;
var savedAction = OnSaved;
var closeAction = VisibleChanged;
}
<ModalFrame Visible="@Visible" Title="@(_isNew ? "New driver" : "Configure driver")" Target="@presentation" Busy="@Pending" DialogClass="modal-xl" OnClose="() => ClosePresentation(presentation, closeAction)">
<TitleContent>@(_isNew ? "New driver" : "Configure driver") &middot; <span class="mono">@_driverType</span></TitleContent>
<ChildContent>
<fieldset disabled="@(Pending || _loading)" @key="_openGeneration">
@if (_loading)
{ <p role="status">Loading…</p> }
else if (_loadError is not null)
{
<div class="panel notice notice-alert mb-3">@_loadError</div>
}
@@ -26,7 +28,7 @@
<div class="row g-3 mb-2">
<div class="col-md-6">
<TechField Label="Driver name" For="@_nameId" Hint="A RawPath segment — letters, digits, dash, underscore." HintId="@(_nameId + "-hint")">
<input id="@_nameId" class="form-control form-control-sm mono" @bind="_name" placeholder="line3-modbus" aria-describedby="@(_nameId + "-hint")" />
<input id="@_nameId" class="form-control form-control-sm mono" @bind="_name" placeholder="line3-modbus" aria-describedby="@(_nameId + "-hint " + FieldId("save-error"))" />
</TechField>
</div>
</div>
@@ -37,7 +39,7 @@
green (deferment.md G-1/G-4). The map is guarded by DriverFormMapParityTests. *@
@if (DriverConfigFormMap.Resolve(_driverType) is { } formType)
{
<DynamicComponent Type="formType" Parameters="_formParameters" />
<DynamicComponent @key="_openGeneration" Type="formType" Parameters="_formParameters" />
}
else
{
@@ -63,28 +65,27 @@
</p>
}
<SaveRefusalNotice GateError="@DriverConfigSaveGate.Validate(_driverType, _driverConfigJson)" SaveError="@_saveError" />
<div id='@FieldId("save-error")'><SaveRefusalNotice GateError="@DriverConfigSaveGate.Validate(_driverType, _driverConfigJson)" SaveError="@_saveError" /></div>
}
</div>
<div class="modal-footer">
<div class="btn-group" role="group">
<button type="button" class="btn btn-outline-secondary" @onclick="CloseAsync" disabled="@_busy">Cancel</button>
@if (_loadError is null)
{
<button type="button" class="btn btn-primary" @onclick="SaveAsync"
disabled="@(_busy || DriverConfigSaveGate.Validate(_driverType, _driverConfigJson) is not null)">
@if (_busy) { <span class="spinner-border spinner-border-sm me-1"></span> }
@(_isNew ? "Create driver" : "Save changes")
</button>
}
</div>
</div>
</div>
</fieldset>
</ChildContent>
<Footer>
<div class="btn-group" role="group">
<button type="button" class="btn btn-outline-secondary" data-initial-focus="true" @onclick="() => ClosePresentation(presentation, closeAction)" disabled="@Pending">Cancel</button>
@if (_loadError is null)
{
<button type="button" class="btn btn-primary" @onclick="() => SavePresentation(presentation, savedAction, closeAction)" disabled="@(Pending || _loading || DriverConfigSaveGate.Validate(_driverType, _driverConfigJson) is not null)">
@if (_busy) { <span class="spinner-border spinner-border-sm me-1" aria-hidden="true"></span> }
@(_isNew ? "Create driver" : "Save changes")
</button>
}
</div>
</div>
}
</Footer>
</ModalFrame>
@code {
/// <summary>Whether the modal is shown (supports @bind-Visible).</summary>
[Parameter] public bool Visible { get; set; }
/// <summary>Two-way visibility callback.</summary>
@@ -114,17 +115,23 @@
/// CURRENT json — a build-once dictionary would pin the value captured at first render and silently
/// strand every subsequent edit — so the cache is keyed on the values it carries and rebuilt only when
/// one changes; the callbacks are created once and reused (R04 H2).</summary>
private Dictionary<string, object> _formParameters => _formParameterCache.Get(
[_driverConfigJson, _resilienceConfig],
() => new()
private Dictionary<string, object> _formParameters {
get
{
["DriverConfigJson"] = _driverConfigJson,
["DriverConfigJsonChanged"] = _driverConfigJsonChanged ??=
EventCallback.Factory.Create<string>(this, v => { _driverConfigJson = v; _saveError = null; }),
["ResilienceConfig"] = _resilienceConfig!,
["ResilienceConfigChanged"] = _resilienceConfigChanged ??=
EventCallback.Factory.Create<string?>(this, v => _resilienceConfig = v),
});
var generation = _openGeneration;
return _formParameterCache.Get(
[_driverConfigJson, _resilienceConfig, _openGeneration],
() => new()
{
["DriverConfigJson"] = _driverConfigJson,
["DriverConfigJsonChanged"] = _driverConfigJsonChanged ??=
EventCallback.Factory.Create<string>(this, GuardChange<string>(generation, v => { _driverConfigJson = v; _saveError = null; })),
["ResilienceConfig"] = _resilienceConfig!,
["ResilienceConfigChanged"] = _resilienceConfigChanged ??=
EventCallback.Factory.Create<string?>(this, GuardChange<string?>(generation, v => _resilienceConfig = v)),
});
}
}
private readonly ParameterDictionaryCache _formParameterCache = new();
private EventCallback<string>? _driverConfigJsonChanged;
private EventCallback<string?>? _resilienceConfigChanged;
@@ -136,96 +143,115 @@
private string? _saveError;
private bool _openHandled;
// Bumped on every open and close; LoadAsync re-checks it after each await so a superseded open can't
// install one target's fields under another target's displayed modal (RawBrowseModal idiom).
private int _openGeneration;
private bool IsStale(int generation) => generation != _openGeneration || !Visible;
/// <summary>Optional nonconfidential identity for otherwise identical editor contexts.</summary>
[Parameter] public object? Target { get; set; }
private readonly string _fieldScope = "ot-config-" + Guid.NewGuid().ToString("N");
private string FieldId(string suffix) => _fieldScope + "-" + suffix;
private string FieldIds(params string[] suffixes) => string.Join(" ", suffixes.Select(FieldId));
private bool _loading, _closing, _disposed, _lastVisible;
private object? _lastTarget;
private int _openGeneration;
private bool Pending => _busy || _closing;
private bool IsStale(int generation) => _disposed || generation != _openGeneration || !Visible;
private Action<T> GuardChange<T>(int generation, Action<T> update) => value => { if (!IsStale(generation) && !Pending && !_loading) update(value); };
protected override async Task OnParametersSetAsync()
{
if (Visible && !_openHandled)
object identity = (Target, DriverInstanceId, ClusterId, FolderId, DriverType);
if (_disposed || (_lastVisible == Visible && Equals(_lastTarget, identity))) return;
_lastVisible = Visible; _lastTarget = identity;
var generation = ++_openGeneration;
_openHandled = Visible;
if (Visible)
{
_openHandled = true;
await LoadAsync(++_openGeneration);
}
else if (!Visible)
{
_openHandled = false;
_openGeneration++;
_driverConfigJsonChanged = null;
_resilienceConfigChanged = null;
_formParameterCache.Reset();
await LoadAsync(generation);
}
}
private async Task LoadAsync(int generation)
{
_busy = false; _loadError = null; _saveError = null;
_isNew = string.IsNullOrEmpty(DriverInstanceId);
var driverInstanceId = DriverInstanceId;
var driverType = DriverType;
_loading = true;
if (_isNew)
try
{
_driverType = DriverType ?? "";
_name = "";
_driverConfigJson = "{}";
_resilienceConfig = null;
_rowVersion = [];
}
else
{
var dto = await Svc.LoadDriverForEditAsync(DriverInstanceId!);
if (IsStale(generation)) { return; }
if (dto is null) { _loadError = $"Driver '{DriverInstanceId}' was not found."; return; }
_driverType = dto.DriverType;
_name = dto.Name;
_driverConfigJson = string.IsNullOrWhiteSpace(dto.DriverConfig) ? "{}" : dto.DriverConfig;
_resilienceConfig = dto.ResilienceConfig;
_rowVersion = dto.RowVersion;
_loadError = null; _saveError = null;
_isNew = string.IsNullOrEmpty(driverInstanceId);
if (_isNew)
{
_driverType = driverType ?? "";
_name = "";
_driverConfigJson = "{}";
_resilienceConfig = null;
_rowVersion = [];
}
else
{
var dto = await Svc.LoadDriverForEditAsync(driverInstanceId!);
if (IsStale(generation)) { return; }
if (dto is null) { _loadError = $"Driver '{driverInstanceId}' was not found."; return; }
_driverType = dto.DriverType;
_name = dto.Name;
_driverConfigJson = string.IsNullOrWhiteSpace(dto.DriverConfig) ? "{}" : dto.DriverConfig;
_resilienceConfig = dto.ResilienceConfig;
_rowVersion = dto.RowVersion;
}
}
catch (Exception) when (IsStale(generation)) { }
finally { if (!IsStale(generation)) _loading = false; }
}
private async Task SaveAsync()
private Task SaveAsync() => SavePresentation(_openGeneration, OnSaved, VisibleChanged);
private async Task SavePresentation(int generation, EventCallback savedAction, EventCallback<bool> closeAction)
{
// A resubmit REPLACES the previous refusal; a gate refusal is already rendered live by
// SaveRefusalNotice, so it is not copied into _saveError (that stacked two boxes — lmxopcua#847).
if (IsStale(generation) || Pending || _loading || _loadError is not null) return;
_saveError = null;
if (DriverConfigSaveGate.Validate(_driverType, _driverConfigJson) is not null) return;
var isNew = _isNew;
var name = _name;
var json = _driverConfigJson;
var driverType = _driverType;
var rowVersion = _rowVersion.ToArray();
var driverInstanceId = DriverInstanceId;
var clusterId = ClusterId;
var folderId = FolderId;
var resilience = _resilienceConfig;
_busy = true;
try
{
UnsMutationResult result;
if (_isNew)
if (isNew)
{
if (string.IsNullOrEmpty(ClusterId))
{
_saveError = "No owning cluster was supplied.";
return;
}
result = await Svc.CreateDriverAsync(ClusterId, FolderId, _name, _driverType, _driverConfigJson);
if (string.IsNullOrEmpty(clusterId)) { _saveError = "No owning cluster was supplied."; return; }
result = await Svc.CreateDriverAsync(clusterId, folderId, name, driverType, json);
}
else
{
result = await Svc.UpdateDriverAsync(DriverInstanceId!, _name, _driverConfigJson, _resilienceConfig, _rowVersion);
}
if (!result.Ok)
{
_saveError = result.Error ?? "Save failed.";
return;
}
await OnSaved.InvokeAsync();
await SetVisibleAsync(false);
else result = await Svc.UpdateDriverAsync(driverInstanceId!, name, json, resilience, rowVersion);
if (IsStale(generation)) return;
if (!result.Ok) { _saveError = result.Error ?? "Save failed."; return; }
await savedAction.InvokeAsync();
if (!IsStale(generation)) await ClosePresentation(generation, closeAction, true);
}
catch (Exception ex) { _saveError = ex.Message; }
catch (Exception ex) { if (!IsStale(generation)) _saveError = ex.Message; }
finally { _busy = false; }
}
private Task CloseAsync() => SetVisibleAsync(false);
private async Task SetVisibleAsync(bool value)
private Task CloseAsync() => ClosePresentation(_openGeneration, VisibleChanged);
private async Task ClosePresentation(int generation, EventCallback<bool> action, bool afterSave = false)
{
Visible = value;
_openHandled = value;
_openGeneration++;
await VisibleChanged.InvokeAsync(value);
if (IsStale(generation) || _closing || (_busy && !afterSave)) return;
_closing = true;
Visible = false; _lastVisible = false; _openHandled = false; ++_openGeneration;
try { await action.InvokeAsync(false); }
finally { _closing = false; }
}
/// <summary>Invalidates UI callbacks and read results without cancelling dispatched mutations.</summary>
public void Dispose() { _disposed = true; ++_openGeneration; }
}
@@ -14,24 +14,18 @@
@using ZB.MOM.WW.OtOpcUa.AdminUI.Uns
@inject RawTagCsvExportReader ExportReader
@if (Visible)
{
<div class="modal-backdrop fade show" style="display:block"></div>
<div class="modal fade show" tabindex="-1" role="dialog" style="display:block">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Export tags — CSV</h5>
<button type="button" class="btn-close" aria-label="Close" @onclick="Close"></button>
</div>
<div class="modal-body">
@implements IDisposable
@{ var presentation = _openGeneration; var closeAction = VisibleChanged; }
<ModalFrame Visible="@Visible" Title="Export tags — CSV" DialogClass="modal-lg" Target="@presentation" Busy="@_closing" OnClose="() => ClosePresentation(presentation, closeAction)">
<ChildContent>
@if (_loading)
{
<p class="text-muted"><span class="spinner-border spinner-border-sm"></span> Reading tags…</p>
<p class="text-muted" role="status"><span class="spinner-border spinner-border-sm" aria-hidden="true"></span> Reading tags…</p>
}
else if (_error is not null)
{
<div class="alert alert-danger">@_error</div>
<div class="alert alert-danger" role="alert">@_error</div>
}
else
{
@@ -47,24 +41,22 @@
{
<p class="small text-muted mb-1">Preview — first @RawTagCsvExport.PreviewLines lines. Download for the full file.</p>
}
<textarea class="form-control mono small" rows="10" readonly>@_preview</textarea>
<label class="form-label" for="@_previewId">CSV preview</label>
<textarea id="@_previewId" class="form-control mono small" rows="10" readonly>@_preview</textarea>
}
</div>
<div class="modal-footer">
<div class="btn-group" role="group">
<button type="button" class="btn btn-outline-secondary" @onclick="Close">Close</button>
@if (!_loading && _error is null)
{
<a class="btn btn-primary" download="@_fileName" href="@_downloadUrl">Download CSV</a>
}
</div>
</div>
</div>
</ChildContent>
<Footer>
<div class="btn-group" role="group">
<button type="button" class="btn btn-outline-secondary" data-initial-focus="true" disabled="@_closing" @onclick="() => ClosePresentation(presentation, closeAction)">Close</button>
@if (!_loading && _error is null)
{ <a class="btn btn-primary" download="@_fileName" href="@_downloadUrl">Download CSV</a> }
</div>
</div>
}
</Footer>
</ModalFrame>
@code {
/// <summary>Whether the modal is shown (two-way bound).</summary>
[Parameter] public bool Visible { get; set; }
@@ -90,27 +82,32 @@
private int _rowCount;
private string? _groupFilter;
// Bumped on every open and close so a superseded build can't install its CSV under another device's modal.
/// <summary>Optional nonconfidential export context identity.</summary>
[Parameter] public object? Target { get; set; }
private readonly string _previewId = "csv-preview-" + Guid.NewGuid().ToString("N");
private bool _lastVisible, _closing, _disposed;
private object? _lastTarget;
private int _openGeneration;
protected override async Task OnParametersSetAsync()
{
if (Visible && !_built)
{
_built = true;
await BuildAsync(++_openGeneration);
}
else if (!Visible)
{
_built = false;
_openGeneration++;
}
object identity = (Target, DeviceId, TagGroupId, DriverType);
if (_disposed || (_lastVisible == Visible && Equals(_lastTarget, identity))) return;
_lastVisible = Visible; _lastTarget = identity;
var generation = ++_openGeneration;
_built = Visible;
if (Visible) await BuildAsync(generation);
}
private bool IsStale(int generation) => generation != _openGeneration || !Visible;
private bool IsStale(int generation) => _disposed || generation != _openGeneration || !Visible;
private async Task BuildAsync(int generation)
{
var deviceId = DeviceId;
var tagGroupId = TagGroupId;
var driverType = DriverType;
_preview = ""; _rowCount = 0; _downloadUrl = ""; _truncated = false;
_loading = true;
_error = null;
try
@@ -118,7 +115,7 @@
_groupFilter = null;
// The same builder the download endpoint runs, so the preview matches the file — but mapping only
// the preview's rows (the header takes the first line), never the whole export (review r0 M8).
var export = await RawTagCsvExport.BuildAsync(ExportReader, DeviceId, TagGroupId, DriverType,
var export = await RawTagCsvExport.BuildAsync(ExportReader, deviceId, tagGroupId, driverType,
maxRows: RawTagCsvExport.PreviewLines - 1);
if (IsStale(generation)) { return; }
if (export is null)
@@ -133,7 +130,7 @@
// Only the bounded preview is kept on the component; the full CSV is not held by the circuit.
(_preview, var cut) = RawTagCsvExport.Preview(export.Csv);
_truncated = cut || export.RowCount > RawTagCsvExport.PreviewLines - 1;
_downloadUrl = RawTagCsvExport.DownloadUrl(DeviceId, TagGroupId, DriverType);
_downloadUrl = RawTagCsvExport.DownloadUrl(deviceId, tagGroupId, driverType);
}
catch (Exception ex)
{
@@ -145,14 +142,17 @@
}
}
private async Task Close()
private Task Close() => ClosePresentation(_openGeneration, VisibleChanged);
private async Task ClosePresentation(int generation, EventCallback<bool> action)
{
_built = false;
_openGeneration++;
_preview = "";
_truncated = false;
_downloadUrl = "";
Visible = false;
await VisibleChanged.InvokeAsync(false);
if (IsStale(generation) || _closing) return;
_closing = true;
_built = false; _lastVisible = false; ++_openGeneration;
_preview = ""; _truncated = false; _downloadUrl = ""; Visible = false;
try { await action.InvokeAsync(false); }
finally { _closing = false; }
}
/// <summary>Discards late read results without changing the export/download contract.</summary>
public void Dispose() { _disposed = true; ++_openGeneration; }
}
@@ -14,20 +14,17 @@
@using ZB.MOM.WW.OtOpcUa.Configuration.Enums
@inject IRawTreeService Svc
@if (Visible)
{
<div class="modal-backdrop fade show" style="display:block"></div>
<div class="modal fade show" tabindex="-1" role="dialog" style="display:block">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<EditForm Model="_form" OnValidSubmit="SaveAsync" FormName="rawTagModal">
<DataAnnotationsValidator />
<div class="modal-header">
<h5 class="modal-title">Edit tag</h5>
<button type="button" class="btn-close" aria-label="Close" @onclick="CloseAsync"></button>
</div>
<div class="modal-body">
@if (_loadError is not null)
@implements IDisposable
@{ var presentation = _openGeneration; var savedAction = OnSaved; var closeAction = VisibleChanged; }
<ModalFrame Visible="@Visible" Title="Edit tag" DialogClass="modal-lg" Target="@presentation" Busy="@Pending" OnClose="() => ClosePresentation(presentation, closeAction)">
<ChildContent>
<EditForm @ref="_editForm" id='@FieldId("form")' Model="_form" OnValidSubmit="() => SavePresentation(presentation, savedAction, closeAction)" OnInvalidSubmit="() => FocusInvalidOwnedField(presentation)" FormName="rawTagModal" aria-describedby='@FieldId("save-error")'>
<DataAnnotationsValidator />
<fieldset disabled="@(Pending || _loading)" @key="_openGeneration">
@if (_loading)
{ <p role="status">Loading…</p> }
else if (_loadError is not null)
{
<div class="alert alert-danger py-2">@_loadError</div>
}
@@ -35,26 +32,23 @@
{
<div class="row">
<div class="col-md-6 mb-3">
<label class="form-label" for="raw-tag-name">Name</label>
<InputText id="raw-tag-name" @bind-Value="_form.Name" class="form-control form-control-sm"
<label class="form-label" for='@FieldId("raw-tag-name")'>Name</label>
<InputText @ref="_nameInput" id='@FieldId("raw-tag-name")' aria-describedby='@FieldId("name-error")' @bind-Value="_form.Name" class="form-control form-control-sm"
placeholder="Temperature" />
<ValidationMessage For="@(() => _form.Name)" />
@if (_nameError is not null)
{
<div class="text-danger small">@_nameError</div>
}
<div id='@FieldId("name-error")'><ValidationMessage For="@(() => _form.Name)" />
</div>
</div>
<div class="col-md-6 mb-3">
<label class="form-label" for="raw-tag-dtype">Data type</label>
<label class="form-label" for='@FieldId("raw-tag-dtype")'>Data type</label>
@if (RawTagRowDefaults.DictatedDataType(DriverType, _form.TagConfig) is { } dictated)
{
@* lmxopcua#830: locked to what the driver publishes for this address. *@
<input id="raw-tag-dtype" class="form-control form-control-sm mono" value="@dictated" disabled readonly />
<input id='@FieldId("raw-tag-dtype")' class="form-control form-control-sm mono" value="@dictated" disabled readonly />
<div class="form-text">Set by the address.</div>
}
else
{
<InputSelect id="raw-tag-dtype" @bind-Value="_form.DataType" class="form-select form-select-sm">
<InputSelect id='@FieldId("raw-tag-dtype")' @bind-Value="_form.DataType" class="form-select form-select-sm">
@foreach (var dt in DataTypes)
{
<option value="@dt">@dt</option>
@@ -65,75 +59,74 @@
</div>
<div class="row">
<div class="col-md-6 mb-3">
<label class="form-label" for="raw-tag-access">Access level</label>
<label class="form-label" for='@FieldId("raw-tag-access")'>Access level</label>
@if (IsReadOnlyDriver)
{
<input id="raw-tag-access" class="form-control form-control-sm" value="Read" disabled readonly />
<input id='@FieldId("raw-tag-access")' class="form-control form-control-sm" value="Read" disabled readonly />
<div class="form-text">This driver is read-only.</div>
}
else
{
<InputSelect id="raw-tag-access" @bind-Value="_form.AccessLevel" class="form-select form-select-sm">
<InputSelect id='@FieldId("raw-tag-access")' @bind-Value="_form.AccessLevel" class="form-select form-select-sm">
<option value="@TagAccessLevel.Read">Read</option>
<option value="@TagAccessLevel.ReadWrite">ReadWrite</option>
</InputSelect>
}
</div>
<div class="col-md-6 mb-3">
<label class="form-label">WriteIdempotent</label>
<span class="form-label">WriteIdempotent</span>
<div class="form-check form-switch">
<InputCheckbox @bind-Value="_form.WriteIdempotent" class="form-check-input" />
<label class="form-check-label">Safe to retry writes</label>
<InputCheckbox id='@FieldId("write-idempotent")' @bind-Value="_form.WriteIdempotent" class="form-check-input" />
<label class="form-check-label" for='@FieldId("write-idempotent")'>Safe to retry writes</label>
</div>
</div>
</div>
<div class="mb-3">
<label class="form-label" for="raw-tag-pgroup">PollGroupId (optional)</label>
<InputText id="raw-tag-pgroup" @bind-Value="_form.PollGroupId" class="form-control form-control-sm mono" />
<label class="form-label" for='@FieldId("raw-tag-pgroup")'>PollGroupId (optional)</label>
<InputText id='@FieldId("raw-tag-pgroup")' @bind-Value="_form.PollGroupId" class="form-control form-control-sm mono" />
</div>
<div class="mb-3">
<label class="form-label">Tag config <span class="text-muted small">(@DriverType)</span></label>
@{
var editorType = TagConfigEditorMap.Resolve(DriverType);
}
@if (editorType is not null)
{
<DynamicComponent Type="editorType" Parameters="BuildEditorParameters()" />
<div class="form-label" id='@FieldId("config-label")'>Tag config <span class="text-muted small">(@DriverType)</span></div>
<DynamicComponent @key="_openGeneration" Type="editorType" Parameters="BuildEditorParameters()" />
}
else
{
<InputTextArea id="raw-tag-config" @bind-Value="_form.TagConfig" rows="6"
<label class="form-label" for='@FieldId("raw-tag-config")'>Tag config <span class="text-muted small">(@DriverType)</span></label>
<InputTextArea @ref="_configInput" id='@FieldId("raw-tag-config")' aria-describedby='@FieldIds("config-hint", "save-error")' @bind-Value="_form.TagConfig" rows="6"
class="form-control form-control-sm mono"
placeholder='{ "FullName": "tag_name.AttributeName" }' />
<div class="form-text">Schemaless per driver type. Validated server-side at deploy.</div>
<div id='@FieldId("config-hint")' class="form-text">Schemaless per driver type. Validated server-side at deploy.</div>
}
</div>
<NativeAlarmEditor ConfigJson="@_form.TagConfig"
ConfigJsonChanged="@(v => _form.TagConfig = v)"
ConfigJsonChanged="@(v => UpdateAlarmConfig(v, presentation))"
DriverType="@DriverType" />
}
@if (!string.IsNullOrWhiteSpace(_error))
{
<div class="text-danger small mt-2">@_error</div>
}
</div>
<div class="modal-footer">
<div class="btn-group" role="group">
<button type="button" class="btn btn-outline-secondary" @onclick="CloseAsync" disabled="@_busy">Cancel</button>
<button type="submit" class="btn btn-primary" disabled="@(_busy || _loadError is not null)">
@if (_busy) { <span class="spinner-border spinner-border-sm me-1"></span> }
Save changes
</button>
</div>
</div>
</EditForm>
</div>
<div id='@FieldId("save-error")' role="alert" class="text-danger small"><ValidationMessage For="@(() => _form.TagConfig)" />@_error</div>
</fieldset>
</EditForm>
</ChildContent>
<Footer>
<div class="btn-group" role="group">
<button type="button" class="btn btn-outline-secondary" data-initial-focus="true" @onclick="() => ClosePresentation(presentation, closeAction)" disabled="@Pending">Cancel</button>
<button type="submit" form='@FieldId("form")' class="btn btn-primary" disabled="@(Pending || _loading || _loadError is not null)">
@if (_busy) { <span class="spinner-border spinner-border-sm me-1" aria-hidden="true"></span> }
Save changes
</button>
</div>
</div>
}
</Footer>
</ModalFrame>
@code {
private static readonly string[] DataTypes =
["Boolean", "SByte", "Byte", "Int16", "UInt16", "Int32", "UInt32",
"Int64", "UInt64", "Float", "Double", "String", "DateTime", "Guid", "ByteString"];
@@ -157,7 +150,12 @@
private byte[] _rowVersion = Array.Empty<byte>();
private bool _busy;
private string? _error;
private string? _nameError;
private EditForm? _editForm;
private InputText? _nameInput;
private InputTextArea? _configInput;
private EditContext? _nameContext;
private ValidationMessageStore? _nameMessages;
private EventHandler<FieldChangedEventArgs>? _nameFieldChanged;
private string? _loadError;
// Tracks which (open, tag) this modal last loaded for, so unrelated Blazor Server re-renders don't
@@ -169,150 +167,186 @@
// browse then degrades to its graceful error chip.
private string? _mergedConfigJson;
/// <summary>Optional nonconfidential context identity for identical tag presentations.</summary>
[Parameter] public object? Target { get; set; }
private readonly string _fieldScope = "ot-tag-" + Guid.NewGuid().ToString("N");
private string FieldId(string suffix) => _fieldScope + "-" + suffix;
private string FieldIds(params string[] suffixes) => string.Join(" ", suffixes.Select(FieldId));
private object? _lastTarget;
private bool _lastVisible, _loading, _closing, _disposed;
private int _openGeneration;
private bool Pending => _busy || _closing;
private bool IsStale(int generation) => _disposed || !Visible || generation != _openGeneration;
protected override async Task OnParametersSetAsync()
{
if (!Visible)
{
_loadedKey = null; // closed → next open reloads fresh
_mergedConfigJson = null;
return;
}
var key = TagId;
if (key == _loadedKey) { return; } // same open, re-render → preserve in-progress edits
_loadedKey = key;
_error = null;
_nameError = null;
_loadError = null;
if (string.IsNullOrEmpty(TagId))
{
_loadError = "No tag selected.";
return;
}
var dto = await Svc.LoadTagForEditAsync(TagId);
// Two opens can overlap on one modal instance (the tree's Edit command is synchronous and does
// not disable while this resolves), so every post-await write is discarded unless this open is
// still the displayed one. Last-completion-wins would point the picker at another device.
if (_loadedKey != key || !Visible) { return; }
// RawTagEditDto is a record struct → a missing tag comes back as default (all-zero), not null.
if (dto is not { } d || string.IsNullOrEmpty(d.TagId))
{
_loadError = "This tag no longer exists.";
return;
}
_form = new FormModel
{
Name = d.Name,
DataType = string.IsNullOrEmpty(d.DataType) ? "Float" : d.DataType,
AccessLevel = d.AccessLevel,
WriteIdempotent = d.WriteIdempotent,
PollGroupId = d.PollGroupId,
TagConfig = string.IsNullOrWhiteSpace(d.TagConfig) ? "{}" : d.TagConfig,
};
_rowVersion = d.RowVersion;
object identity = (Target, TagId, DriverType);
if (_disposed || (_lastVisible == Visible && Equals(_lastTarget, identity))) return;
ResetNameValidation(); _nameInput = null; _configInput = null;
_lastVisible = Visible; _lastTarget = identity;
var generation = ++_openGeneration;
_probeConfig = new ProbeConfigState();
_mergedConfigJson = null;
_loadedKey = Visible ? TagId : null;
if (!Visible) return;
_configJsonChanged = null; _getDriverConfigJson = null; _editorParameterCache.Reset();
var key = TagId;
_error = null; _loadError = null; _loading = true;
try
{
var merged = await Svc.LoadMergedProbeConfigAsync(d.DeviceId);
if (_loadedKey != key || !Visible) { return; } // superseded open → never install its device
if (merged is { } m)
if (string.IsNullOrEmpty(key)) { _loadError = "No tag selected."; return; }
var dto = await Svc.LoadTagForEditAsync(key);
if (IsStale(generation) || _loadedKey != key) return;
if (dto is not { } d || string.IsNullOrEmpty(d.TagId)) { _loadError = "This tag no longer exists."; return; }
_form = new FormModel
{
_mergedConfigJson = m.MergedConfigJson;
Name = d.Name,
DataType = string.IsNullOrEmpty(d.DataType) ? "Float" : d.DataType,
AccessLevel = d.AccessLevel,
WriteIdempotent = d.WriteIdempotent,
PollGroupId = d.PollGroupId,
TagConfig = string.IsNullOrWhiteSpace(d.TagConfig) ? "{}" : d.TagConfig,
};
_rowVersion = d.RowVersion;
try
{
var merged = await Svc.LoadMergedProbeConfigAsync(d.DeviceId);
if (IsStale(generation) || _loadedKey != key) return;
if (merged is { } m)
{
_mergedConfigJson = m.MergedConfigJson;
_probeConfig.Value = m.MergedConfigJson;
}
}
catch
{
// Existing fail-soft probe resolution: tag editing/saving remains available.
}
}
catch
{
// Fail-soft: the modal must open and save regardless of the probe-config resolve. Only the
// browse affordance degrades, and it reports its own error when used.
}
catch (Exception) when (IsStale(generation)) { }
finally { if (!IsStale(generation)) _loading = false; }
}
/// <summary>Parameters handed to the typed TagConfig editor. Internal so tests can assert them. Cached
/// on the values it carries and rebuilt when one changes (never build-once, which would pin the first
/// render's TagConfig); the callback and accessor are created once (R04 H2).</summary>
internal IDictionary<string, object> BuildEditorParameters() => _editorParameterCache.Get(
[_form.TagConfig, DriverType ?? ""],
() => new Dictionary<string, object>
{
["ConfigJson"] = _form.TagConfig,
["ConfigJsonChanged"] = _configJsonChanged ??=
EventCallback.Factory.Create<string>(this, v =>
{
_form.TagConfig = v;
RawTagRowDefaults.Apply(DriverType, _form.TagConfig, a => _form.AccessLevel = a, d => _form.DataType = d);
}),
["DriverType"] = DriverType ?? "",
// Live accessor, not a snapshot: the picker reads it when the operator clicks Browse.
["GetDriverConfigJson"] = _getDriverConfigJson ??= () => _mergedConfigJson ?? "{}",
});
/// <summary>Caches live values and callbacks within one presentation; retired callbacks cannot retarget a newer editor.</summary>
internal IDictionary<string, object> BuildEditorParameters()
{
var generation = _openGeneration;
var driverType = DriverType;
var probeConfig = _probeConfig;
return _editorParameterCache.Get(
[_form.TagConfig, driverType ?? "", generation],
() => new Dictionary<string, object>
{
["ConfigJson"] = _form.TagConfig,
["ConfigJsonChanged"] = _configJsonChanged ??=
EventCallback.Factory.Create<string>(this, v =>
{
if (IsStale(generation) || Pending || _loading) return;
_form.TagConfig = v;
RawTagRowDefaults.Apply(driverType, _form.TagConfig, a => _form.AccessLevel = a, d => _form.DataType = d);
}),
["DriverType"] = driverType ?? "",
["GetDriverConfigJson"] = _getDriverConfigJson ??= () => probeConfig.Value,
});
}
private readonly ParameterDictionaryCache _editorParameterCache = new();
private EventCallback<string>? _configJsonChanged;
private Func<string>? _getDriverConfigJson;
private sealed class ProbeConfigState { public string Value = "{}"; }
private ProbeConfigState _probeConfig = new();
private async Task SaveAsync()
private void UpdateAlarmConfig(string value, int generation)
{
if (!IsStale(generation) && !Pending && !_loading) _form.TagConfig = value;
}
private Task SaveAsync() => SavePresentation(_openGeneration, OnSaved, VisibleChanged);
private async Task SavePresentation(int generation, EventCallback savedAction, EventCallback<bool> closeAction)
{
if (IsStale(generation) || Pending || _loading || _loadError is not null) return;
_error = null; SetNameValidation(null, generation);
var driverType = DriverType;
var nameError = RawPaths.ValidateSegment(_form.Name);
if (nameError is not null) { SetNameValidation(nameError, generation); await FocusInvalidOwnedField(generation); return; }
var configError = TagConfigValidator.Validate(driverType, _form.TagConfig);
if (configError is not null) { _error = configError; return; }
RawTagRowDefaults.Apply(driverType, _form.TagConfig, a => _form.AccessLevel = a, d => _form.DataType = d);
var input = new RawTagInput(_form.Name, _form.DataType, _form.AccessLevel, _form.WriteIdempotent,
string.IsNullOrWhiteSpace(_form.PollGroupId) ? null : _form.PollGroupId,
string.IsNullOrWhiteSpace(_form.TagConfig) ? "{}" : _form.TagConfig);
var tagId = TagId!;
var rowVersion = _rowVersion.ToArray();
_busy = true;
_error = null;
_nameError = null;
try
{
// Client-side name validation (RawPath segment) so a bad name is caught before the round-trip.
var nameError = RawPaths.ValidateSegment(_form.Name);
if (nameError is not null)
{
_nameError = nameError;
return;
}
// Client-side per-driver config validation (the typed editor's Validate()).
var configError = TagConfigValidator.Validate(DriverType, _form.TagConfig);
if (configError is not null)
{
_error = configError;
return;
}
RawTagRowDefaults.Apply(DriverType, _form.TagConfig, a => _form.AccessLevel = a, d => _form.DataType = d);
var input = new RawTagInput(
_form.Name,
_form.DataType,
_form.AccessLevel,
_form.WriteIdempotent,
string.IsNullOrWhiteSpace(_form.PollGroupId) ? null : _form.PollGroupId,
string.IsNullOrWhiteSpace(_form.TagConfig) ? "{}" : _form.TagConfig);
var result = await Svc.UpdateTagAsync(TagId!, input, _rowVersion);
var result = await Svc.UpdateTagAsync(tagId, input, rowVersion);
if (IsStale(generation)) return;
if (result.Ok)
{
await OnSaved.InvokeAsync();
await CloseAsync();
}
else
{
_error = result.Error;
await savedAction.InvokeAsync();
if (!IsStale(generation)) await ClosePresentation(generation, closeAction, true);
}
else _error = result.Error;
}
finally
catch (Exception) when (IsStale(generation)) { }
finally { _busy = false; }
}
private void SetNameValidation(string? error, int generation)
{
if (_editForm?.EditContext is not { } context) return;
if (!ReferenceEquals(context, _nameContext))
{
_busy = false;
ResetNameValidation();
_nameContext = context;
var messages = new ValidationMessageStore(context);
var field = new FieldIdentifier(_form, nameof(FormModel.Name));
_nameMessages = messages;
_nameFieldChanged = (_, args) =>
{
if (IsStale(generation) || !args.FieldIdentifier.Equals(field)) return;
messages.Clear(field);
context.NotifyValidationStateChanged();
};
context.OnFieldChanged += _nameFieldChanged;
}
_nameMessages!.Clear();
if (error is not null) _nameMessages.Add(new FieldIdentifier(_form, nameof(FormModel.Name)), error);
context.NotifyValidationStateChanged();
}
private async Task FocusInvalidOwnedField(int generation)
{
if (IsStale(generation) || _loading || _closing || _editForm?.EditContext is not { } context) return;
ElementReference? element = null;
if (context.GetValidationMessages(new FieldIdentifier(_form, nameof(FormModel.Name))).Any()) element = _nameInput?.Element;
else if (context.GetValidationMessages(new FieldIdentifier(_form, nameof(FormModel.TagConfig))).Any()) element = _configInput?.Element;
if (element is not { } target) return;
try { await target.FocusAsync(); }
catch (JSDisconnectedException) { }
catch (JSException) { }
catch (InvalidOperationException) { } // Static SSR has no browser element runtime.
}
private void ResetNameValidation()
{
if (_nameContext is not null && _nameFieldChanged is not null) _nameContext.OnFieldChanged -= _nameFieldChanged;
_nameMessages?.Clear();
_nameContext = null; _nameMessages = null; _nameFieldChanged = null;
}
private bool IsReadOnlyDriver => RawTagRowDefaults.IsReadOnlyDriver(DriverType);
private async Task CloseAsync()
private Task CloseAsync() => ClosePresentation(_openGeneration, VisibleChanged);
private async Task ClosePresentation(int generation, EventCallback<bool> action, bool afterSave = false)
{
Visible = false;
_loadedKey = null;
await VisibleChanged.InvokeAsync(false);
if (IsStale(generation) || _closing || (_busy && !afterSave)) return;
_closing = true;
ResetNameValidation(); _editForm = null; _nameInput = null; _configInput = null;
Visible = false; _lastVisible = false; _loadedKey = null; ++_openGeneration;
try { await action.InvokeAsync(false); }
finally { _closing = false; }
}
/// <summary>Invalidates old callbacks and reads without cancelling a dispatched update.</summary>
public void Dispose() { ResetNameValidation(); _editForm = null; _nameInput = null; _configInput = null; _disposed = true; ++_openGeneration; }
private sealed class FormModel
{
@@ -323,4 +357,5 @@
public string? PollGroupId { get; set; }
[Required] public string TagConfig { get; set; } = "{}";
}
}
@@ -3,9 +3,8 @@ using Shouldly;
namespace ZB.MOM.WW.OtOpcUa.AdminUI.Tests;
/// <summary>
/// Reads an AdminUI source file for a source-scan pin. The repo has no bUnit, so Razor wiring that a
/// unit test cannot render is pinned by scanning the markup; it proves the wiring exists, not that it
/// renders correctly (the docker-dev live pass covers that).
/// Reads an AdminUI source file for a source-scan pin alongside rendered component tests.
/// Source scans prove wiring exists; actual browser checks cover native behavior.
/// </summary>
internal static class AdminUiSource
{
@@ -14,12 +13,13 @@ internal static class AdminUiSource
/// <returns>The file text.</returns>
public static string Read(params string[] relativeSegments)
{
var dir = new DirectoryInfo(AppContext.BaseDirectory);
var dir = new DirectoryInfo(Path.GetDirectoryName(SourceFile())!);
while (dir is not null && !File.Exists(Path.Combine(dir.FullName, "ZB.MOM.WW.OtOpcUa.slnx")))
dir = dir.Parent;
dir.ShouldNotBeNull("could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test binary)");
dir.ShouldNotBeNull("could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test source)");
var parts = new[] { dir!.FullName, "src", "Server", "ZB.MOM.WW.OtOpcUa.AdminUI" }.Concat(relativeSegments).ToArray();
return File.ReadAllText(Path.Combine(parts));
}
private static string SourceFile([System.Runtime.CompilerServices.CallerFilePath] string sourceFile = "") => sourceFile;
}
@@ -0,0 +1,510 @@
using System.Reflection;
using Bunit;
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Xunit;
using ZB.MOM.WW.OtOpcUa.AdminUI.Acls;
using ZB.MOM.WW.OtOpcUa.AdminUI.Clients;
using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Acls;
using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Drivers;
using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Raw;
using ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Uns;
using ZB.MOM.WW.OtOpcUa.AdminUI.Uns;
using ZB.MOM.WW.OtOpcUa.Commons.Interfaces;
using ZB.MOM.WW.OtOpcUa.Configuration.Enums;
namespace ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages;
/// <summary>Configuration wrapper presentation contracts over synthetic read-only providers.</summary>
[Trait("Category","Unit")]
public sealed class ComplexModalAccessibilityTests:BunitContext
{
private readonly Action _releaseFocus;
public ComplexModalAccessibilityTests()
{
JSInterop.Setup<bool>("otDialog.activate",_=>true).SetResult(true);
JSInterop.SetupVoid("otDialog.update",_=>true).SetVoidResult();
JSInterop.SetupVoid("otDialog.deactivate",_=>true).SetVoidResult();
var focus = JSInterop.SetupVoid("Blazor._internal.domWrapper.focus",_=>true);
_releaseFocus = () => focus.SetVoidResult();
Services.AddSingleton(DispatchProxy.Create<IRawTreeService,SyntheticRawReads>());
Services.AddSingleton(DispatchProxy.Create<IAclScopeService,SyntheticScopes>());
Services.AddSingleton(new AdminProbeService(DispatchProxy.Create<IAdminOperationsClient,RefuseOperations>()));
Services.AddSingleton(new RawTagCsvExportReader(RawTreeTestDb.Factory(RawTreeTestDb.SeedFresh())));
}
[Theory]
[InlineData("device")]
[InlineData("driver")]
[InlineData("tag")]
[InlineData("export")]
[InlineData("scope")]
public void Wrapper_IsNamed_AndResolvesUniqueFieldRelationships(string kind)
{
var first=RenderWrapper(kind);var second=RenderWrapper(kind);
foreach(var cut in new[]{first,second})
{
var modal=cut.Find("[role=dialog]");modal.GetAttribute("aria-modal").ShouldBe("true");
var title=modal.GetAttribute("aria-labelledby");title.ShouldNotBeNullOrWhiteSpace();
cut.Find("#"+title).TextContent.ShouldNotBeNullOrWhiteSpace();
cut.Find(".modal-footer [data-initial-focus]").TextContent.Trim().ShouldBe(kind=="export"?"Close":"Cancel");
foreach(var field in cut.FindAll("input:not([type=hidden]),select,textarea"))
{
field.Id.ShouldNotBeNullOrWhiteSpace();
cut.FindAll("label").ShouldContain(label=>label.GetAttribute("for")==field.Id);
foreach(var id in (field.GetAttribute("aria-describedby")??"").Split(' ',StringSplitOptions.RemoveEmptyEntries))
cut.Find("#"+id).ShouldNotBeNull();
}
}
var ids=first.FindAll("[id]").Concat(second.FindAll("[id]")).Select(n=>n.Id).ToArray();
ids.Distinct(StringComparer.Ordinal).Count().ShouldBe(ids.Length);
}
[Theory]
[InlineData("device", "success")]
[InlineData("device", "failure")]
[InlineData("device", "exception")]
[InlineData("driver", "success")]
[InlineData("driver", "failure")]
[InlineData("driver", "exception")]
[InlineData("tag", "success")]
[InlineData("tag", "failure")]
[InlineData("tag", "exception")]
public async Task PendingMutationKeepsOriginalSnapshotAndCannotAffectReplacement(string kind,string outcome)
{
Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll<IRawTreeService>(Services);
var service=DispatchProxy.Create<IRawTreeService,PendingRaw>();var pending=(PendingRaw)(object)service;Services.AddSingleton(service);
var saved=0;var closed=0;
Dictionary<string,object> Parameters(string id)=>new()
{
["Visible"]=true,[TargetParameter(kind)]=id,
["DriverType"]=kind=="tag"?"Galaxy":"Unmapped",
["OnSaved"]=EventCallback.Factory.Create(this,()=>saved+=id=="A"?1:100),
["VisibleChanged"]=EventCallback.Factory.Create<bool>(this,_=>closed+=id=="A"?1:100)
};
var cut=RenderWith(kind,Parameters("A"));
var saving=Submit(cut,kind);
await pending.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
try
{
cut.Find("fieldset").HasAttribute("disabled").ShouldBeTrue();
await cut.Find(".modal-footer .btn-outline-secondary").TriggerEventAsync("onclick",new Microsoft.AspNetCore.Components.Web.MouseEventArgs());
await Submit(cut,kind);
pending.Calls.ShouldBe(1);closed.ShouldBe(0);
NameInput(cut,kind).Change("queued-draft-edit");
pending.Version[0]=9;
cut.Render(p=>p.Add(x=>x.Parameters,Parameters("B")));
cut.WaitForAssertion(()=>NameInput(cut,kind).GetAttribute("value").ShouldBe("beta"));
}
finally
{
if(outcome=="exception")pending.Completion.SetException(new InvalidOperationException("old target exception"));
else pending.Completion.SetResult(new UnsMutationResult(outcome=="success",outcome=="failure"?"old target failure":null));
await saving;
}
pending.Calls.ShouldBe(1);saved.ShouldBe(0);closed.ShouldBe(0);
pending.Arguments![0].ShouldBe("A");
if(kind=="tag")
{
var input=Assert.IsType<RawTagInput>(pending.Arguments[1]);input.Name.ShouldBe("alpha");
input.TagConfig.ShouldBe("{\"marker\":\"A\"}");
((byte[])pending.Arguments[2]!).ShouldBe(new byte[]{1,2});
}
else
{
pending.Arguments[1].ShouldBe("alpha");pending.Arguments[2].ShouldBe("{\"marker\":\"A\"}");
((byte[])pending.Arguments[4]!).ShouldBe(new byte[]{1,2});
if(kind=="driver")pending.Arguments[3].ShouldBe("{\"retry\":true}");
else pending.Arguments[3].ShouldBe(true);
}
NameInput(cut,kind).GetAttribute("value").ShouldBe("beta");
cut.FindAll("[role=dialog]").Count.ShouldBe(1);
cut.Markup.ShouldNotContain("old target failure");cut.Markup.ShouldNotContain("old target exception");
}
[Theory]
[InlineData("device")]
[InlineData("driver")]
[InlineData("tag")]
public async Task DisposedWrapperDoesNotCancelDispatchedMutationOrInvokeUi(string kind)
{
Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll<IRawTreeService>(Services);
var service=DispatchProxy.Create<IRawTreeService,PendingRaw>();var pending=(PendingRaw)(object)service;Services.AddSingleton(service);
var saved=0;var closed=0;
var cut=RenderWith(kind,new(){["Visible"]=true,[TargetParameter(kind)]="A",["DriverType"]=kind=="tag"?"Galaxy":"Unmapped",
["OnSaved"]=EventCallback.Factory.Create(this,()=>saved++),["VisibleChanged"]=EventCallback.Factory.Create<bool>(this,_=>closed++)});
var saving=Submit(cut,kind);
await pending.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
await DisposeComponentsAsync();pending.Completion.SetResult(new(true,null));await saving;
pending.Calls.ShouldBe(1);saved.ShouldBe(0);closed.ShouldBe(0);
}
[Theory]
[InlineData("device",false)]
[InlineData("device",true)]
[InlineData("driver",false)]
[InlineData("driver",true)]
[InlineData("tag",false)]
[InlineData("tag",true)]
public async Task DirectTargetReplacementRejectsLateReadAndLateReadFailure(string kind,bool fail)
{
var service=DispatchProxy.Create<IRawTreeService,DeferredRawReads>();var read=(DeferredRawReads)(object)service;read.FailFirst=fail;
var modal=Plain(kind,service);Set(modal,"Visible",true);Set(modal,TargetParameter(kind),"A");if(kind=="tag")Set(modal,"DriverType","Galaxy");
var opening=Lifecycle(modal);
await read.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
try {Set(modal,TargetParameter(kind),"B");await Lifecycle(modal);PlainName(modal,kind).ShouldBe("beta");}
finally {read.Release.TrySetResult();await opening;}
PlainName(modal,kind).ShouldBe("beta");
}
[Fact]
public async Task TagSameIdReopenCannotInstallAnEarlierGeneration()
{
var service=DispatchProxy.Create<IRawTreeService,DeferredRawReads>();var read=(DeferredRawReads)(object)service;
var modal=Plain("tag",service);Set(modal,"Visible",true);Set(modal,"TagId","A");Set(modal,"DriverType","Galaxy");
var opening=Lifecycle(modal);await read.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
try
{
Set(modal,"Visible",false);await Lifecycle(modal);Set(modal,"Visible",true);await Lifecycle(modal);
PlainName(modal,"tag").ShouldBe("beta");
}
finally {read.Release.TrySetResult();await opening;}
PlainName(modal,"tag").ShouldBe("beta");
}
[Theory]
[InlineData("device")]
[InlineData("driver")]
[InlineData("tag")]
public async Task RetiredChildCallbackCannotModifyReplacementButCurrentCallbackStillWorks(string kind)
{
Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll<IRawTreeService>(Services);
var service=DispatchProxy.Create<IRawTreeService,PendingRaw>();Services.AddSingleton(service);
Dictionary<string,object> Parameters(string id)=>new(){["Visible"]=true,[TargetParameter(kind)]=id,["DriverType"]=kind=="tag"?"Galaxy":"Unmapped"};
var cut=RenderWith(kind,Parameters("A"));
object instance=kind switch { "device"=>cut.FindComponent<DeviceModal>().Instance, "driver"=>cut.FindComponent<DriverConfigModal>().Instance, _=>cut.FindComponent<RawTagModal>().Instance };
var first=EditorParameters(instance,kind);
var key=kind=="device"?"DeviceConfigJsonChanged":kind=="driver"?"DriverConfigJsonChanged":"ConfigJsonChanged";
var old=(EventCallback<string>)first[key];
cut.Render(p=>p.Add(x=>x.Parameters,Parameters("B")));
await cut.InvokeAsync(()=>old.InvokeAsync("{\"marker\":\"retired\"}"));
var current=EditorParameters(instance,kind);var jsonKey=kind=="device"?"DeviceConfigJson":kind=="driver"?"DriverConfigJson":"ConfigJson";
((string)current[jsonKey]).ShouldBe("{\"marker\":\"B\"}");
var currentAction=(EventCallback<string>)current[key];
await cut.InvokeAsync(()=>currentAction.InvokeAsync("{\"marker\":\"B\",\"current\":true}"));
((string)EditorParameters(instance,kind)[jsonKey]).ShouldContain("\"current\":true");
((PendingRaw)(object)service).Calls.ShouldBe(0);
}
[Fact]
public void DeviceProbeGetterIsLiveThenRetainsItsOwnLastKnownSnapshot()
{
Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll<IRawTreeService>(Services);
Services.AddSingleton(DispatchProxy.Create<IRawTreeService,PendingRaw>());
var cut=RenderWith("device",new(){["Visible"]=true,["DeviceId"]="A"});
var instance=cut.FindComponent<DeviceModal>().Instance;
var property=typeof(DeviceModal).GetProperty("ProbeConfigAccessor",BindingFlags.Instance|BindingFlags.NonPublic)!;
var first=(Func<string>)property.GetValue(instance)!;
NameInput(cut,"device").Change("unsaved-alpha");
first().ShouldContain("unsaved-alpha");
cut.Render(p=>p.Add(x=>x.Parameters,new Dictionary<string,object>{["Visible"]=true,["DeviceId"]="B"}));
var next=(Func<string>)property.GetValue(instance)!;
first().ShouldContain("unsaved-alpha");first().ShouldContain("\"marker\":\"A\"");
next().ShouldContain("beta");next().ShouldContain("\"marker\":\"B\"");
}
private static IDictionary<string,object> EditorParameters(object instance,string kind)=>kind=="tag"
?((RawTagModal)instance).BuildEditorParameters()
:(IDictionary<string,object>)instance.GetType().GetProperty(kind=="device"?"_deviceFormParameters":"_formParameters",BindingFlags.Instance|BindingFlags.NonPublic)!.GetValue(instance)!;
private static object Plain(string kind,IRawTreeService service)
{
var type=kind switch{"device"=>typeof(DeviceModal),"driver"=>typeof(DriverConfigModal),_=>typeof(RawTagModal)};
var modal=Activator.CreateInstance(type)!;type.GetProperty("Svc",BindingFlags.Instance|BindingFlags.NonPublic)!.SetValue(modal,service);return modal;
}
private static void Set(object modal,string name,object value)=>modal.GetType().GetProperty(name)!.SetValue(modal,value);
private static Task Lifecycle(object modal)=>(Task)modal.GetType().GetMethod("OnParametersSetAsync",BindingFlags.Instance|BindingFlags.NonPublic)!.Invoke(modal,null)!;
private static T Field<T>(object modal,string name)=>(T)modal.GetType().GetField(name,BindingFlags.Instance|BindingFlags.NonPublic)!.GetValue(modal)!;
private static string PlainName(object modal,string kind)=>kind=="tag"
?(string)Field<object>(modal,"_form").GetType().GetProperty("Name")!.GetValue(Field<object>(modal,"_form"))!
:Field<string>(modal,"_name");
public class DeferredRawReads:DispatchProxy
{
public readonly TaskCompletionSource Entered=new(TaskCreationOptions.RunContinuationsAsynchronously);
public readonly TaskCompletionSource Release=new(TaskCreationOptions.RunContinuationsAsynchronously);
public bool FailFirst;private int _requests;
private async Task<bool> Wait()
{
var first=++_requests==1;if(first){Entered.TrySetResult();await Release.Task;if(FailFirst)throw new InvalidOperationException("retired read failed");}return first;
}
private async Task<RawDeviceEditDto?> Device(string id){var first=await Wait();return new(id,"",first?"alpha":"beta","{}",true,"Unmapped",[1]);}
private async Task<RawDriverEditDto?> Driver(string id){var first=await Wait();return new(id,first?"alpha":"beta","Unmapped","{}",null,[1]);}
private async Task<RawTagEditDto?> Tag(string id){var first=await Wait();return new(id,"device",null,first?"alpha":"beta","Float",TagAccessLevel.Read,false,null,"{}",[1]);}
protected override object? Invoke(MethodInfo? method,object?[]? args)=>method?.Name switch
{
"LoadDeviceForEditAsync"=>Device((string)args![0]!),"LoadDriverForEditAsync"=>Driver((string)args![0]!),"LoadTagForEditAsync"=>Tag((string)args![0]!),
"LoadMergedProbeConfigAsync"=>Task.FromResult<(string DriverType,string MergedConfigJson)?>(null),
_=>throw new InvalidOperationException("Refused read: "+method?.Name)
};
}
[Theory]
[InlineData(false)]
[InlineData(true)]
public async Task ScopeRootsCannotCrossClusterAfterReplacement(bool fail)
{
var service=DispatchProxy.Create<IAclScopeService,DeferredScopes>();var pending=(DeferredScopes)(object)service;pending.FailFirst=fail;
var modal=new AclScopePickerModal();typeof(AclScopePickerModal).GetProperty("Scopes",BindingFlags.Instance|BindingFlags.NonPublic)!.SetValue(modal,service);
Set(modal,"Visible",true);Set(modal,"ClusterId","A");var opening=Lifecycle(modal);
await pending.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
try {Set(modal,"ClusterId","B");await Lifecycle(modal);}
finally {pending.Release.TrySetResult();await opening;}
var roots=Field<AclScopeRoots>(modal,"_roots");roots.Raw.Single().Key.ShouldBe("scope-B");roots.Raw.Single().Expanded.ShouldBeFalse();
}
[Fact]
public async Task RetiredLazyScopeReadCannotPopulateTheReplacementTree()
{
var service=DispatchProxy.Create<IAclScopeService,DeferredScopes>();var pending=(DeferredScopes)(object)service;pending.DeferFirstRoot=false;
var modal=new AclScopePickerModal();typeof(AclScopePickerModal).GetProperty("Scopes",BindingFlags.Instance|BindingFlags.NonPublic)!.SetValue(modal,service);
Set(modal,"Visible",true);Set(modal,"ClusterId","A");await Lifecycle(modal);
var root=Field<AclScopeRoots>(modal,"_roots").Raw.Single();var generation=Field<int>(modal,"_generation");
var children=(Task<IReadOnlyList<AclScopeNode>>)typeof(AclScopePickerModal).GetMethod("LoadChildrenPresentation",BindingFlags.Instance|BindingFlags.NonPublic)!.Invoke(modal,[root,generation])!;
await pending.ChildrenEntered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
try {Set(modal,"ClusterId","B");await Lifecycle(modal);}
finally {pending.ReleaseChildren.TrySetResult();}
(await children).ShouldBeEmpty();Field<AclScopeRoots>(modal,"_roots").Raw.Single().Key.ShouldBe("scope-B");
}
[Fact]
public async Task ScopePickCapturesSelectionAndCallback_AndPendingCancelCannotDispatch()
{
Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll<IAclScopeService>(Services);
var service=DispatchProxy.Create<IAclScopeService,DeferredScopes>();((DeferredScopes)(object)service).DeferFirstRoot=false;Services.AddSingleton(service);
var entered=new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);var release=new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);
AclScopeNode? picked=null;var calls=0;var newer=0;var cancels=0;
Dictionary<string,object> Parameters(string cluster)=>new(){["Visible"]=true,["ClusterId"]=cluster,
["OnCancel"]=EventCallback.Factory.Create(this,()=>cancels++),
["OnPicked"]=cluster=="A"?EventCallback.Factory.Create<AclScopeNode>(this,async value=>{calls++;picked=value;entered.TrySetResult();await release.Task;})
:EventCallback.Factory.Create<AclScopeNode>(this,_=>newer++)};
var cut=RenderWith("scope",Parameters("A"));
cut.FindAll("button").Single(n=>n.TextContent.Contains("Scope A",StringComparison.Ordinal)).Click();
var choosing=cut.Find(".modal-footer .btn-primary").TriggerEventAsync("onclick",new Microsoft.AspNetCore.Components.Web.MouseEventArgs());
await entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
try
{
await cut.Find(".modal-footer .btn-primary").TriggerEventAsync("onclick",new Microsoft.AspNetCore.Components.Web.MouseEventArgs());
await cut.Find(".modal-footer .btn-outline-secondary").TriggerEventAsync("onclick",new Microsoft.AspNetCore.Components.Web.MouseEventArgs());
cut.Render(p=>p.Add(x=>x.Parameters,Parameters("B")));
}
finally {release.TrySetResult();await choosing;}
calls.ShouldBe(1);newer.ShouldBe(0);cancels.ShouldBe(0);picked!.Key.ShouldBe("scope-A");
cut.Markup.ShouldContain("Scope B");cut.FindAll("[role=dialog]").Count.ShouldBe(1);
}
[Fact]
public async Task ScopePendingCancelIsSingleFlight()
{
var entered=new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);var release=new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);var calls=0;
var cut=RenderWith("scope",new(){["Visible"]=true,["ClusterId"]="C1",["OnCancel"]=EventCallback.Factory.Create(this,async()=>{calls++;entered.TrySetResult();await release.Task;})});
var closing=cut.Find(".modal-footer .btn-outline-secondary").TriggerEventAsync("onclick",new Microsoft.AspNetCore.Components.Web.MouseEventArgs());
await entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
try {await cut.Find(".modal-footer .btn-outline-secondary").TriggerEventAsync("onclick",new Microsoft.AspNetCore.Components.Web.MouseEventArgs());calls.ShouldBe(1);}
finally {release.TrySetResult();await closing;}
}
[Fact]
public async Task CsvDirectRetargetKeepsPreviewAndDownloadOnSameDevice()
{
var factory=new GatedCsvFactory(RawTreeTestDb.SeedFresh());
var modal=new RawCsvExportModal();typeof(RawCsvExportModal).GetProperty("ExportReader",BindingFlags.Instance|BindingFlags.NonPublic)!.SetValue(modal,new RawTagCsvExportReader(factory));
Set(modal,"Visible",true);Set(modal,"DeviceId",RawTreeTestDb.FolderedDeviceId);Set(modal,"DriverType","Galaxy");var opening=Lifecycle(modal);
await factory.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
try {Set(modal,"DeviceId",RawTreeTestDb.RootDeviceId);await Lifecycle(modal);}
finally {factory.Release.TrySetResult();await opening;}
Field<int>(modal,"_rowCount").ShouldBe(1);Field<string>(modal,"_preview").ShouldContain("temperature");
Field<string>(modal,"_downloadUrl").ShouldBe(RawTagCsvExport.DownloadUrl(RawTreeTestDb.RootDeviceId,null,"Galaxy"));
}
public class DeferredScopes:DispatchProxy
{
public readonly TaskCompletionSource Entered=new(TaskCreationOptions.RunContinuationsAsynchronously),Release=new(TaskCreationOptions.RunContinuationsAsynchronously),ChildrenEntered=new(TaskCreationOptions.RunContinuationsAsynchronously),ReleaseChildren=new(TaskCreationOptions.RunContinuationsAsynchronously);
public bool DeferFirstRoot=true,FailFirst;private int _roots;
private async Task<AclScopeRoots> Roots(string cluster)
{
if(++_roots==1&&DeferFirstRoot){Entered.TrySetResult();await Release.Task;if(FailFirst)throw new InvalidOperationException("old root failed");}
return new([Node(cluster)],[]);
}
private async Task<IReadOnlyList<AclScopeNode>> Children(){ChildrenEntered.TrySetResult();await ReleaseChildren.Task;return [Node("old-child")];}
private static AclScopeNode Node(string id)=>new(){Key="scope-"+id,DisplayName="Scope "+id,Icon="C",ScopeKind=NodeAclScopeKind.Cluster,PathLabel="Scope "+id,HasLazyChildren=true,Expanded=true};
protected override object? Invoke(MethodInfo? method,object?[]? args)=>method?.Name switch
{"LoadRootsAsync"=>Roots((string)args![0]!),"LoadChildrenAsync"=>Children(),_=>throw new InvalidOperationException("Refused scope operation: "+method?.Name)};
}
private sealed class GatedCsvFactory(string name):Microsoft.EntityFrameworkCore.IDbContextFactory<ZB.MOM.WW.OtOpcUa.Configuration.OtOpcUaConfigDbContext>
{
public readonly TaskCompletionSource Entered=new(TaskCreationOptions.RunContinuationsAsynchronously),Release=new(TaskCreationOptions.RunContinuationsAsynchronously);private int _calls;
public ZB.MOM.WW.OtOpcUa.Configuration.OtOpcUaConfigDbContext CreateDbContext()=>RawTreeTestDb.CreateNamed(name);
public async Task<ZB.MOM.WW.OtOpcUa.Configuration.OtOpcUaConfigDbContext> CreateDbContextAsync(CancellationToken ct=default)
{if(Interlocked.Increment(ref _calls)==1){Entered.TrySetResult();await Release.Task.WaitAsync(ct);}return CreateDbContext();}
}
[Theory]
[InlineData("/bad")]
[InlineData("")]
public async Task InvalidTagNameExposesBothDomainAndRequiredErrors(string value)
{
_releaseFocus();
var cut=RenderWith("tag",new(){["Visible"]=true,["TagId"]="A",["DriverType"]="Galaxy"});
NameInput(cut,"tag").Change(value);await Submit(cut,"tag");
var name=NameInput(cut,"tag");name.GetAttribute("aria-invalid").ShouldBe("true");
var error=name.GetAttribute("aria-describedby");error.ShouldNotBeNullOrWhiteSpace();cut.Find("#"+error).TextContent.ShouldNotBeNullOrWhiteSpace();
JSInterop.Invocations.Count(i=>i.Identifier=="Blazor._internal.domWrapper.focus").ShouldBe(1);
}
[Fact]
public async Task CorrectingInvalidTagNameClearsOnlyDomainErrorAndAllowsSave()
{
_releaseFocus();
Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll<IRawTreeService>(Services);
var service=DispatchProxy.Create<IRawTreeService,PendingRaw>();var pending=(PendingRaw)(object)service;Services.AddSingleton(service);
var cut=RenderWith("tag",new(){["Visible"]=true,["TagId"]="A",["DriverType"]="Galaxy"});
NameInput(cut,"tag").Change("/bad");await Submit(cut,"tag");pending.Calls.ShouldBe(0);
NameInput(cut,"tag").GetAttribute("aria-invalid").ShouldBe("true");
NameInput(cut,"tag").Change("recovered");var saving=Submit(cut,"tag");
await pending.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
pending.Completion.TrySetResult(new(true,null));await saving;
pending.Calls.ShouldBe(1);Assert.IsType<RawTagInput>(pending.Arguments![1]).Name.ShouldBe("recovered");
cut.FindAll("[role=dialog]").ShouldBeEmpty();
}
[Theory]
[InlineData("device")]
[InlineData("driver")]
public async Task CreateKeepsOwningScopeAndJsonSnapshotAcrossReplacement(string kind)
{
Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll<IRawTreeService>(Services);
var service=DispatchProxy.Create<IRawTreeService,PendingRaw>();var pending=(PendingRaw)(object)service;Services.AddSingleton(service);
var saved=0;var closed=0;
Dictionary<string,object> Parameters(string scope)
{
var values=new Dictionary<string,object>{["Visible"]=true,["DriverType"]="Unmapped",
["OnSaved"]=EventCallback.Factory.Create(this,()=>saved++),["VisibleChanged"]=EventCallback.Factory.Create<bool>(this,_=>closed++)};
if(kind=="device")values["DriverInstanceId"]=scope;
else{values["ClusterId"]=scope;values["FolderId"]="folder-"+scope;}
return values;
}
var cut=RenderWith(kind,Parameters("A"));NameInput(cut,kind).Change("new-alpha");
object instance=kind=="device"?cut.FindComponent<DeviceModal>().Instance:cut.FindComponent<DriverConfigModal>().Instance;
var action=(EventCallback<string>)EditorParameters(instance,kind)[kind=="device"?"DeviceConfigJsonChanged":"DriverConfigJsonChanged"];
await cut.InvokeAsync(()=>action.InvokeAsync("{\"marker\":\"A\"}"));var saving=Submit(cut,kind);
await pending.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
try {cut.Render(p=>p.Add(x=>x.Parameters,Parameters("B")));}
finally {pending.Completion.TrySetResult(new(true,null));await saving;}
pending.Calls.ShouldBe(1);saved.ShouldBe(0);closed.ShouldBe(0);pending.Arguments![0].ShouldBe("A");
if(kind=="device"){pending.Arguments[1].ShouldBe("new-alpha");pending.Arguments[2].ShouldBe("{\"marker\":\"A\"}");}
else{pending.Arguments[1].ShouldBe("folder-A");pending.Arguments[2].ShouldBe("new-alpha");pending.Arguments[3].ShouldBe("Unmapped");pending.Arguments[4].ShouldBe("{\"marker\":\"A\"}");}
NameInput(cut,kind).GetAttribute("value").ShouldBe("");cut.FindAll("[role=dialog]").Count.ShouldBe(1);
}
[Fact]
public async Task RequiredFallbackConfigIsLinkedAndFocusesItsOwnControl()
{
_releaseFocus();
var cut=RenderWith("tag",new(){["Visible"]=true,["TagId"]="A",["DriverType"]="Galaxy"});
cut.Find("textarea").Change("");await Submit(cut,"tag");
cut.Find("textarea").GetAttribute("aria-invalid").ShouldBe("true");
cut.Find("[id$=save-error]").TextContent.ShouldNotBeNullOrWhiteSpace();
var focus=Assert.Single(JSInterop.Invocations,i=>i.Identifier=="Blazor._internal.domWrapper.focus");
var element=cut.FindComponent<Microsoft.AspNetCore.Components.Forms.InputTextArea>().Instance.Element ?? throw new InvalidOperationException("Missing rendered config control");
Assert.IsType<ElementReference>(focus.Arguments[0]).Id.ShouldBe(element.Id);
}
[Fact]
public async Task LateValidationFocusCannotUnlockAStartedSave()
{
Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescriptorExtensions.RemoveAll<IRawTreeService>(Services);
var service=DispatchProxy.Create<IRawTreeService,PendingRaw>();var pending=(PendingRaw)(object)service;Services.AddSingleton(service);
var cut=RenderWith("tag",new(){["Visible"]=true,["TagId"]="A",["DriverType"]="Galaxy"});
NameInput(cut,"tag").Change("/bad");var invalid=Submit(cut,"tag");
cut.WaitForAssertion(()=>JSInterop.Invocations.Count(i=>i.Identifier=="Blazor._internal.domWrapper.focus").ShouldBe(1));
NameInput(cut,"tag").Change("recovered");var saving=Submit(cut,"tag");
await pending.Entered.Task.WaitAsync(TimeSpan.FromSeconds(10),Xunit.TestContext.Current.CancellationToken);
try
{
_releaseFocus();await invalid;
cut.Find("[role=dialog]").GetAttribute("aria-busy").ShouldBe("true");
await Submit(cut,"tag");pending.Calls.ShouldBe(1);
}
finally {pending.Completion.TrySetResult(new(true,null));await saving;}
cut.FindAll("[role=dialog]").ShouldBeEmpty();
}
private static string TargetParameter(string kind)=>kind switch{"device"=>"DeviceId","driver"=>"DriverInstanceId","tag"=>"TagId",_=>throw new ArgumentOutOfRangeException(nameof(kind))};
private static Task Submit(IRenderedComponent<DynamicComponent> cut,string kind)=>kind=="tag"
?cut.Find("form").TriggerEventAsync("onsubmit",EventArgs.Empty)
:cut.Find(".modal-footer .btn-primary").TriggerEventAsync("onclick",new Microsoft.AspNetCore.Components.Web.MouseEventArgs());
private static AngleSharp.Dom.IElement NameInput(IRenderedComponent<DynamicComponent> cut,string kind)
{
var label=kind switch{"device"=>"Device name","driver"=>"Driver name",_=>"Name"};
var id=cut.FindAll("label").Single(n=>n.TextContent.Trim()==label).GetAttribute("for");return cut.Find("#"+id);
}
private IRenderedComponent<DynamicComponent> RenderWith(string kind,Dictionary<string,object> values)=>Render<DynamicComponent>(p=>p.Add(x=>x.Type,kind switch
{"device"=>typeof(DeviceModal),"driver"=>typeof(DriverConfigModal),"tag"=>typeof(RawTagModal),"scope"=>typeof(AclScopePickerModal),"export"=>typeof(RawCsvExportModal),_=>throw new ArgumentOutOfRangeException(nameof(kind))}).Add(x=>x.Parameters,values));
public class PendingRaw:DispatchProxy
{
public readonly byte[] Version=[1,2];
public readonly TaskCompletionSource Entered=new(TaskCreationOptions.RunContinuationsAsynchronously);
public readonly TaskCompletionSource<UnsMutationResult> Completion=new(TaskCreationOptions.RunContinuationsAsynchronously);
public int Calls;public object?[]? Arguments;
protected override object? Invoke(MethodInfo? method,object?[]? args)
{
var id=(string)args![0]!;
var name=id=="A"?"alpha":"beta";var json="{\"marker\":\""+id+"\"}";
switch(method?.Name)
{
case "LoadDeviceForEditAsync":return Task.FromResult<RawDeviceEditDto?>(new(id,"",name,json,true,"Unmapped",Version));
case "LoadDriverForEditAsync":return Task.FromResult<RawDriverEditDto?>(new(id,name,"Unmapped",json,"{\"retry\":true}",Version));
case "LoadTagForEditAsync":return Task.FromResult<RawTagEditDto?>(new(id,"device-"+id,null,name,"Float",TagAccessLevel.Read,false,null,json,Version));
case "LoadMergedProbeConfigAsync":return Task.FromResult<(string DriverType,string MergedConfigJson)?>(("Unmapped",json));
case "UpdateDeviceAsync":case "UpdateDriverAsync":case "UpdateTagAsync":case "CreateDeviceAsync":case "CreateDriverAsync":Calls++;Arguments=args;Entered.TrySetResult();return Completion.Task;
default:throw new InvalidOperationException("Refused operation: "+method?.Name);
}
}
}
private IRenderedComponent<DynamicComponent> RenderWrapper(string kind)
{
var type=kind switch{"device"=>typeof(DeviceModal),"driver"=>typeof(DriverConfigModal),"tag"=>typeof(RawTagModal),"export"=>typeof(RawCsvExportModal),"scope"=>typeof(AclScopePickerModal),_=>throw new ArgumentOutOfRangeException(nameof(kind))};
var values=new Dictionary<string,object>{["Visible"]=true};
if(kind=="device")values["DeviceId"]="DEV-A";
if(kind=="driver")values["DriverInstanceId"]="DRV-A";
if(kind=="tag"){values["TagId"]="TAG-A";values["DriverType"]="Galaxy";}
if(kind=="export"){values["DeviceId"]=RawTreeTestDb.FolderedDeviceId;values["DriverType"]="Galaxy";}
if(kind=="scope")values["ClusterId"]="C1";
return Render<DynamicComponent>(p=>p.Add(x=>x.Type,type).Add(x=>x.Parameters,values));
}
public class SyntheticRawReads:DispatchProxy
{
protected override object? Invoke(MethodInfo? method,object?[]? args)=>method?.Name switch
{
"LoadDeviceForEditAsync"=>Task.FromResult<RawDeviceEditDto?>(new((string)args![0]!,"","alpha","{}",true,"Unmapped",[1])),
"LoadDriverForEditAsync"=>Task.FromResult<RawDriverEditDto?>(new((string)args![0]!,"alpha","Unmapped","{}",null,[1])),
"LoadTagForEditAsync"=>Task.FromResult<RawTagEditDto?>(new((string)args![0]!,"DEV-A",null,"alpha","Float",TagAccessLevel.Read,false,null,"{}",[1])),
"LoadMergedProbeConfigAsync"=>Task.FromResult<(string DriverType,string MergedConfigJson)?>(null),
_=>throw new InvalidOperationException("Refused operation: "+method?.Name)
};
}
public class SyntheticScopes:DispatchProxy
{
protected override object? Invoke(MethodInfo? method,object?[]? args)=>method?.Name=="LoadRootsAsync"
?Task.FromResult(new AclScopeRoots([],[]))
:throw new InvalidOperationException("Refused scope operation: "+method?.Name);
}
public class RefuseOperations:DispatchProxy
{
protected override object? Invoke(MethodInfo? method,object?[]? args)=>throw new InvalidOperationException("No operational client available: "+method?.Name);
}
}
@@ -73,32 +73,30 @@ public sealed class RawTagModalMergedConfigTests
[Fact]
public async Task The_accessor_is_live_not_a_captured_snapshot()
{
var gate = new TaskCompletionSource<(string DriverType, string MergedConfigJson)?>(TaskCreationOptions.RunContinuationsAsynchronously);
var svc = new FakeRawTreeService
{
OnLoadTagForEdit = tagId => TagOn(tagId, tagId == "tag-1" ? "dev-1" : "dev-2"),
OnLoadMergedProbeConfig = _ => null,
OnLoadMergedProbeConfigAsync = deviceId => deviceId == "dev-1"
? gate.Task
: Task.FromResult<(string DriverType, string MergedConfigJson)?>(("AbCip", MergedConfig)),
};
var modal = NewModal(svc, "tag-1");
await InvokeParametersSetAsync(modal);
var opening = InvokeParametersSetAsync(modal);
var firstAccessor = (Func<string>)modal.BuildEditorParameters()["GetDriverConfigJson"];
firstAccessor().ShouldBe("{}");
gate.SetResult(("AbCip", StaleConfig));
await opening;
firstAccessor().ShouldBe(StaleConfig, "the current presentation's accessor must see its later resolved config");
// Close, then reopen on a different tag whose device now resolves. The per-open cache must have
// been reset and re-resolved, and the accessor must read the field at call time rather than
// having closed over the value it saw when it was built.
modal.Visible = false;
await InvokeParametersSetAsync(modal);
svc.OnLoadMergedProbeConfig = deviceId =>
deviceId == "dev-2" ? ("AbCip", MergedConfig) : null;
modal.Visible = true;
modal.TagId = "tag-2";
await InvokeParametersSetAsync(modal);
DriverConfigJson(modal).ShouldBe(MergedConfig);
firstAccessor().ShouldBe(MergedConfig);
firstAccessor().ShouldBe(StaleConfig, "a retired child retains its own last-known config and never reads the replacement device");
}
[Fact]