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
test(e2e): reformat tool call spec helpers
Steven Enamakel575395c7da88
diff --git a/app/test/e2e/specs/chat-multi-tool-round.spec.ts b/app/test/e2e/specs/chat-multi-tool-round.spec.tsindex b0714a64c0..ede58a12e2 100644--- a/app/test/e2e/specs/chat-multi-tool-round.spec.ts+++ b/app/test/e2e/specs/chat-multi-tool-round.spec.ts@@ -59,9 +59,9 @@ const FORCED_RESPONSES = [async function renderedToolCards(): Promise<string[]> {return (await browser.execute(() =>- Array.from(document.querySelectorAll<HTMLElement>('[data-testid="assistant-ui-tool-call"]')).map(- card => card.innerText- )+ Array.from(+ document.querySelectorAll<HTMLElement>('[data-testid="assistant-ui-tool-call"]')+ ).map(card => card.innerText))) as string[];}diff --git a/app/test/e2e/specs/chat-tool-call-flow.spec.ts b/app/test/e2e/specs/chat-tool-call-flow.spec.tsindex 7b98fc981b..b88eb03e0d 100644--- a/app/test/e2e/specs/chat-tool-call-flow.spec.ts+++ b/app/test/e2e/specs/chat-tool-call-flow.spec.ts@@ -45,9 +45,9 @@ const FORCED_RESPONSES = [async function renderedToolCards(): Promise<string[]> {return (await browser.execute(() =>- Array.from(document.querySelectorAll<HTMLElement>('[data-testid="assistant-ui-tool-call"]')).map(- card => card.innerText- )+ Array.from(+ document.querySelectorAll<HTMLElement>('[data-testid="assistant-ui-tool-call"]')+ ).map(card => card.innerText))) as string[];}@@ -101,11 +101,7 @@ describe('Chat tool-call lifecycle', () => {await browser.waitUntil(async () => (await renderedToolCards()).some(card => card.includes('Fetching example.com')),- {- timeout: 45_000,- interval: 100,- timeoutMsg: 'Rendered web_fetch tool card never appeared',- }+ { timeout: 45_000, interval: 100, timeoutMsg: 'Rendered web_fetch tool card never appeared' });expect(await textExists('Fetching example.com')).toBe(true);});