Test/pages unit vitest
This Merge Request introduces unit test coverage for frontend pages in the src/pages directory using Vitest. The objective is to improve frontend stability, validate page-level behavior, and reduce the risk of regressions during future changes.
This MR focuses exclusively on route-level frontend pages.
Included:
Unit tests for major frontend pages
Validation of page rendering and navigation
Coverage for form submissions and user interactions
Verification of validation errors and success/failure UI states
Not included:
Reusable component unit tests
Backend or API integration testing
End-to-end (E2E) testing
LoginPage.tsx
DashboardPage.tsx
PublicQueuePage.tsx
VolunteerRegisterPage.tsx
ManageDoctorsPage.tsx
AssignRolesPage.tsx
ManageMedicalCampsPage.tsx
ManageMedicinesPage.tsx
PatientProfilePage.tsx
StaffAttendancePage.tsx
QueueManagementPage.tsx
AssignDoctorPage.tsx
ConsultationCompletedPage.tsx
ConsultationQueuePage.tsx
CounselingPage.tsx
PatientRegistrationPage.tsx
PatientStatus.tsx
RecordVitalsPage.tsx
UpdatePrescriptionPage.tsx
VerifyMedicinesPage.tsx
Unit tests cover the following scenarios:
Page rendering
User interactions
Form submission flows
Client-side validation errors
Success and failure UI states