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: address E2E review findings
Steven Enamakel6bb338f517ef
diff --git a/app/test/e2e/helpers/element-helpers.ts b/app/test/e2e/helpers/element-helpers.tsindex 2ff91398ec..0575cd9f8d 100644--- a/app/test/e2e/helpers/element-helpers.ts+++ b/app/test/e2e/helpers/element-helpers.ts@@ -517,6 +517,11 @@ export async function clickTestIdWithPointer(timeout: number = 15_000): Promise<ChainablePromiseElement> {const el = await waitForTestId(testId, timeout);+ await browser.execute(+ (element: HTMLElement) => element.scrollIntoView({ block: 'center', behavior: 'instant' }),+ el as unknown as HTMLElement+ );+ await browser.pause(200);const location = await el.getLocation();const size = await el.getSize();try {diff --git a/app/test/e2e/specs/chat-live-history-parity.spec.ts b/app/test/e2e/specs/chat-live-history-parity.spec.tsindex a94315db18..358f8ca058 100644--- a/app/test/e2e/specs/chat-live-history-parity.spec.ts+++ b/app/test/e2e/specs/chat-live-history-parity.spec.ts@@ -102,6 +102,12 @@ async function replyBlocks(): Promise<Block[]> {.map(node => {const slot = node.getAttribute('data-slot');const kind = slot ?? 'text';+ const text =+ kind === 'tool-group-root'+ ? (node.querySelector('[data-slot="tool-group-trigger"]')?.textContent ?? '').trim()+ : kind === 'text'+ ? (node.textContent ?? '').trim()+ : '';const label =slot === 'aui_openhuman-tool-call'? (node.querySelector('button .font-medium')?.textContent ?? '')@@ -110,7 +116,7 @@ async function replyBlocks(): Promise<Block[]> {kind,label,state: node.getAttribute('data-state'),- text: kind === 'text' ? (node.textContent ?? '').trim() : '',+ text,};});})) as Block[];@@ -247,10 +253,10 @@ describe('Chat live/history parity', () => {// Compare the stable current projection. A streaming sample can become// stale when the final assistant message replaces an earlier narration.settled = (await replyBlocks()).map(block => ({ ...block }));- // The activity projection can consolidate adjacent tool rounds into one- // group. Pin the meaningful structure, then compare the complete live and- // reloaded projections below.- expect(settled.some(block => block.kind === 'tool-group-root')).toBe(true);+ // Adjacent rounds share one activity group, whose trigger reports the+ // total number of calls represented in that group.+ expect(settled.filter(block => block.kind === 'tool-group-root')).toHaveLength(1);+ expect(settled.find(block => block.kind === 'tool-group-root')?.text).toContain('2 tool calls');const finalBlock = settled.find(block => block.kind === 'text' && block.text.includes(CANARY_FINAL));diff --git a/app/test/e2e/specs/credential-channels-flow.spec.ts b/app/test/e2e/specs/credential-channels-flow.spec.tsindex 727c3790d4..ad946c5500 100644--- a/app/test/e2e/specs/credential-channels-flow.spec.ts+++ b/app/test/e2e/specs/credential-channels-flow.spec.ts@@ -214,7 +214,7 @@ describe('Credential channels — Yuanbao and Email (IMAP/SMTP)', () => {const credentials =channel === 'email'- ? { ...validCredentials, imap_host: '127.0.0.1', imap_port: '1' }+ ? { ...validCredentials, imap_host: 'imap.e2e.invalid', imap_port: '993' }: { ...validCredentials, api_domain: `http://127.0.0.1:${getMockServerPort()}` };const out = await callOpenhumanRpc('openhuman.channels_connect', {channel,@@ -224,7 +224,9 @@ describe('Credential channels — Yuanbao and Email (IMAP/SMTP)', () => {if (channel === 'email') {expect(out.ok).toBe(false);expect(out.error).toContain('IMAP connection failed');- expect(isConnected(await statusFor(channel))).toBe(false);+ const status = await statusFor(channel);+ expect(isConnected(status)).toBe(false);+ expect(status?.hasCredentials ?? status?.has_credentials).toBe(false);console.log(`${LOG_PREFIX} D.3 email: local IMAP verification rejected`);return;}