Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

test(e2e): count visible replies during background recovery

BlueSkyID666ab7e33a26b8d
diff --git a/test/e2e/chat_e2e_background_recovery.spec.ts b/test/e2e/chat_e2e_background_recovery.spec.ts
index 730aa7f5..8b79355c 100644
--- a/test/e2e/chat_e2e_background_recovery.spec.ts
+++ b/test/e2e/chat_e2e_background_recovery.spec.ts
@@ -99,7 +99,9 @@ for (const surface of ['hidden-window', 'other-panel', 'other-task'] as const) {
} else {
await page.evaluate(cid => (window as any).setView('conversation', cid), cid);
}
- const replies = page.locator('#chat-history .chat-message.assistant');
+ // Recovery can reserve a hidden, actor-less observer placeholder. Only
+ // visible replies represent duplicate output to the user.
+ const replies = page.locator('#chat-history .chat-message.assistant:visible');
await expect(replies).toHaveCount(1);
await expect(replies).toContainText('Hello from the local E2E model.');
if (!completed) {