From 985998e757e77fb5fc5c995f12ad520c52941084 Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 27 Nov 2026 21:22:25 +0100 Subject: [PATCH] test(login): submit the app sign-in form with its required fields filled --- client/src/pages/login/AppLogin.test.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/pages/login/AppLogin.test.tsx b/client/src/pages/login/AppLogin.test.tsx index 3f10469bb..46d90b2e4 100644 --- a/client/src/pages/login/AppLogin.test.tsx +++ b/client/src/pages/login/AppLogin.test.tsx @@ -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(); expect(screen.getByRole('heading', { name: 'Sign In' })).toBeInTheDocument();