Skip to content

test: expand coverage for dashboard, quick search, and medical workflows

Vaishnavi Prabhala requested to merge testcasess/vaish into develop

What does this MR do and why?

test: expand coverage for dashboard, quick search, and medical workflows

Refactored DashboardPage UI conflicts, restored Dashboard and QuickSearch test suites, added tests for AssignDoctor and VerifyMedicines, and resolved TS mock errors. Dashboard coverage increased to 64.28%.

This MR expands the frontend unit test suite and resolves critical technical debt in the DashboardPage .

Unit Test Expansion: Implemented a brand new test suite for QuickSearchPage and expanded DashboardPage.test.tsx to cover role-specific rendering for Admin, Volunteer, and Doctor roles. Deduplication of Code: Removed approximately 117 lines of redundant JSX in DashboardPage.tsx that were causing "Found multiple elements" failures in tests. This included duplicate Doctor tabs, duplicate action cards, and repeated volunteer buttons. Bug Fixes: Corrected JSX syntax errors and resolved translation string mismatches (e.g., ensuring "Administrator" matches the actual locale keys).

References

Screenshots or screen recordings

Screenshot_from_2026-03-13_13-34-35

Before After

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading