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.
JavaScript agent-collaborationagent-harnessagent-orchestrationagent-teamagent-workflowai-assistantai-automationai-employeeai-productivityai-teamai-workflowautonomous-agentsclaude-code-guiclaude-coworkdesktop-agentlocal-firstmulti-agentmulti-agent-systemself-evolving-agentstask-automation
test(e2e): wait for native visibility before background recovery
CloudTianTian4d9f2d15e686
diff --git a/test/e2e/chat_e2e_background_recovery.spec.ts b/test/e2e/chat_e2e_background_recovery.spec.tsindex 0bf401d3..730aa7f5 100644--- a/test/e2e/chat_e2e_background_recovery.spec.ts+++ b/test/e2e/chat_e2e_background_recovery.spec.ts@@ -57,7 +57,11 @@ for (const surface of ['hidden-window', 'other-panel', 'other-task'] as const) {// Chromium may retain visible for a hidden-at-launch document. Verify// the native lifecycle channel independently of that document state.await nativeWindow.evaluate(win => win.showInactive());+ // Establish a real native show-to-hide transition for this initially+ // hidden fixture before checking the renderer's lifecycle receipt.+ await expect.poll(() => nativeWindow.evaluate(win => win.isVisible())).toBe(true);await nativeWindow.evaluate(win => win.hide());+ await expect.poll(() => nativeWindow.evaluate(win => win.isVisible())).toBe(false);await expect.poll(() => page.evaluate<boolean>('_conversationWindowActive')).toBe(false);// Snapshot after the acknowledged hide. The first admitted prefix may// arrive between the earlier composer checks and the native transition.