mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Fix e2e tests (#3014)
This commit is contained in:
parent
449d54bdd5
commit
21ea433b88
1 changed files with 7 additions and 8 deletions
|
|
@ -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}'.` +
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue