The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(e2e): type element-helpers candidate array
M3gA-Minded71e97816c4
diff --git a/app/test/e2e/helpers/element-helpers.ts b/app/test/e2e/helpers/element-helpers.tsindex 634e9e1f96..ad3f955b7d 100644--- a/app/test/e2e/helpers/element-helpers.ts+++ b/app/test/e2e/helpers/element-helpers.ts@@ -545,7 +545,12 @@ export async function clickToolGroupTrigger(await browser.waitUntil(async () => {matchingTriggers = [];- for (const candidate of await browser.$$(selector)) {+ // Index rather than iterate: the element array's index signature is typed+ // `ChainablePromiseElement`, its iterator `WebdriverIO.Element` (same objects).+ const candidates = await browser.$$(selector);+ const count = await candidates.length;+ for (let i = 0; i < count; i++) {+ const candidate = candidates[i]!;if ((await candidate.getText()).includes(label)) matchingTriggers.push(candidate);}return matchingTriggers.length > index;