care_fe
care_fe copied to clipboard
Create a cypress test to request a Sample Test and verify its reflection
Description
Add a new cypress test for request a sample test and verify its reflection
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 SampleRequest.cy.ts under the sample_test_spec folder.
Steps to Assign a Sample Request
- Go to the patient tab
- click on any live patient card
- On the patient consultation page, click on patient details
- click on request sample request
- submit the form.
Make sure to verify the below things
- Ensure the normal workflow is functional.
- Edit the request form and verify the modification are reflected properly
- Verify its visible in sample test dashboard as well as in the patient details page