Skip to content

Commit

Permalink
Add update enrollment integration tests
Browse files Browse the repository at this point in the history
Issue #1050: Add more integration tests
  • Loading branch information
Frank Duncan committed Aug 26, 2018
1 parent c03541a commit 16400cc
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
View
</a>
<a
class="actionLink"
class="editLink actionLink"
href="${editProfileLink}"
>
Edit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,14 @@ public void i_renew_individual_enrollment(String npi) {
public void i_renew_organizational_enrollment(String npi) {
enrollmentSteps.renewOrganizationalEnrollment(npi);
}

@When("^I update Individual Enrollment '(.+)'$")
public void i_update_individual_enrollment(String npi) {
enrollmentSteps.updateIndividualEnrollment(npi);
}

@When("^I update Organizational Enrollment '(.+)'$")
public void i_update_organizational_enrollment(String npi) {
enrollmentSteps.updateOrganizationalEnrollment(npi);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -517,4 +517,18 @@ void renewOrganizationalEnrollment(String npi) {
signProviderStatement();
submitEnrollment();
}

@Step
void updateIndividualEnrollment(String npi) {
myProfilePage.clickActionFor(npi, ".editLink");
personalInfoPage.enterFirstName(FIRST_NAME + " Edited");
submitEnrollment();
}

@Step
void updateOrganizationalEnrollment(String npi) {
myProfilePage.clickActionFor(npi, ".editLink");
organizationInfoPage.setDoingBusinessAs("Test DBA Edited");
submitEnrollment();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public void setEffectiveDate(String effectiveDate) {
}

public void setDoingBusinessAs(String dba) {
$("#name").clear();
$("#name").sendKeys(dba);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Feature: Enrollment Workflow
Feature: Enrollment Renew Workflow
Users wish to execute workflow functions

Scenario: Provider Create Individual Workflow Enrollment
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
@update
Feature: Enrollment Update Workflow
Users wish to execute 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: Provider Create Organization Workflow Enrollment
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 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'
And I Approve the Enrollment
And I view the Reviewed Enrollment
Then I should have no errors
And The Enrollment should be in the 'Approved' state

Scenario: Admin Approve 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 Approve the Enrollment
And I view the Reviewed Enrollment
Then I should have no errors
And The Enrollment should be in the 'Approved' state

Scenario: Provider Update Individual Enrollment
Given I am logged in as a provider
And I click on My Profile
When I update Individual Enrollment '0000000006'
Then I should have no errors
And The Enrollment should be in the 'Pending' state

Scenario: Admin Approve 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 Approve the Enrollment
And I view the Reviewed Enrollment
Then I should have no errors
And The Enrollment should be in the 'Approved' state

Scenario: Provider Update Organizational Enrollment
Given I am logged in as a provider
And I click on My Profile
When I update Organizational Enrollment '1234567893'
Then I should have no errors
And The Enrollment should be in the 'Pending' state

Scenario: Admin Approve Organizational 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'
And I Approve the Enrollment
And I view the Reviewed Enrollment
Then I should have no errors
And The Enrollment should be in the 'Approved' state

0 comments on commit 16400cc

Please sign in to comment.