care_fe
care_fe copied to clipboard
Add a new cypress test for shifting request
Description
Add a new cypress test for new shifting requests for a patient
General Note
Follow the Page Object Model (POM) approach. : reference Refer to commands.ts in the Cypress folder to understand existing reusable components. Use proper function names for easier code review. Since there's nothing related to shifting requests is currently present, create a new file named ShiftingRequest.cy.ts under the shifting_spec folder.
Steps to Assign a Shifting Request
- Go to the patient tab
- click on any live patient card
- On the patient consultation page, click on manage patients
- from the dropdown, select shift patient
- submit the shifting form and verify the card is present in the shifting board
Make sure to verify the below things
Ensure the normal workflow is functional. Edit the request form and verify the modification are reflected properly