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:
DottaandClaude Opus 5.5 committed 2026-11-08 22:51:22 -06:00
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() }),