Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
81cc16c
tests: part way through 1st scenario
Aug 4, 2026
abf80e0
tests: verifies morbidity report count increased by 1
Aug 4, 2026
8c01593
tests: abstract out report type count verification and finish investi…
Aug 5, 2026
d903572
Merge branch 'main' of https://github.com/CDCgov/NEDSS-Modernization …
Aug 5, 2026
eeff57a
tests: cancel creation of new morbidity report scenario
Aug 5, 2026
c7cc5a7
tests: clear jurisdiction as select empty string
Aug 5, 2026
4afa93a
tests: part way through edit existing morbidity report
Aug 5, 2026
2328797
tests: edit existing morbidity report scenario
Aug 5, 2026
c435b18
chore: use saved event ID for verification
Aug 5, 2026
dd09058
tests: create investigation from morbidity report, clean up eventsTab…
Aug 5, 2026
c87753b
tests: start associate investigation test
Aug 6, 2026
0c87bb6
Merge branch 'main' of https://github.com/CDCgov/NEDSS-Modernization …
Aug 6, 2026
1c83388
tests: finished associate investigation from morb report
Aug 6, 2026
502bb5f
tests: mark morb report as reviewed
Aug 6, 2026
0725610
tests: delete morbidity report
Aug 6, 2026
26b8786
Merge branch 'main' into kc/APP-188-Patient-File-Morbidity-Report-Man…
krista-skylight Aug 7, 2026
31cccab
tests: click unassociated morbidity report
Aug 7, 2026
8e7972e
Merge branch 'main' of https://github.com/CDCgov/NEDSS-Modernization …
Aug 7, 2026
9eb31f6
Merge branch 'kc/APP-188-Patient-File-Morbidity-Report-Management' of…
Aug 7, 2026
51ad89a
tests: deal with drr being invisible
Aug 7, 2026
7bbb5a5
tests: check both investigation and morb report count
Aug 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
Feature: Patient File - Event Management - Morbidity Report

Background:
Given I am logged in as secure user
And the user navigate to the patient profile page for "63000"
And Click Events tab on Patient Profile Page

Scenario: Add new morbidity report without investigation
When I check the current count of "Morbidity reports" in the Events tab
And user clicks on the "Add morbidity report" button within the Events tab
And I select "Botulism, foodborne" from the Condition dropdown menu
And I select "Cobb County" from the Jurisdiction dropdown menu
And I enter the current date in the Date of Morbidity Report field
And I enter "2" in the Facility and Provider Information field
And I click on the Code Lookup button
And I select "No" from the Pregnant dropdown menu
And I click the Submit button
And Click Events tab on Patient Profile Page
Then the "Morbidity reports" count should increase by 1 in the Events tab

