test(central-ui): Playwright Flow Debugger live run + localStorage restore against the rig
An ephemeral inbound method (created and deleted through the CLI, with a never-taken Route.To branch so prediction resolves a route target) is run live in a real browser through the fixture's /auth/login; the reload test drives the OnAfterRenderAsync localStorage restore and then proves the page is still interactive. Both fail on the pre-fix image at the 'Predicted' wait (the circuit deadlock) and pass on the fixed one. Claude-Session: https://claude.ai/code/session_01NcMG6xXdsJbmD2wYAgkK29
This commit is contained in:
@@ -406,9 +406,16 @@ public static partial class CliRunner
|
||||
/// Creates an inbound API method via <c>api-method create</c> (so it appears as a checkbox in the
|
||||
/// API-key form) and returns its new <c>id</c>.
|
||||
/// </summary>
|
||||
public static async Task<int> CreateApiMethodAsync(string name, string script = "return null;")
|
||||
public static async Task<int> CreateApiMethodAsync(string name, string script = "return null;", string? parameters = null)
|
||||
{
|
||||
using var doc = await RunJsonAsync("api-method", "create", "--name", name, "--script", script);
|
||||
var args = new List<string> { "api-method", "create", "--name", name, "--script", script };
|
||||
if (!string.IsNullOrEmpty(parameters))
|
||||
{
|
||||
args.Add("--parameters");
|
||||
args.Add(parameters);
|
||||
}
|
||||
|
||||
using var doc = await RunJsonAsync([.. args]);
|
||||
return RequireId(doc, "api-method create");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user