diff --git a/src/main/java/framework/ui/pages/simplOpen/AuthorityPage.java b/src/main/java/framework/ui/pages/simplOpen/AuthorityPage.java index df5eac43609aede23f4cd327dbbeeb17f94683b3..47d024bf42e452e3b036f5840a567cdcd7d0b58b 100644 --- a/src/main/java/framework/ui/pages/simplOpen/AuthorityPage.java +++ b/src/main/java/framework/ui/pages/simplOpen/AuthorityPage.java @@ -422,6 +422,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)); @@ -429,6 +435,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); @@ -440,6 +452,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 a9cf439d7f19d5714d80b9eb59238ff5aea510a4..4f472f5425a6b60a9d2f954a40c5d3b5002691f8 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 |