test(login): submit the app sign-in form with its required fields filled

This commit is contained in:
Maurice
2026-11-27 21:22:25 +01:00
parent 742c0dd72d
commit 985998e757
+2 -1
View File
@@ -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();