Fix e2e tests (#3014)

This commit is contained in:
Chris Estreich 2025-04-28 12:52:51 -07:00 committed by GitHub
parent 449d54bdd5
commit 21ea433b88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,18 +17,17 @@ suite("Roo Code Subtasks", () => {
}
})
await api.setConfiguration({
mode: "ask",
alwaysAllowModeSwitch: true,
alwaysAllowSubtasks: true,
autoApprovalEnabled: true,
enableCheckpoints: false,
})
const childPrompt = "You are a calculator. Respond only with numbers. What is the square root of 9?"
// Start a parent task that will create a subtask.
const parentTaskId = await api.startNewTask({
configuration: {
mode: "ask",
alwaysAllowModeSwitch: true,
alwaysAllowSubtasks: true,
autoApprovalEnabled: true,
enableCheckpoints: false,
},
text:
"You are the parent task. " +
`Create a subtask by using the new_task tool with the message '${childPrompt}'.` +