Skip to content
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

Merged
merged 5 commits into from Aug 23, 2021

Conversation

jayasanka-sack
Copy link
Member

@jayasanka-sack jayasanka-sack commented Aug 16, 2021

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

  • Implement the steps for the clinical visit workflow
  • Implement commands to
    • Generate an identifier
    • Start a visit

Workflow Case

https://docs.google.com/document/d/1fvq0DH3NJSCxThe1jYlv3TqbvgW7OO3QswYQcocbHiM/edit#heading=h.xwhmkk9rj7rs

@jayasanka-sack jayasanka-sack force-pushed the RATEST-192 branch 3 times, most recently from e1894d4 to 7162f50 Compare August 16, 2021 10:58
Comment on lines 39 to 43
# 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
Copy link
Member Author

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.

Copy link
Member

@kdaud kdaud Aug 16, 2021

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!

Copy link
Member Author

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
Copy link
Member Author

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.

Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jayasanka-sack jayasanka-sack marked this pull request as draft August 16, 2021 11:19
@brandones
Copy link
Contributor

Hi @jayasanka-sack , should I review this now, or wait until it's out of draft?

@jayasanka-sack
Copy link
Member Author

jayasanka-sack commented Aug 18, 2021

Hi @brandones,

It's ready to be merged. Other scenarios cannot be completed because there are several bugs.

I reported them here:
https://issues.openmrs.org/browse/MF-724
https://issues.openmrs.org/browse/MF-725
https://issues.openmrs.org/browse/MF-726
https://issues.openmrs.org/browse/MF-727
https://issues.openmrs.org/browse/MF-728

May I keep the commented steps on the feature file or remove them?

@jayasanka-sack jayasanka-sack marked this pull request as ready for review August 18, 2021 06:16
@kdaud
Copy link
Member

kdaud commented Aug 18, 2021

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!

body: {
patient: patientUuid,
startDatetime: new Date().toISOString(),
visitType: "7b0f5697-27e3-40c4-8bae-f4049abfb4ed",
Copy link
Contributor

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?

Copy link
Contributor

@brandones brandones left a 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!

Copy link
Contributor

@brandones brandones left a 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 !

@brandones brandones merged commit ae9303e into openmrs:master Aug 23, 2021
@jayasanka-sack
Copy link
Member Author

jayasanka-sack commented Aug 23, 2021

Thanks @brandones, btw, we need to fix the pation deletion issue. (only on this workflow) Otherwise, it will continue to create "John Doe"s

@brandones
Copy link
Contributor

Yes, that would be great! Is there a ticket for that? Are you working on it?

kdaud pushed a commit to kdaud/openmrs-contrib-qaframework that referenced this pull request Aug 24, 2021
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants