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): keep diagnostics and ES2020-compatible thread checks
Steven Enamakel502c50111c1e
diff --git a/app/test/e2e/specs/chat-harness-scroll-render.spec.ts b/app/test/e2e/specs/chat-harness-scroll-render.spec.tsindex 1a64c1b6a3..5b81849835 100644--- a/app/test/e2e/specs/chat-harness-scroll-render.spec.ts+++ b/app/test/e2e/specs/chat-harness-scroll-render.spec.ts@@ -169,10 +169,37 @@ describe('Chat harness — scroll + markdown render', () => {timeout: 40_000,timeoutMsg: 'bold canary never landed',});- await browser.waitUntil(async () => await textExists(CANARY_CODE), {- timeout: 20_000,- timeoutMsg: 'code canary never landed',- });+ try {+ await browser.waitUntil(async () => await textExists(CANARY_CODE), {+ timeout: 20_000,+ timeoutMsg: 'code canary never landed',+ });+ } catch (error) {+ console.log(+ '[indented-code-state]',+ await browser.execute(canary => {+ const state = (+ window as unknown as {+ __OPENHUMAN_STORE__?: {+ getState: () => {+ thread?: { messages?: { content: string }[] };+ chatRuntime?: { streamingAssistantByThread?: Record<string, unknown> };+ };+ };+ }+ ).__OPENHUMAN_STORE__?.getState();+ return {+ storedCanary:+ state?.thread?.messages?.some(message => message.content.includes(canary)) ?? false,+ streamingCanary: JSON.stringify(+ state?.chatRuntime?.streamingAssistantByThread ?? {}+ ).includes(canary),+ codeText: document.querySelector('pre code')?.textContent ?? null,+ };+ }, CANARY_CODE)+ );+ throw error;+ }// ── 2. Markdown renders to the expected DOM tags ───────────────let tags = { hasBold: false, hasCode: false, hasLink: false };diff --git a/app/test/playwright/specs/chat-management-functional.spec.ts b/app/test/playwright/specs/chat-management-functional.spec.tsindex 3c456e96b9..670fad539f 100644--- a/app/test/playwright/specs/chat-management-functional.spec.ts+++ b/app/test/playwright/specs/chat-management-functional.spec.ts@@ -90,7 +90,7 @@ async function startFreshConversation(page: Page): Promise<void> {return (thread?.selectedThreadId === threadId &&thread.isLoadingMessages === false &&- Object.hasOwn(thread.messagesByThreadId ?? {}, threadId)+ Object.prototype.hasOwnProperty.call(thread.messagesByThreadId ?? {}, threadId));}, previousId))