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
RATEST-192: Implement the Clinical Visit workflow #72
Conversation
e1894d4
to
7162f50
Compare
# Scenario: The Attachments page should function properly | ||
# When the user clicks on the "Attachments" menu | ||
# Then the attachments list should be empty | ||
# When the user adds an attachment | ||
# Then the added attachment should be listed |
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.
The attachment page won't get loaded in cypress. (Tested with both chrome and electron)
Will create an issue for this.
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.
We main need to add a waiter instance to wait for the page to load. Some pages takes longer to load!
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 seems a bug. It never loads (only the attachment chart. the rest of the items in the attachment page loadfine).
Reported here:
https://issues.openmrs.org/browse/MF-728
# Scenario: The Encounters page should function properly | ||
# When the user clicks on the "Encounters" menu | ||
# Then the notes list should be empty | ||
# When the user adds a note |
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.
It throws 500 when running it with Cypress. (Tested with both chrome and electron)
Works fine when accessing with a normal browser.
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.
It throws 500 when running it with Cypress. (Tested with both chrome and electron)
Share the logs here via pastebin.com
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.
Reported here:
https://issues.openmrs.org/browse/MF-727
7162f50
to
a5a3aa8
Compare
cypress/integration/cucumber/step_definitions/refapp-3.x/04-visit/visit.js
Outdated
Show resolved
Hide resolved
46a4953
to
cb6010e
Compare
Hi @jayasanka-sack , should I review this now, or wait until it's out of draft? |
Hi @brandones, It's ready to be merged. Other scenarios cannot be completed because there are several bugs. I reported them here: May I keep the commented steps on the feature file or remove them? |
For future follow implementation of the respective user stories, keeping the steps commented overrides removing them! |
cypress/integration/cucumber/step_definitions/refapp-3.x/04-clinical-visit/clinical-visit.js
Outdated
Show resolved
Hide resolved
src/test/resources/features/refapp-3.x/04-clinical-visit/clinical-visit.feature
Outdated
Show resolved
Hide resolved
cypress/integration/cucumber/step_definitions/refapp-3.x/04-clinical-visit/clinical-visit.js
Outdated
Show resolved
Hide resolved
body: { | ||
patient: patientUuid, | ||
startDatetime: new Date().toISOString(), | ||
visitType: "7b0f5697-27e3-40c4-8bae-f4049abfb4ed", |
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.
What's this visit type? Could you add the name in an inline comment?
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.
A handful of very minor fixes, but generally looks great!
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.
Good work, thanks @jayasanka-sack !
Thanks @brandones, btw, we need to fix the pation deletion issue. (only on this workflow) Otherwise, it will continue to create "John Doe"s |
Yes, that would be great! Is there a ticket for that? Are you working on it? |
* RATEST-192: Implement the Clinical Visit workflow * Rename 'visit' with 'clinical-visit' * Fix formatting issues * Add minor fixes Co-authored-by: Brandon Istenes <bistenes@gmail.com>
Purpose
The purpose of this PR is to fix: https://issues.openmrs.org/projects/RATEST/issues/RATEST-192
Goals
To give users confidence that the Clinical visit workflow of the RefApp 3.x is working as expected.
Approach
Workflow Case
https://docs.google.com/document/d/1fvq0DH3NJSCxThe1jYlv3TqbvgW7OO3QswYQcocbHiM/edit#heading=h.xwhmkk9rj7rs