-
Notifications
You must be signed in to change notification settings - Fork 1
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
OZ-554: E2E tests for handling voided entities when streaming with Analytics #89
Conversation
dd5bc84
to
f4dd61d
Compare
await expect(patientVoidedState).toContainText('false'); | ||
|
||
// replay | ||
await openmrs.deletePatient(); |
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.
This particular test case invokes openmrs.deletePatient()
during the replay thus voiding the patient. This implies that the test will fail if the method is called again in the cleanup function (afterEach()) so the suggested approach is to let each test case invoke the function that voids the patient.
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.
If deletions are actually voids in OpenMRS, I'd rather change openmrs.deletePatient()
to openmrs.voidPatient()
.
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.
Generally LGTM. Save a little comment below.
await expect(patientVoidedState).toContainText('false'); | ||
|
||
// replay | ||
await openmrs.deletePatient(); |
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.
If deletions are actually voids in OpenMRS, I'd rather change openmrs.deletePatient()
to openmrs.voidPatient()
.
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.
This has to change too?
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.
LGTM!
Ticket OZ-554
This PR adds the following E2E tests handling voidable entities when streaming with Analytics.