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): replace raw DOM click with helper in chat-todos-goals spec
Steven Enamakeldd65044ad341
diff --git a/app/test/e2e/specs/chat-todos-goals.spec.ts b/app/test/e2e/specs/chat-todos-goals.spec.tsindex 9297328daf..859dad6d36 100644--- a/app/test/e2e/specs/chat-todos-goals.spec.ts+++ b/app/test/e2e/specs/chat-todos-goals.spec.ts@@ -31,7 +31,7 @@ import {typeIntoComposer,waitForSocketConnected,} from '../helpers/chat-harness';-import { textExists, waitForTestId } from '../helpers/element-helpers';+import { clickTestId, textExists, waitForTestId } from '../helpers/element-helpers';import { resetApp } from '../helpers/reset-app';import { navigateViaHash } from '../helpers/shared-flows';import { setMockBehavior, startMockServer, stopMockServer } from '../mock-server';@@ -259,13 +259,7 @@ describe('Chat todos and goals', () => {expect(await readGoal()).toBeNull();// Back to the first thread: both rehydrate from the persisted turn state.- const reselected = await browser.execute((tid: string) => {- const rows = Array.from(document.querySelectorAll('[data-thread-id]'));- const row = rows.find(r => r.getAttribute('data-thread-id') === tid) as HTMLElement | null;- row?.click();- return Boolean(row);- }, threadId);- expect(reselected).toBe(true);+ await clickTestId(`thread-row-${threadId}`, 15_000);await browser.waitUntil(async () => (await getSelectedThreadId()) === threadId, {timeout: 8_000,timeoutMsg: 'never switched back to the first thread',