test(ui): retain OtOpcUa component canaries and owned SQL proof
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
@page "/raw-caller-pilot"
|
||||
@layout ZB.MOM.WW.OtOpcUa.AdminUI.Components.Layout.MainLayout
|
||||
@inject FixtureTreeState State
|
||||
<p class="notice">Composed actual RawTree/dialogs with fabricated local rename/delete replies and memory-only child reads. No database mutation or fleet request occurs.</p>
|
||||
<button id="fixture-caller-observe" type="button" @onclick="Observe">Observe local request count</button><output id="fixture-caller-count">@_count</output><output id="fixture-caller-ready">@(_observed?"ready":"waiting")</output>
|
||||
<RawTree Roots="_roots" />
|
||||
@code {
|
||||
private IReadOnlyList<RawNode> _roots=[];private int _count;private bool _observed;
|
||||
private void Observe(){_count=State.CallerMutationRequests;_observed=true;}
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
var folder=new RawNode{Key="caller-folder-a",EntityId="caller-folder-a",Kind=RawNodeKind.Folder,DisplayName="Local folder A",ClusterId="caller-cluster",Loaded=true,RowVersion=[1]};
|
||||
var cluster=new RawNode{Key="caller-cluster",EntityId="caller-cluster",Kind=RawNodeKind.Cluster,DisplayName="Local cluster",Loaded=true,Expanded=true,HasLazyChildren=true};
|
||||
cluster.Children.Add(folder);cluster.ChildCount=1;_roots=[cluster];
|
||||
State.CallerMutationRequests=0;State.CallerChildren.Clear();State.CallerChildren[cluster.Key]=[folder];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user