Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
Expand Up @@ -3,24 +3,56 @@ Feature: Classic Data Entry
Background:
Given I am logged in as secure user and stay on classic

Scenario: Adding a Lab Report with detailed fields
When I click on Data Entry in the menu bar
Scenario: Create lab report and confirm association
When I search for patient "Surma" "Singh"
And I click on the Lab Report tab
And I check the Lab Report count
And I click on Data Entry in the navigation bar
And I click on Lab Report
# We will run populatePatient in our window since Cypress cannot natively handle popups
And I populate the page with patient Surma J Singh's information
And I click Next to navigate to the Lab Report tab
And I search for Reporting Facility with Quick Code "2"
And I select a random Program Area
And I select a random Jursidiction
And I populate Ordered Test with Measles virus Rubeola antigen
And I select a random Specimen Source
And I select a random Specimen Site
And I select a random Resulted Test
And I select a random Coded Result
And I click the Add button under Resulted Tests
And I click the submit button
And I go to the Home page
And I search for patient "Surma" "Singh"
And I click on the Lab Report tab
And I enter "2" in the Reporting Facility field
And I click the Quick Code Lookup button
And I check the "Same as Reporting Facility" checkbox
And I select the third element in the Jurisdiction dropdown
And I select the sixth element in the Resulted Test dropdown
And I select the second element in the Coded Result dropdown
And I enter "1" in the Numeric Result field
And I select % for the Units field
And I enter "automated test results" in the Text Result field
And I click the add button to add the lab report
Then there should be one more Lab Report than before

Scenario: Create lab report with multiple results and confirm association
And I click on Data Entry in the navigation bar
And I click on Lab Report
And I populate the page with patient Surma J Singh's information
And I click Next to navigate to the Lab Report tab
And I search for Reporting Facility with Quick Code "2"
And I select a random Program Area
And I select a random Jursidiction
And I populate Ordered Test with Measles virus Rubeola antigen
And I select a random Specimen Source
And I select a random Specimen Site
And I select a random Resulted Test
And I select a random Coded Result
And I click the Add button under Resulted Tests
And I select a random Resulted Test
And I select a random Coded Result
And I click the Add button under Resulted Tests
And I click the submit button
And I go to the Home page
And I search for patient "Surma" "Singh"
And I click on the Lab Report tab
And the last Lab Report should have multiple resulted tests associated with it

Scenario: Create comprehensive Morbidity Report with patient entry and verification
When I click on Data Entry in the menu bar

Scenario: Adding a Morbidity Report
When I click on Data Entry in the navigation bar
And I click on the Morbidity Report link
And I enter patient first name "Homer" and last name "Simpson"
And I click on the Report Information tab
Expand All @@ -29,12 +61,15 @@ Feature: Classic Data Entry
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
# Still need to sample clinical information
And I click the Submit button
And I confirm the submission by clicking "Ok"
Then the morbidity report should be submitted successfully

# Need another test with 2 lab reports

Scenario: Create Morbidity Report with different condition type
When I click on Data Entry in the menu bar
When I click on Data Entry in the navigation bar
And I click on the Morbidity Report link
And I enter patient first name "Homer" and last name "Simpson"
And I click on the Report Information tab
Expand All @@ -44,19 +79,21 @@ Feature: Classic Data Entry
And I enter "2" in the Facility and Provider Information field
And I click on the Code Lookup button
And I click the Submit button
# Still need to add 2 treatment results
And I confirm the submission by clicking "Ok"
Then the morbidity report should be submitted successfully

Scenario: Validate required fields when creating Morbidity Report
When I click on Data Entry in the menu bar
When I click on Data Entry in the navigation bar
And I click on the Morbidity Report link
And I enter patient first name "Homer" and last name "Simpson"
And I click on the Report Information tab
And I click the Submit button
Then I should see validation errors for required fields


Scenario: Verify missing condition prevents submission
When I click on Data Entry in the menu bar
When I click on Data Entry in the navigation bar
And I click on the Morbidity Report link
And I enter patient first name "Homer" and last name "Simpson"
And I click on the Report Information tab
Expand All @@ -68,7 +105,7 @@ Feature: Classic Data Entry
Then I should see a validation error for the Condition field

Scenario: Verify missing jurisdiction prevents submission
When I click on Data Entry in the menu bar
When I click on Data Entry in the navigation bar
And I click on the Morbidity Report link
And I enter patient first name "Homer" and last name "Simpson"
And I click on the Report Information tab
Expand All @@ -81,12 +118,12 @@ Feature: Classic Data Entry
Then I should see a validation error for the Jurisdiction field

Scenario: Verify form state preservation after switching form tabs
When I click on Data Entry in the menu bar
When I click on Data Entry in the navigation bar
And I click on the Morbidity Report link
And I enter patient first name "Homer" and last name "Simpson"
And I click on the Report Information tab
And I select "Brucellosis" from the Condition dropdown menu
And I select "Dekalb County" from the Jurisdiction dropdown menu
And I enter the current date in the Date of Morbidity Report field
And I click on the Patient tab
Then the patient first name field should contain "Homer"
Then the patient first name field should contain "Homer"
Loading
Loading