Open sidpg123 opened 2 days ago
This pull request introduces a new Cypress end-to-end test suite in PatientVolunteer.cy.ts
for assigning volunteers to patients. It includes the creation of a PatientDetailsPage
class with methods for assigning and unassigning volunteers, and verifying the UI updates accordingly. Additionally, the PatientHome
component is modified to include an id
for the assigned volunteer's name, enhancing accessibility for testing purposes.
File Path | Change Summary |
---|---|
cypress/e2e/patient_spec/PatientVolunteer.cy.ts |
Added a new test suite for assigning and unassigning volunteers to patients. |
cypress/pageobject/Patient/PatientDetails.ts |
Introduced PatientDetailsPage class with methods for volunteer assignment and verification. |
src/components/Patient/PatientHome.tsx |
Added an id attribute to the paragraph displaying the assigned volunteer's name for accessibility. |
Objective | Addressed | Explanation |
---|---|---|
Add a cypress test to assign a volunteer to a patient (#8913) | ✅ | |
Ensure the newly added volunteer's name is displayed as a banner (#8913) | ✅ | |
Replace the existing volunteer with a new one and verify the banner (#8913) | ✅ | |
Verify that the banner is no longer displayed when the volunteer is removed (#8913) | ✅ |
PatientHome
component, relevant for displaying the assigned volunteer's name.PatientInvestigation.cy.ts
, connected to patient-related actions in Cypress tests.tested
, good to merge
, needs review
In the land of patients, volunteers roam,
Assigning their names, making care feel like home.
With banners that flutter, and tests that ensure,
Each change brings us closer, to making care pure! 🐇✨
[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.
🔧 eslint
> If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration. warning eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options. warning eslint > @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead warning eslint > @humanwhocodes/config-array > @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead warning eslint > file-entry-cache > flat-cache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported warning eslint > file-entry-cache > flat-cache > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported warning eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning vite-plugin-pwa > workbox-build > glob@7.2.3: Glob versions prior to v9 are no longer supported warning vite-plugin-pwa > workbox-build > @rollup/plugin-replace > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead error Couldn't find package "mini-svg-data-uri@^1.2.3" required by "@tailwindcss/forms@^0.5.9" on the "npm" registry.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | 48cb8d9f2bc80fb790e382e27f9f85297c72f1d8 |
Latest deploy log | https://app.netlify.com/sites/care-ohc/deploys/673dbfe75e36b800089377ec |
Deploy Preview | https://deploy-preview-9167--care-ohc.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
New Features
Tests