-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds missing parts from the chain (#1513)
* chore: adds the missing parts * chore: adds text
- Loading branch information
1 parent
31db119
commit 409b07e
Showing
27 changed files
with
374 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Feature: User interacts with Search page | ||
|
||
Scenario: Navigating to the registration page for new event by clicking the link button | ||
Given you are on an enrollment page | ||
And you reset the program selection | ||
And you select the Inpatient morbidity program | ||
When you choose to register a new event program by clicking the link button | ||
Then you see the registration form for the Inpatient morbidity program | ||
|
||
Scenario: Navigating to the working lists page for new event by clicking the link button | ||
Given you are on an enrollment page | ||
And you reset the program selection | ||
And you select the Inpatient morbidity program | ||
When you choose to be navigated to the working list by clicking the link button | ||
Then you see the working lists for the Inpatient morbidity program | ||
|
||
Scenario: Navigating to the enrollment page for the same tet by clicking the link button | ||
Given you are on an enrollment page | ||
And you reset the program selection | ||
When you select the MNCH PNC program | ||
When you choose to enroll a person by clicking the link button | ||
Then you see the registration form for the MNCH PNC program | ||
|
||
Scenario: Navigating to the enrollment page for a different tet by clicking the link button | ||
Given you are on an enrollment page | ||
And you reset the program selection | ||
When you select the Malaria case diagnosis program | ||
When you choose to enroll a malaria entity by clicking the link button | ||
Then you see the registration form for the Malaria case diagnosis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
beforeEach(() => { | ||
cy.loginThroughForm(); | ||
}); | ||
|
||
Given('you are on an enrollment page', () => { | ||
cy.visit('/#/enrollment?programId=IpHINAT79UW&orgUnitId=UgYg0YW7ZIh&teiId=fhFQhO0xILJ&enrollmentId=gPDueU02tn8'); | ||
cy.get('[data-test="dhis2-capture-enrollment-page-content"]') | ||
.contains('Enrollment Dashboard'); | ||
}); | ||
|
||
And('you reset the program selection', () => { | ||
cy.get('[data-test="reset-selection-button"]') | ||
.should('have.length.greaterThan', 2); | ||
cy.get('[data-test="reset-selection-button"]') | ||
.eq(0) | ||
.click(); | ||
}); | ||
|
||
And('you select the Inpatient morbidity program', () => { | ||
cy.get('.Select').eq(0) | ||
.type('Inpatient morbidi'); | ||
cy.contains('Inpatient morbidity and mortality') | ||
.click(); | ||
}); | ||
|
||
And('you see the registration form for the Inpatient morbidity program', () => { | ||
cy.get('[data-test="dhis2-capture-registration-page-content"]') | ||
.contains('New Inpatient morbidity and mortality') | ||
.should('exist'); | ||
cy.get('[data-test="dhis2-capture-registration-page-content"]') | ||
.contains('Saving to Inpatient morbidity and mortality in Taninahun (Malen) CHP') | ||
.should('exist'); | ||
}); | ||
|
||
And('you see the registration form for the Malaria case diagnosis', () => { | ||
cy.get('[data-test="dhis2-capture-registration-page-content"]') | ||
.contains('New malaria entity in program: Malaria case diagnosis, treatment and investigation') | ||
.should('exist'); | ||
cy.get('[data-test="dhis2-capture-registration-page-content"]') | ||
.contains('Saving a malaria entity in Malaria case diagnosis, treatment and investigation in Taninahun (Malen) CHP.') | ||
.should('exist'); | ||
}); | ||
|
||
And('you see the registration form for the MNCH PNC program', () => { | ||
cy.get('[data-test="dhis2-capture-registration-page-content"]') | ||
.contains('New person in program: MNCH / PNC (Adult Woman)') | ||
.should('exist'); | ||
cy.get('[data-test="dhis2-capture-registration-page-content"]') | ||
.contains('Saving a person in MNCH / PNC (Adult Woman) in Taninahun (Malen) CHP.') | ||
.should('exist'); | ||
}); | ||
|
||
And('you see the working lists for the Inpatient morbidity program', () => { | ||
cy.get('[data-test="event-working-lists"]') | ||
.find('tbody') | ||
.find('tr') | ||
.should('have.length', 15); | ||
}); | ||
|
||
And('you select the Malaria case diagnosis program', () => { | ||
cy.get('.Select').eq(0) | ||
.type('Malaria case diag'); | ||
cy.contains('Malaria case diagnosis') | ||
.click(); | ||
}); | ||
|
||
And('you select the MNCH PNC program', () => { | ||
cy.get('.Select').eq(0) | ||
.type('MNCH'); | ||
cy.contains('PNC (Adult Woman)') | ||
.click(); | ||
}); | ||
|
||
And('you choose to register a new event program by clicking the link button', () => { | ||
cy.contains('Create a new event in this program.') | ||
.click(); | ||
}); | ||
|
||
And('you choose to be navigated to the working list by clicking the link button', () => { | ||
cy.contains('View working list in this program.') | ||
.click(); | ||
}); | ||
|
||
And('you choose to enroll a malaria entity by clicking the link button', () => { | ||
cy.contains('Enroll a new malaria entity in this program.') | ||
.click(); | ||
}); | ||
|
||
And('you choose to enroll a person by clicking the link button', () => { | ||
cy.contains('Enroll Carlos Cruz in this program.') | ||
.click(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.