diff --git a/src/main/java/framework/ui/pages/simplOpen/AuthorityPage.java b/src/main/java/framework/ui/pages/simplOpen/AuthorityPage.java index e96be1cc7cfc88390c950459ac12e53031e94a0d..fa45e5c8cd00a0c20cc4dfd388e1b229583ca7d9 100644 --- a/src/main/java/framework/ui/pages/simplOpen/AuthorityPage.java +++ b/src/main/java/framework/ui/pages/simplOpen/AuthorityPage.java @@ -423,6 +423,12 @@ public class AuthorityPage { } } + /*** + * This method checks for elements or status that should be visible in the UI after the request is rejected. + * This method is called by theUserProcessActionValue(String action) + * + * @throws InterruptedException + */ private void processApproval() throws InterruptedException { Utils.clickButtonByAriaText("Approve"); assertElementIsVisibleByLocator(page.getByText(ALERT_DISPLAYING_SUCCESSFUL_APPROVED)); @@ -430,6 +436,12 @@ public class AuthorityPage { waitForStatusToBeDisplayed("APPROVED"); } + /*** + * This method checks for elements or status that should be visible in the UI after the request is approved. + * This method is called by theUserProcessActionValue(String action) + * + * @throws InterruptedException + */ private void processRejection() throws InterruptedException { Locator reasonField = page.locator(REJECT_REQUEST_TYPE_REASON_FIELD_LOCATOR); assertElementIsVisibleByLocator(reasonField); @@ -441,6 +453,12 @@ public class AuthorityPage { waitForStatusToBeDisplayed("REJECTED"); } + /*** + * This method shows the status of the request once the request was approved or rejected. + * The method is called by processRejection() + * + * @param expectedStatus APPROVED | REJECTED 1 + */ private void waitForStatusToBeDisplayed(String expectedStatus) { assertElementIsVisibleByLocator(page.locator(REQUEST_STATUS_LOCATOR)); String actualStatus = page.locator(REQUEST_STATUS_LOCATOR).textContent().trim(); diff --git a/src/test/java/features/ui/simplOpen/Authority.feature b/src/test/java/features/ui/simplOpen/Authority.feature index 30796fefcabdaebb92762f82e3897104951761c1..33b2562eba606d675c587599a741f835b8aa6037 100644 --- a/src/test/java/features/ui/simplOpen/Authority.feature +++ b/src/test/java/features/ui/simplOpen/Authority.feature @@ -183,8 +183,9 @@ Feature: Authority # | | # | rejected | - @TCA14 @SIMPL-617 @SIMPL-612 @SIMPL-608 @SIMPL-609 @SIMPL-614 @SIMPL-618 @SIMPL-1081 @bug:SIMPL-9887 @bug:SIMPL-9566 - # Check Test. "In Progress status" does no longer show participants with a PDF file submitted. + @TCA14 @SIMPL-617 @SIMPL-612 @SIMPL-608 @SIMPL-609 @SIMPL-614 @SIMPL-618 @SIMPL-1081 @bug:SIMPL-9566 @SIMPL-619 + # Now "In Progress status" does no longer show participants with a PDF file submitted.Scenario.Scenario + # Filtering by Status in Progress and Approve/Reject the request is now no longer valid (SIMPL-617) # Now the new status seems to be "In_Review" BUT is not appearing in the filters. Scenario Outline: Confirm filtering by Status in Progress and <button> the request # NOTE: Once API is done, the following two steps should be changed/deleted, at least while bugs are still affecting the flow. @@ -206,7 +207,7 @@ Feature: Authority | Consumer user confirms and process Reject action | Reject | Reject Request | descending | Request Date | Consumer | | Application Provider user confirms and process Approval action | Approve | Confirm Approval | descending | Request Date | Application Provider | | Application Provider user confirms and process Reject action | Reject | Reject Request | descending | Request Date | Application Provider | - | Data Provider user confirms and process Approval action | Approve | Confirm Approval | descending | Request Date | Data Provider | + | Data Provider user confirmsand process Approval action | Approve | Confirm Approval | descending | Request Date | Data Provider | | Data Provider user confirms and process Reject action | Reject | Reject Request | descending | Request Date | Data Provider | | Infrastructure Provider user confirms and process Approval action | Approve | Confirm Approval | descending | Request Date | Infrastructure Provider | | Infrastructure Provider user confirms and process Reject action | Reject | Reject Request | descending | Request Date | Infrastructure Provider |