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): support lexical composer selection\n\n
Steven Enamakel911002706714
diff --git a/app/test/e2e/helpers/chat-harness.ts b/app/test/e2e/helpers/chat-harness.tsindex d983c54e0f..05f9d02e06 100644--- a/app/test/e2e/helpers/chat-harness.ts+++ b/app/test/e2e/helpers/chat-harness.ts@@ -95,10 +95,18 @@ export async function typeIntoComposer(text: string): Promise<void> {// Focus via JS — avoids the coordinate-based click that gets intercepted// by AppUpdatePrompt. Select any partial value before deleting it.const focused = await browser.execute((sel: string) => {- const el = document.querySelector(sel) as HTMLTextAreaElement | null;+ const el = document.querySelector(sel) as HTMLTextAreaElement | HTMLElement | null;if (!el) return false;el.focus();- el.select();+ if (el instanceof HTMLTextAreaElement) {+ el.select();+ } else {+ const range = document.createRange();+ range.selectNodeContents(el);+ const selection = window.getSelection();+ selection?.removeAllRanges();+ selection?.addRange(range);+ }return true;}, COMPOSER_SELECTOR);if (!focused) continue;