mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-10 12:37:55 +01:00
test(evals): open the profile actions menu before the human pauses Morgan
The agent profile moved Pause into its actions menu (#19535), so the scripted human timed out looking for a header Pause button after the CEO correctly handed the pause to the person. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a6202dc0d9
commit
2a607c4239
1 file changed
+2
@@ -52,6 +52,8 @@ export const runtimeLifecycleCases = [runtimeDefinition("agents.pause-agent", ct
|
||||
const o = await observeRuntime(ctx, state);
|
||||
const source = ctx.input.page.url();
|
||||
await openRuntimeAgentProfile(ctx, worker, o);
|
||||
// The profile keeps Pause in its actions menu (#19535), next to Terminate.
|
||||
await ctx.input.page.getByRole("button", { name: `Open actions for ${worker.name}`, exact: true }).click();
|
||||
await ctx.input.page.getByRole("button", { name: "Pause", exact: true }).click();
|
||||
await pollUntil({ label: "Morgan pause confirmed after native process cleanup", deadlineAt: Date.now() + 90_000,
|
||||
load: async () => ({ worker: await ctx.input.api.get<RuntimeAgent>(`/api/agents/${worker.id}`), runs: await ctx.allRuns() }),
|
||||
|
||||
Reference in new issue
Block a user