test(e2e): ensure mode-switch test completes by calling attempt_completion after switching modes

This commit is contained in:
Hannes Rudolph 2025-11-03 19:20:34 -07:00
parent b863406fcc
commit bb6ba42b5e

View file

@ -15,7 +15,7 @@ suite("Roo Code Modes", function () {
const switchModesTaskId = await globalThis.api.startNewTask({
configuration: { mode: "code", alwaysAllowModeSwitch: true, autoApprovalEnabled: true },
text: "For each of `architect`, `ask`, and `debug` use the `switch_mode` tool to switch to that mode.",
text: "For each of `architect`, `ask`, and `debug` use the `switch_mode` tool to switch to that mode. After switching all three, call the `attempt_completion` tool with the result: 'Mode switches completed.'",
})
await waitUntilCompleted({ api: globalThis.api, taskId: switchModesTaskId })