Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(test): update attachment button query to use accessible role

Steven Enamakeld62ee623d88a
diff --git a/app/src/pages/__tests__/Conversations.attachments.test.tsx b/app/src/pages/__tests__/Conversations.attachments.test.tsx
index 3c2699b919..4cb8c94a21 100644
--- a/app/src/pages/__tests__/Conversations.attachments.test.tsx
+++ b/app/src/pages/__tests__/Conversations.attachments.test.tsx
@@ -309,7 +309,7 @@ describe('Conversations — attachment feature', () => {
it('renders the attachment button in the composer', async () => {
await renderWithSelectedThread();
- expect(screen.getByTitle('Attach file')).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'Add Attachment' })).toBeInTheDocument();
});
it('shows attachment chip after selecting a valid image file', async () => {