Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(live-voice): add playwright spec for live voice flow

Steven Enamakela6be78eac881
diff --git a/app/test/playwright/specs/live-voice.spec.ts b/app/test/playwright/specs/live-voice.spec.ts
index fbc4e58ae3..0d28033f1a 100644
--- a/app/test/playwright/specs/live-voice.spec.ts
+++ b/app/test/playwright/specs/live-voice.spec.ts
@@ -206,7 +206,7 @@ test.describe('Live voice agent', () => {
await expect(page.getByTestId('live-voice-controls')).toHaveAttribute('data-state', 'speaking');
await page.getByTestId('live-voice-end').click();
- await expect.poll(() => core.frames.at(-1)?.type).toBe('stop');
+ await expect.poll(() => core.frames[core.frames.length - 1]?.type).toBe('stop');
await expect(page.getByTestId('live-voice-start')).toBeVisible();
});