Fix SmsVerification test

This commit is contained in:
Alex Gleason 2022-07-13 19:34:29 -05:00
parent 6f2ba29f81
commit efad8e0e67
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -29,7 +29,7 @@ describe('<SmsVerification />', () => {
await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555'); await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555');
await waitFor(() => { await waitFor(() => {
fireEvent.submit( fireEvent.submit(
screen.getByRole('button'), { screen.getByRole('button', { name: 'Next' }), {
preventDefault: () => {}, preventDefault: () => {},
}, },
); );
@ -56,7 +56,7 @@ describe('<SmsVerification />', () => {
await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555'); await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555');
await waitFor(() => { await waitFor(() => {
fireEvent.submit( fireEvent.submit(
screen.getByRole('button'), { screen.getByRole('button', { name: 'Next' }), {
preventDefault: () => {}, preventDefault: () => {},
}, },
); );
@ -90,7 +90,7 @@ describe('<SmsVerification />', () => {
await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555'); await userEvent.type(screen.getByLabelText('Phone Number'), '+1 (555) 555-5555');
await waitFor(() => { await waitFor(() => {
fireEvent.submit( fireEvent.submit(
screen.getByRole('button'), { screen.getByRole('button', { name: 'Next' }), {
preventDefault: () => {}, preventDefault: () => {},
}, },
); );