Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

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

Maurice985998e757e7
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: '[email protected]', password: 'old' });
render(<AppLogin login={login} />);
expect(screen.getByRole('heading', { name: 'Sign In' })).toBeInTheDocument();