sforkowany z mirror/soapbox
Merge branch 'fix-toast-test' into 'develop'
Fix toast test See merge request soapbox-pub/soapbox!2153revert-polyfills
commit
7607daf371
|
@ -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() => {
|
||||
|
|
Ładowanie…
Reference in New Issue