Skip to content

Commit

Permalink
chore: adapt the transfer scenario to the newly added API restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
simonadomnisoru committed Aug 21, 2024
1 parent 9dc3ef5 commit 7980025
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 7980025

Please sign in to comment.