From 21ea433b8818c84fb1ab48643964a57b5b64806a Mon Sep 17 00:00:00 2001 From: Chris Estreich Date: Mon, 28 Apr 2025 12:52:51 -0700 Subject: [PATCH] Fix e2e tests (#3014) --- e2e/src/suite/subtasks.test.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/e2e/src/suite/subtasks.test.ts b/e2e/src/suite/subtasks.test.ts index 513b4c218e..da64cfdb2c 100644 --- a/e2e/src/suite/subtasks.test.ts +++ b/e2e/src/suite/subtasks.test.ts @@ -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}'.` +