Fix toast test

environments/review-develop-3zknud/deployments/2255^2
Alex Gleason 2 years ago
parent 0d6cf4273d
commit 5d0b10a5b8
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -75,9 +75,12 @@ describe('<Registration />', () => {
fireEvent.submit(screen.getByTestId('button'), { preventDefault: () => {} });
});
await waitFor(() => {
expect(screen.getByTestId('toast')).toHaveTextContent(/this username is unavailable/i);
});
});
it('handles generic errors', async() => {
__stub(mock => {
mock.onPost('/api/v1/pepe/accounts').reply(500, {});

Loading…
Cancel
Save