Skip to content

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

feat(e2e): add element helper utilities for e2e tests

Steven Enamakel45be44afabb4
diff --git a/app/test/e2e/helpers/element-helpers.ts b/app/test/e2e/helpers/element-helpers.ts
index 38fe970ac3..6dd99e4e29 100644
--- a/app/test/e2e/helpers/element-helpers.ts
+++ b/app/test/e2e/helpers/element-helpers.ts
@@ -432,7 +432,9 @@ export async function waitForDecodedAudioAtIndex(
await browser.execute((audioIndex: number) => {
const audio = (window as Window & { __E2E_AUDIO_ELEMENTS?: HTMLAudioElement[] })
.__E2E_AUDIO_ELEMENTS?.[audioIndex];
- return Boolean(audio && audio.readyState >= 2 && Number.isFinite(audio.duration) && audio.duration > 0);
+ return Boolean(
+ audio && audio.readyState >= 2 && Number.isFinite(audio.duration) && audio.duration > 0
+ );
}, index),
{ timeout, timeoutMsg: `Audio ${index} did not decode before ${timeout}ms` }
);