write test cases for login page
What does this MR do and why?
This MR adds unit and integration test cases for the Login Page.
The test cases cover:
Rendering of login form elements (email, password, button)
Validation error messages
Successful form submission
API call handling
Invalid login scenario handling
These tests improve code reliability, ensure expected behavior, and prevent regressions in future changes.
References
Login Page implementation
Authentication flow updates
Screenshots or screen recordings
Not applicable – this MR contains only test case additions (no UI changes).
Before After No test coverage for Login Page Login Page covered with unit & integration tests How to set up and validate locally
Switch to the branch:
git switch test-case-pages
Install dependencies:
npm install
Run test cases:
npm test
Ensure all Login Page tests pass successfully.
MR acceptance checklist