Add E2E tests for Appointments page - #16682
Draft
github-actions[bot] wants to merge 1 commit into
Draft
Conversation
- Add comprehensive test coverage for appointments listing page - Test view switching (Board/List), filtering, and navigation - Validate empty state handling and URL persistence - Follows Playwright best practices with role-based selectors Closes #16623 (partial - appointments page coverage)
Deploying care-preview with
|
| Latest commit: |
119abcf
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://67a3122f.care-preview-a7w.pages.dev |
| Branch Preview URL: | https://develop-eaeb55300daff61c.care-preview-a7w.pages.dev |
This was referenced Aug 14, 2026
This was referenced Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive E2E test coverage for the Appointments page (
/facility/:facilityId/appointments), which previously had zero test coverage despite being a critical clinical workflow interface.What's Changed
New Test File:
tests/appointments/appointmentsPage.spec.tsTest Coverage (7 test cases):
Why This Matters
The appointments page is used daily by clinical staff to:
This foundational test coverage ensures the page continues to function correctly as the codebase evolves.
Testing Approach
getByRole,getByLabel) per Playwright best practicestests/PLAYWRIGHT_GUIDE.mdHow to Run
Related Issue
Tracking issue: #16623 - [daily-playwright] Playwright Test Coverage Tracker
Next Steps
This PR establishes the foundation for appointments testing. Future improvements could include:
Test Quality Checklist
getByRole,getByLabel,getByText)(feature).spec.ts