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
(test) O3-2428: E2E test for appointment scheduling #1062
Conversation
You need to switch from the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Vijaykv5 ,
Could you please address this as well? openmrs/openmrs-esm-patient-chart#1664 (comment)
@Vijaykv5 could you address the pending reviews and we get this PR merged? |
@jayasanka-sack had a discussion with @denniskigen on this PR during coffee break and why it's failing. |
So do we need to split up the this into three tests? |
Let me skim through the code.... |
await test.step('And I change the date to Today', async () => { | ||
const today = new Date(); | ||
today.setDate(today.getDate()); | ||
await page.fill('input[placeholder="dd/mm/yyyy"]', today.toLocaleDateString('en-GB')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as @denniskigen mentioned, this action changes the appointment date from what was set before (Tomorrow) to Today and thus requires in the preceding actions to switch the test to click on Today's tab before clicking the options menu...
@Vijaykv5 please fix the failing build and also address the pending review at #1062 (review) |
@kdaud could you help me with solving this error in E2E tests? |
Are you able to reproduce the issue? |
Actually nope! it's just the error in github cli But now when saperating each actions, how can we get same patient uuid, so that the add,edit and delete can happen with a single patient. |
While creating appointment locally as well as in dev3, there is no data under Screen.Recording.2024-03-31.at.10.51.37.PM.mov |
@Vijaykv5 are you able to reproduce the issue on a local instance? |
I'll take a look when the dev3 is back. |
@Vijaykv5 in reference to this comment, refer to the desired approach: https://openmrs.atlassian.net/browse/O3-3064?focusedCommentId=140494 |
Any updates on this, @Vijaykv5? |
@denniskigen So I've made all May you can review this. Thanks! |
fc0c9e0
to
5f04f04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @Vijaykv5! I've commented out one test case related to locations failing to load in the test environment. It'd be great if this could be sorted out when working on separating out the test cases into independent steps.
Requirements
Summary
This PR covers E2E test to test the appointment workflow.
The test involves adding an appointment for a patient, edit the added appointment, and cancel it.
Screenshots
appointments-test.mov
Related Issue
O3-2428
O3-2891