From a8e437a1c3cdd3da1553cae5f215b38dcbb0fd33 Mon Sep 17 00:00:00 2001 From: mrmoney10010-design Date: Mon, 17 Aug 2026 07:30:22 -0500 Subject: [PATCH] fix(a11y): label batch send recipient inputs --- src/components/BatchSend/BatchForm.test.tsx | 11 +++++++++++ src/components/BatchSend/BatchForm.tsx | 3 +++ 2 files changed, 14 insertions(+) diff --git a/src/components/BatchSend/BatchForm.test.tsx b/src/components/BatchSend/BatchForm.test.tsx index a95934f..026e8e3 100644 --- a/src/components/BatchSend/BatchForm.test.tsx +++ b/src/components/BatchSend/BatchForm.test.tsx @@ -54,4 +54,15 @@ describe('BatchForm', () => { await waitFor(() => expect(onSubmit).toHaveBeenCalledTimes(1)) expect(onSubmit.mock.calls[0][0].recipients).toHaveLength(2) }) + it('renders accessible names for recipient inputs', () => { + render() + + fireEvent.click(screen.getByRole('button', { name: /add recipient/i })) + + expect(screen.getByRole('textbox', { name: /recipient 1 address/i })).toBeInTheDocument() + expect(screen.getByRole('spinbutton', { name: /recipient 1 amount/i })).toBeInTheDocument() + + expect(screen.getByRole('textbox', { name: /recipient 2 address/i })).toBeInTheDocument() + expect(screen.getByRole('spinbutton', { name: /recipient 2 amount/i })).toBeInTheDocument() + }) }) diff --git a/src/components/BatchSend/BatchForm.tsx b/src/components/BatchSend/BatchForm.tsx index 02a184a..4570f65 100644 --- a/src/components/BatchSend/BatchForm.tsx +++ b/src/components/BatchSend/BatchForm.tsx @@ -88,12 +88,15 @@ export function BatchForm({ >
+