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(voice): cover bilingual connecting and recording states

wyt862db6b88bad
diff --git a/test/e2e/voice_input_e2e_lifecycle.spec.ts b/test/e2e/voice_input_e2e_lifecycle.spec.ts
index 310ede9a..759fd60a 100644
--- a/test/e2e/voice_input_e2e_lifecycle.spec.ts
+++ b/test/e2e/voice_input_e2e_lifecycle.spec.ts
@@ -67,6 +67,7 @@ test.describe('voice input', () => {
// A Windows renderer under full-suite load can take slightly over the
// global 10s expect window to complete the local WebSocket handshake.
await expect(mic).toHaveAttribute('data-voice-phase', 'recording', { timeout: 20_000 });
+ await page.screenshot({ path: info.outputPath('voice-recording-en.png') });
await mic.click();
await expectComposerText(input, 'Draft: E2E dictated launch note');
@@ -88,8 +89,15 @@ test.describe('voice input', () => {
const mic = page.locator('#new-chat-mic-btn');
await input.fill('Keep this draft');
await mic.click();
+ await expect(mic).toHaveAttribute('data-voice-phase', 'connecting');
await expect(mic).toHaveClass(/\bis-busy\b/);
await expect(mic).not.toHaveClass(/\bis-recording\b/);
+ await expect(mic).toHaveAttribute('aria-label', 'Connecting…');
+ await page.screenshot({ path: info.outputPath('voice-connecting-en.png') });
+ await page.setViewportSize({ width: 760, height: 600 });
+ await page.evaluate(async () => { await (window as any).setLang('zh'); });
+ await expect(mic).toHaveAttribute('aria-label', '正在连接…');
+ await page.screenshot({ path: info.outputPath('voice-connecting-zh-narrow.png') });
await expect.poll(() => page.evaluate(() => (window as any).__e2eVoiceSocketUrls.length)).toBe(1);
await mic.click();