-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new cypress test for shifting request #8914
Comments
@nihal467 Can I work on this? Please assign it me. |
Hey @nihal467, I have started working on the issue, and I have written the test as below (I am attaching an image of the code I have written so far, which performs the following): 1: Creating a New Shift Request
2:Verifying Shift Request Creation
I have also attached a video of this test performing successfully. I know this isn’t perfect, but it is a starting point. Without knowing exactly what you expect, I wouldn't know what to modify. Could you let me know if there are any improvements or changes you'd like me to make? One thing to mention is that I have hardcoded "Dummy Patient 16". Should I replace that by creating a new patient dynamically for the test, or is it fine to reference an existing one? Your thoughts on this would help guide the next steps. Screencast.from.25-10-24.02.59.58.PM.IST.webm |
|
Hey @nihal467 , i understand the corrections that you suggested , sorry for the inconvinience . Here are the screenshots of the modified test file and some functions that i have added . It seems pretty modular now , still let me know if anything can be improved i am confused about the third point that you added
which way should i write test for ? Thank you for your quick attention ! |
Hey @Ayush1404 are you working on this issue? |
@JavidSumra yes, i am working on the issue infact work is almost done , i am waiting for reply for which way of editing the shifting request is to be co sidered for the test |
|
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
Make sure to verify the below things
Ensure the normal workflow is functional.
Edit the request form and verify the modification are reflected properly
The text was updated successfully, but these errors were encountered: