mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 23:27:31 +00:00
test(login): submit the app sign-in form with its required fields filled
This commit is contained in:
@@ -95,7 +95,8 @@ describe('AppLogin', () => {
|
||||
});
|
||||
|
||||
it('FE-LOGIN-APP-002: signs in with email and password, with the fields password managers fill', () => {
|
||||
const login = buildLogin();
|
||||
// Filled, as the hook would hold them: the form refuses to submit with its required fields empty.
|
||||
const login = buildLogin({ email: 'old@example.com', password: 'old' });
|
||||
render(<AppLogin login={login} />);
|
||||
|
||||
expect(screen.getByRole('heading', { name: 'Sign In' })).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user