Skip to content

Commit

Permalink
chore: [DHIS2-17925] adapt the transfer scenario to the newly added A…
Browse files Browse the repository at this point in the history
…PI restrictions (#3768)

chore: adapt the transfer scenario to the newly added API restrictions
  • Loading branch information
simonadomnisoru authored Aug 23, 2024
1 parent f5902dd commit e489012
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,17 @@ Then(/^the user successfully transfers the enrollment/, () => {

cy.get('[data-test="widget-enrollment"]').within(() => {
cy.get('[data-test="widget-enrollment-owner-orgunit"]')
.contains('Owned by Sierra Leone')
.contains('Owned by Njandama MCHP')
.should('exist');
});
});

Then(/^the user types in (.*)/, (orgunit) => {
cy.get('[data-test="widget-enrollment-transfer-modal"]').within(() => {
cy.get('[data-test="capture-ui-input"]').type(orgunit);
});
});

Given(/^the enrollment owner organisation unit is (.*)/, (orgunit) => {
cy.get('[data-test="widget-enrollment"]').within(() => {
cy.get('[data-test="widget-enrollment-owner-orgunit"]')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ Feature: The user interacts with the widgets on the enrollment dashboard
And the user clicks on the transfer action
And the user sees the transfer modal
And the user sees the organisation unit tree
When the user clicks on the organisation unit with text: Sierra Leone
And the user types in Njandama MCHP
When the user clicks on the organisation unit with text: Njandama MCHP
Then the user successfully transfers the enrollment

# Scenarios linked to the enrollment dashboard
Expand Down

0 comments on commit e489012

Please sign in to comment.