unit test pages for frontendpages
This task focuses on implementing unit tests for key frontend pages to ensure application reliability, correctness, and stability. The goal is to validate that each page renders properly, handles user interactions correctly, and functions as expected under different scenarios.
Pages Covered:
ConsultationCompletedPage – Tests verify completed consultation data display and UI rendering.
ConsultationQueuePage – Ensures patient queue list and doctor assignment components work correctly.
CounselingPage – Validates counseling form rendering, input handling, and submission logic.
PatientRegistrationPage – Tests patient registration form fields, validation, and submission flow.
Key Objectives:
Ensure components render without errors.
Validate UI elements and text content.
Test user interactions like form inputs and button clicks.
Improve code quality and prevent future regressions.
Integrate tests with Vitest and React Testing Library for automated frontend testing.