diff --git a/psm-app/cms-web/WebContent/WEB-INF/pages/admin/service_agent_review_screening.jsp b/psm-app/cms-web/WebContent/WEB-INF/pages/admin/service_agent_review_screening.jsp index b984f9a83..639ff4e4a 100644 --- a/psm-app/cms-web/WebContent/WEB-INF/pages/admin/service_agent_review_screening.jsp +++ b/psm-app/cms-web/WebContent/WEB-INF/pages/admin/service_agent_review_screening.jsp @@ -198,7 +198,7 @@ Reject diff --git a/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/steps/EnrollmentStepDefinitions.java b/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/steps/EnrollmentStepDefinitions.java index 006474c58..ba01a80ea 100644 --- a/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/steps/EnrollmentStepDefinitions.java +++ b/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/steps/EnrollmentStepDefinitions.java @@ -20,6 +20,11 @@ public void i_approve_the_enrollment() { enrollmentSteps.approveEnrollment(); } + @Given("^I Reject the Enrollment$") + public void i_reject_the_enrollment() { + enrollmentSteps.rejectEnrollment(); + } + @When("^I view the Reviewed Enrollment$") public void i_view_the_reviewed_enrollment() { enrollmentSteps.navigateToMostRecentEnrollment(); diff --git a/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/steps/EnrollmentSteps.java b/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/steps/EnrollmentSteps.java index 7c51311fb..a07a1549a 100644 --- a/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/steps/EnrollmentSteps.java +++ b/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/steps/EnrollmentSteps.java @@ -30,6 +30,12 @@ public void approveEnrollment() { enrollmentReviewPage.approve(); } + @Step + public void rejectEnrollment() { + approvedEnrollmentId = enrollmentReviewPage.getEnrollmentId(); + enrollmentReviewPage.reject(); + } + @Step public void navigateToMostRecentEnrollment() { assertThat(approvedEnrollmentId).isNotNull(); diff --git a/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/ui/EnrollmentReviewPage.java b/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/ui/EnrollmentReviewPage.java index 4a6fb5774..4b29c9f7b 100644 --- a/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/ui/EnrollmentReviewPage.java +++ b/psm-app/integration-tests/src/test/java/gov/medicaid/features/service_admin/ui/EnrollmentReviewPage.java @@ -17,4 +17,8 @@ public void approve() { new Checkbox($("[name=notInDmfVerified]")).setChecked(true); $(".approveBtn").click(); } + + public void reject() { + $(".rejectBtn").click(); + } } diff --git a/psm-app/integration-tests/src/test/resources/features/enrollment/reject_workflow.feature b/psm-app/integration-tests/src/test/resources/features/enrollment/reject_workflow.feature new file mode 100644 index 000000000..75bc482b6 --- /dev/null +++ b/psm-app/integration-tests/src/test/resources/features/enrollment/reject_workflow.feature @@ -0,0 +1,19 @@ +@reject +Feature: Enrollment Reject Workflow + Users wish to execute reject workflow functions + + Scenario: Provider Create Individual Workflow Enrollment + Given I have started an enrollment + And I am on the individual provider statement page + And I enter my individual provider statement + And I submit the enrollment + Then I should have no errors + + Scenario: Admin Reject Individual Enrollment + Given I am logged in as an admin + And I am on the admin Pending page + When I am on the Review Enrollment Page for '0000000006' + And I Reject the Enrollment + And I view the Reviewed Enrollment + Then I should have no errors + And The Enrollment should be in the 'Denied' state diff --git a/psm-app/integration-tests/src/test/resources/features/enrollment/renew_workflow.feature b/psm-app/integration-tests/src/test/resources/features/enrollment/renew_workflow.feature index e5b00877e..45d959004 100644 --- a/psm-app/integration-tests/src/test/resources/features/enrollment/renew_workflow.feature +++ b/psm-app/integration-tests/src/test/resources/features/enrollment/renew_workflow.feature @@ -1,21 +1,21 @@ Feature: Enrollment Renew Workflow Users wish to execute workflow functions - Scenario: Provider Create Individual Workflow Enrollment + Scenario: Provider Create Individual Workflow Enrollment For Review Given I have started an enrollment And I am on the individual provider statement page And I enter my individual provider statement And I submit the enrollment Then I should have no errors - Scenario: Provider Create Organization Workflow Enrollment + Scenario: Provider Create Organization Workflow Enrollment For Review Given I have started an enrollment And I am on the organization provider statement page And I enter my organization provider statement And I submit the enrollment Then I should have no errors - Scenario: Admin Approve Organizational Workflow Enrollment + Scenario: Admin Approve Organizational Enrollment For Review Given I am logged in as an admin And I am on the admin Pending page When I am on the Review Enrollment Page for '1234567893' @@ -24,7 +24,7 @@ Feature: Enrollment Renew Workflow Then I should have no errors And The Enrollment should be in the 'Approved' state - Scenario: Admin Approve Individual Workflow Enrollment + Scenario: Admin Approve Individual Enrollment For Review Given I am logged in as an admin And I am on the admin Pending page When I am on the Review Enrollment Page for '0000000006' @@ -40,7 +40,7 @@ Feature: Enrollment Renew Workflow Then I should have no errors And The Enrollment should be in the 'Pending' state - Scenario: Admin Approve Updated Individual Enrollment + Scenario: Admin Approve Individual Reviewed Enrollment Given I am logged in as an admin And I am on the admin Pending page When I am on the Review Enrollment Page for '0000000006' @@ -56,7 +56,7 @@ Feature: Enrollment Renew Workflow Then I should have no errors And The Enrollment should be in the 'Pending' state - Scenario: Admin Approve Updated Organizational Enrollment + Scenario: Admin Approve Organizational Reviewed Enrollment Given I am logged in as an admin And I am on the admin Pending page When I am on the Review Enrollment Page for '1234567893'