kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix toast test
rodzic
0d6cf4273d
commit
5d0b10a5b8
|
@ -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, {});
|
||||
|
|
Ładowanie…
Reference in New Issue