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(conversations): update attachment tests to use textbox role and input event\n\nReplace the placeholder-based textarea query with a role-based query and switch from the change event to the input event to better simulate real user interaction, ensuring the tests remain reliable as the component's accessibility and event handling evolve.\n\nAuto-committed-on: dragonfly\n
Steven Enamakel51451ce2a57e
diff --git a/app/src/pages/__tests__/Conversations.attachments.test.tsx b/app/src/pages/__tests__/Conversations.attachments.test.tsxindex 34cc71decb..3c2699b919 100644--- a/app/src/pages/__tests__/Conversations.attachments.test.tsx+++ b/app/src/pages/__tests__/Conversations.attachments.test.tsx@@ -260,7 +260,7 @@ async function renderWithSelectedThread() {</Provider>);- const textarea = await screen.findByPlaceholderText('Send a message...');+ const textarea = await screen.findByRole('textbox', { name: 'Message input' });return { store, textarea, thread };}@@ -501,7 +501,8 @@ describe('Conversations — attachment feature', () => {});await act(async () => {- fireEvent.change(textarea, { target: { value: 'describe this' } });+ textarea.textContent = 'describe this';+ fireEvent.input(textarea, { data: 'describe this', inputType: 'insertText' });});await act(async () => {@@ -538,7 +539,8 @@ describe('Conversations — attachment feature', () => {});await act(async () => {- fireEvent.change(textarea, { target: { value: 'read this' } });+ textarea.textContent = 'read this';+ fireEvent.input(textarea, { data: 'read this', inputType: 'insertText' });});await act(async () => {