Scenario: Add new morbidity report and create investigation
When I check the current count of "Investigations" in the Events tab
And I check the current count of "Morbidity reports" in the Events tab
And user clicks on the "Add morbidity report" button within the Events tab
And I select "Botulism, foodborne" from the Condition dropdown menu
And I select "Cobb County" from the Jurisdiction dropdown menu
And I enter the current date in the Date of Morbidity Report field
And I enter "2" in the Facility and Provider Information field
And I click on the Code Lookup button
And I select "No" from the Pregnant dropdown menu
And I click the Submit and Create Investigation button
And I click the Submit button

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(sugg, nb): should we check anything about the investigation page? (is that where we are?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, we are at the patient profile page where it shows a count of how many investigations there are. I didn't think there was anything we need to check about the investigation page, but lmk if you have ideas!

And user clicks the "View File" link, the user is returned to Patient profile summary page
And Click Events tab on Patient Profile Page
Then the "Investigations" count should increase by 1 in the Events tab

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(q, nb): should the morbidity report count also increase by 1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It wasn't part of the written scenario but I could definitely add it as an extra check

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added here!

And the "Morbidity reports" count should increase by 1 in the Events tab

Scenario: Cancel creation of a new morbidity report
When I check the current count of "Morbidity reports" in the Events tab
And user clicks on the "Add morbidity report" button within the Events tab
And I select "Botulism, foodborne" from the Condition dropdown menu
And I click the Cancel button on the Morbidity Report page
And I confirm the submission by clicking "Ok"
And I click the Cancel button on the Morbidity Report page
Then the "Morbidity reports" count should remain the same in the Events tab

Scenario: Edit existing morbidity report
When I count the number of treatments in the first morbidity report
And I click on the first morbidity report link in the Events tab and store its Event ID
And I click the Edit button on the Morbidity Report page
And I enter the current date in the Treatment Date field
And I select "Acyclovir, 800 mg, PO, BID, x 5 days" from the Treatment dropdown menu
And I click the Add Treatment button
And I click the Submit button
And user clicks the "View File" link, the user is returned to Patient profile summary page
And Click Events tab on Patient Profile Page
Then the treatment count should increase by 1 in the stored morbidity report

Scenario: Print morbidity report
When I click on the first morbidity report link in the Events tab and store its Event ID
Then clicking the Print button should display the print preview

Scenario: Transfer ownership of morbidity report
When I click on the first morbidity report link in the Events tab and store its Event ID
And I click the Transfer Ownership button on the Morbidity Report page
And I select "Gwinnett County" from the Jurisdiction dropdown menu
And I click the Submit button
And user clicks the "View File" link, the user is returned to Patient profile summary page
Then the saved morbidity report should have jurisdiction "Gwinnett County"

Scenario: Create investigation from morbidity report
When I click on the first unassociated morbidity report link in the Events tab and store its Event ID
And I click the Create Investigation button on the Morbidity Report page
And I click the Submit button
And user clicks the "View File" link, the user is returned to Patient profile summary page
And Click Events tab on Patient Profile Page
Then the saved morbidity report should be associated with an investigation

Scenario: Associate investigation from morbidity report
When user clicks on the "Add morbidity report" button within the Events tab
And I select "Botulism, foodborne" from the Condition dropdown menu
And I select "Cobb County" from the Jurisdiction dropdown menu
And I enter the current date in the Date of Morbidity Report field
And I enter "2" in the Facility and Provider Information field
And I click on the Code Lookup button
And I select "No" from the Pregnant dropdown menu
And I click the Submit button
And Click Events tab on Patient Profile Page
And I click on the first morbidity report link in the Events tab and store its Event ID
And I click the Associate Investigation button on the Morbidity Report page
And I check an investigation with the condition "Botulism, foodborne"
And I click the Submit button
And I store the Investigation ID from the association message
And user clicks the "View File" link, the user is returned to Patient profile summary page
And Click Events tab on Patient Profile Page
And I click on the stored Investigation ID in the Events tab
Then the stored morbidity report should be associated with the investigation

Scenario: Mark morbidity report as reviewed
When user clicks on the "Add morbidity report" button within the Events tab
And I select "Botulism, foodborne" from the Condition dropdown menu
And I select "Cobb County" from the Jurisdiction dropdown menu
And I enter the current date in the Date of Morbidity Report field
And I enter "2" in the Facility and Provider Information field
And I click on the Code Lookup button
And I select "No" from the Pregnant dropdown menu
And I click the Submit button
And Click Events tab on Patient Profile Page
And I click on the first morbidity report link in the Events tab and store its Event ID
And I click the Mark as Reviewed button on the Morbidity Report page
And user clicks the "View File" link, the user is returned to Patient profile summary page
Then the stored morbidity report ID should not appear in the Documents Requiring Review section

@skip-broken
# Unsure how to handle the popup for the Mark as Reviewed button, so skipping this test for now
Scenario: Mark morbidity report as reviewed - STD
When user clicks on the "Add morbidity report" button within the Events tab
And I select "AIDS" from the Condition dropdown menu
And I select "Cobb County" from the Jurisdiction dropdown menu
And I enter the current date in the Date of Morbidity Report field
And I enter "2" in the Facility and Provider Information field
And I click on the Code Lookup button
And I select "No" from the Pregnant dropdown menu
And I click the Submit button
And Click Events tab on Patient Profile Page
And I click on the first morbidity report link in the Events tab and store its Event ID
And I click the Mark as Reviewed button on the Morbidity Report page and handle the popup

Scenario: Delete morbidity report
When user clicks on the "Add morbidity report" button within the Events tab
And I select "Botulism, foodborne" from the Condition dropdown menu
And I select "Cobb County" from the Jurisdiction dropdown menu
And I enter the current date in the Date of Morbidity Report field
And I enter "2" in the Facility and Provider Information field
And I click on the Code Lookup button
And I select "No" from the Pregnant dropdown menu
And I click the Submit button
And Click Events tab on Patient Profile Page
And I click on the first morbidity report link in the Events tab and store its Event ID
And I click the delete button on the Morbidity Report page
Then the stored morbidity report ID should not appear in the Morbidity Reports section of the Events tab
Loading