diff --git a/app/soapbox/features/verification/steps/__tests__/sms-verification.test.tsx b/app/soapbox/features/verification/steps/__tests__/sms-verification.test.tsx index 65ba19528..26add4f4f 100644 --- a/app/soapbox/features/verification/steps/__tests__/sms-verification.test.tsx +++ b/app/soapbox/features/verification/steps/__tests__/sms-verification.test.tsx @@ -29,7 +29,7 @@ describe('', () => { await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555'); await waitFor(() => { fireEvent.submit( - screen.getByRole('button'), { + screen.getByRole('button', { name: 'Next' }), { preventDefault: () => {}, }, ); @@ -56,7 +56,7 @@ describe('', () => { await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555'); await waitFor(() => { fireEvent.submit( - screen.getByRole('button'), { + screen.getByRole('button', { name: 'Next' }), { preventDefault: () => {}, }, ); @@ -90,7 +90,7 @@ describe('', () => { await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555'); await waitFor(() => { fireEvent.submit( - screen.getByRole('button'), { + screen.getByRole('button', { name: 'Next' }), { preventDefault: () => {}, }, );