[daily-playwright] Add tests for appointment print page - #16716
Draft
github-actions[bot] wants to merge 1 commit into
Draft
[daily-playwright] Add tests for appointment print page#16716github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
- Add 12 comprehensive tests for appointment print page - Test print preview components (patient info, QR code, charges, payments) - Verify print controls and navigation - Test conditional content (notes, tags, token number) - Validate print-optimized layout and styling Route tested: /facility/:facilityId/patient/:patientId/appointments/:appointmentId/print Closes: #16623
Deploying care-preview with
|
| Latest commit: |
590f75b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4da5ea9f.care-preview-a7w.pages.dev |
| Branch Preview URL: | https://daily-playwright-2026-08-19.care-preview-a7w.pages.dev |
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 Playwright E2E tests for the Appointment Print Page, completing the core appointment feature test coverage.
What was tested
Route:
/facility/:facilityId/patient/:patientId/appointments/:appointmentId/printThe appointment print page provides a print-friendly view for healthcare documentation with:
Test cases added (12 tests)
Why this matters
The appointment print page is essential for:
Testing approach
getByRole,getByTextfor accessibilityAppointment feature progress
appointmentsList.spec.ts) - 7 tests ✅appointmentDetail.spec.ts) - 8 tests ✅appointmentPrint.spec.ts) - 12 tests ✅ (NEW)Total appointment tests: 27 tests across 3 pages
How to run these tests
Test Quality Checklist
getByRole,getByText,locatorwith semantic IDs)toBeVisible,toBeEnabled,not.toContain)waitForLoadState)appointmentPrint.spec.tstests/.auth/user.jsongetFacilityId,getPatientId)test.step()for logical groupingRelated