test(app): add canonical connected soak snapshots
Make scripted lifecycle checkpoints acknowledged post-diagnostics render barriers, capture the exact frame outcome beside canonical resource ownership, and harden the nine-stop route with ordered same-location cache and lifetime gates without weakening process residency thresholds. Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
parent
2862622ba2
commit
bca4148739
17 changed files with 995 additions and 52 deletions
|
|
@ -110,13 +110,14 @@ public sealed class InteractionUiRuntimeSourcesTests
|
|||
public void AutomationProxyIsInertUntilExactRuntimeBinds()
|
||||
{
|
||||
var source = new DeferredWorldLifecycleAutomationRuntime();
|
||||
Assert.False(source.TryWriteCheckpoint("early", out string earlyError));
|
||||
Assert.False(source.TryRequestCheckpoint(
|
||||
"early", out _, out string earlyError));
|
||||
Assert.Contains("not bound", earlyError);
|
||||
|
||||
var target = new AutomationRuntime();
|
||||
IDisposable binding = source.Bind(target);
|
||||
Assert.True(source.IsWorldReady);
|
||||
Assert.True(source.TryWriteCheckpoint("ready", out _));
|
||||
Assert.True(source.TryRequestCheckpoint("ready", out _, out _));
|
||||
Assert.Equal("ready", target.LastCheckpoint);
|
||||
|
||||
binding.Dispose();
|
||||
|
|
@ -198,18 +199,35 @@ public sealed class InteractionUiRuntimeSourcesTests
|
|||
private sealed class AutomationRuntime
|
||||
: AcDream.App.UI.Testing.IRetailUiAutomationRuntime
|
||||
{
|
||||
private sealed record CompletedCheckpoint(int Sequence, string Name)
|
||||
: AcDream.App.UI.Testing.IRetailUiAutomationCheckpoint
|
||||
{
|
||||
public AcDream.App.UI.Testing.RetailUiAutomationCheckpointStatus Status =>
|
||||
AcDream.App.UI.Testing.RetailUiAutomationCheckpointStatus.Succeeded;
|
||||
public string? Error => null;
|
||||
}
|
||||
|
||||
public bool IsWorldReady => true;
|
||||
public bool IsWorldViewportVisible => true;
|
||||
public int PortalMaterializationCount => 2;
|
||||
public string? LastCheckpoint { get; private set; }
|
||||
|
||||
public bool TryWriteCheckpoint(string name, out string error)
|
||||
public bool TryRequestCheckpoint(
|
||||
string name,
|
||||
out AcDream.App.UI.Testing.IRetailUiAutomationCheckpoint? checkpoint,
|
||||
out string error)
|
||||
{
|
||||
LastCheckpoint = name;
|
||||
checkpoint = new CompletedCheckpoint(1, name);
|
||||
error = string.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void CancelCheckpoint(
|
||||
AcDream.App.UI.Testing.IRetailUiAutomationCheckpoint checkpoint)
|
||||
{
|
||||
}
|
||||
|
||||
public bool TryRequestScreenshot(string name, out string error)
|
||||
{
|
||||
error = string.Empty;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue