Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: [DHIS2-17925] adapt the transfer scenario to the newly added API restrictions #3768

Merged
merged 1 commit into from
Aug 23, 2024
Merged
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 @@ -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
Loading