Merge branch 'fix-toast-test' into 'develop'
Fix toast test See merge request soapbox-pub/soapbox!2153
This commit is contained in:
commit
7607daf371
1 changed files with 4 additions and 1 deletions
|
@ -75,7 +75,10 @@ describe('<Registration />', () => {
|
|||
fireEvent.submit(screen.getByTestId('button'), { preventDefault: () => {} });
|
||||
});
|
||||
|
||||
expect(screen.getByTestId('toast')).toHaveTextContent(/this username is unavailable/i);
|
||||
await waitFor(() => {
|
||||
expect(screen.getByTestId('toast')).toHaveTextContent(/this username is unavailable/i);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
it('handles generic errors', async() => {
|
||||
|
|
Loading…
Reference in a new issue