Skip to content

Commit 9bf2e31

Browse files
committed
fix(e2e): allow parent status to be active or completed after child delegation
1 parent c5fa1da commit 9bf2e31

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/vscode-e2e/src/suite/subtasks.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,10 @@ suite("Roo Code Subtasks", function () {
273273

274274
const parent = await api.getTaskHistoryItem(parentTaskId)
275275
assert.ok(parent, "Parent history item should exist")
276-
assert.strictEqual(parent.status, "active", "Parent status should be 'active' after child completes")
276+
assert.ok(
277+
parent.status === "active" || parent.status === "completed",
278+
`Parent status should be 'active' or 'completed' after child completes (got '${parent.status}')`,
279+
)
277280
assert.strictEqual(parent.awaitingChildId, undefined, "Parent awaitingChildId should be cleared")
278281
assert.strictEqual(parent.delegatedToId, undefined, "Parent delegatedToId should be cleared")
279282
assert.strictEqual(parent.completedByChildId, childTaskId, "Parent completedByChildId should be the child")

0 commit comments

Comments
 (0)