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

[CCAP-477] Set submit screen to submit-complete-final. #852

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
5 changes: 0 additions & 5 deletions src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -558,18 +558,13 @@ flow:
beforeDisplayAction: FindApplicationData
nextScreens:
- name: info
condition: EnableProviderRegistration
- name: submit-complete
condition: ProviderAgreedToCare
- name: confirm-deny-care
confirm-deny-care:
beforeDisplayAction: FormatChildrenWhoNeedCareNames
afterSaveAction: UploadProviderSubmissionToS3
nextScreens:
- name: submit-complete-final
submit-complete:
nextScreens:
- name: info
info:
nextScreens:
- name: service-address
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,6 @@ provider-response-response.button.no=No, I don't agree to care
#submit-complete
provider-response-submit-complete.title=Response recorded
provider-response-submit-complete.header=Your response has been recorded
provider-response-submit-complete.notice-yes=Next, we will collect your provider information. This usually takes 2-3 minutes.
provider-response-submit-complete.notice-no=We will notify the CCR&R of your response.
provider-response-submit-complete.button-no=Return to home

Expand Down Expand Up @@ -1275,7 +1274,7 @@ registration-getting-started.accordion.first.list-2=Not a parent, stepparent, ad
registration-getting-started.accordion.first.list-3=Not a person living in the home who is a parent of the child's sibling or has a child in common with the applicant
registration-getting-started.accordion.first.list-4=Not a member of the parent's Temporary Assistance for Needy Families (TANF) unit
registration-getting-started.accordion.first.paragraph-2=You will also have to do background checks and trainings. For more information, visit the IDHS website.
registration-getting-started.accordion.second.label=Find your documents
registration-getting-started.accordion.second.label=Find your documents
registration-getting-started.accordion.second.paragraph-1: At the end of this application you will have the option to upload documents from your phone or computer.
registration-getting-started.accordion.second.paragraph-2: The most commonly requested documents verify your identity and provider status.
registration-getting-started.accordion.second.paragraph-3: Here are some examples:
Expand Down
25 changes: 0 additions & 25 deletions src/main/resources/templates/providerresponse/submit-complete.html

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ public class ProviderresponseFlowJourneyTest extends AbstractBasePageTest {
private static String CONF_CODE = "A2123B";

@Test
void ProviderresponseJourneyTest_validLink() {
void ProviderresponseJourneyTest_validLink_No_Agreement_To_Care(){
testPage.navigateToFlowScreen("gcc/activities-parent-intro");

saveSubmission(getSessionSubmissionTestBuilder().withDayCareProvider().withParentDetails()
.with("parentPreferredName", "FirstName").withChild("First", "Child", "Yes").withChild("Second", "Child", "No")
.withChild("NoAssistance", "Child", "No").withConstantChildcareSchedule(0)
.withSubmittedAtDate(OffsetDateTime.now()).withShortCode(CONF_CODE).build());
.with("parentPreferredName", "FirstName").withChild("First", "Child", "Yes").withChild("Second", "Child", "No")
.withChild("NoAssistance", "Child", "No").withConstantChildcareSchedule(0)
.withSubmittedAtDate(OffsetDateTime.now()).withShortCode(CONF_CODE).build());

testPage.clickContinue();

driver.navigate()
.to("http://localhost:%s/providerresponse/submit/%s?utm_medium=test".formatted(localServerPort, CONF_CODE));
.to("http://localhost:%s/providerresponse/submit/%s?utm_medium=test".formatted(localServerPort, CONF_CODE));

// submit-start when application is still active
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-submit-start.title"));
Expand Down Expand Up @@ -61,25 +61,59 @@ void ProviderresponseJourneyTest_validLink() {
assertThat(testPage.elementDoesNotExistById("child-name-1")).isTrue();
assertThat(testPage.elementDoesNotExistById("child-name-2")).isTrue();

testPage.clickElementById("providerResponseAgreeToCare-true-label");
testPage.clickElementById("providerResponseAgreeToCare-false-label");
testPage.clickContinue();

// submit-complete
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-submit-complete.title"));
assertThat(testPage.findElementsByClass("notice").get(0).getText()).isEqualTo(
getEnMessage("provider-response-submit-complete.notice-yes"));
//confirm-deny-care
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-confirm-deny-care.title"));
testPage.clickButton(getEnMessage("provider-response-confirm-deny-care.confirm-button"));

testPage.goBack();
//submit-complete-final
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-submit-complete-final.title"));
assertThat(testPage.elementDoesNotExistById("continue-link")).isFalse();
}
@Test
void ProviderresponseJourneyTest_validLink() {
testPage.navigateToFlowScreen("gcc/activities-parent-intro");

saveSubmission(getSessionSubmissionTestBuilder().withDayCareProvider().withParentDetails()
.with("parentPreferredName", "FirstName").withChild("First", "Child", "Yes").withChild("Second", "Child", "No")
.withChild("NoAssistance", "Child", "No").withConstantChildcareSchedule(0)
.withSubmittedAtDate(OffsetDateTime.now()).withShortCode(CONF_CODE).build());

testPage.clickContinue();

driver.navigate()
.to("http://localhost:%s/providerresponse/submit/%s?utm_medium=test".formatted(localServerPort, CONF_CODE));

// submit-start when application is still active
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-submit-start.title"));
testPage.clickButton(getEnMessage("provider-response-submit-start.active.button"));

// ccap-registration
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-ccap-registration.title"));
testPage.enter("providerResponseProviderNumber", "123456789012345");
testPage.clickContinue();

// confirmation-code
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-confirmation-code.title"));
testPage.findElementTextById("providerResponseFamilyShortCode").equals(CONF_CODE);
testPage.clickContinue();

// response
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-response.title"));
testPage.clickElementById("providerResponseAgreeToCare-true-label");
testPage.clickContinue();
assertThat(testPage.findElementTextById("confirmation-code")).isEqualTo(CONF_CODE);
assertThat(testPage.findElementTextById("parent-name")).isEqualTo("FirstName parent last");

assertThat(testPage.findElementTextById("child-name-0")).isEqualTo("First Child");
assertThat(testPage.findElementTextById("child-age-0")).isEqualTo("Age 22");
assertThat(testPage.findElementTextById("child-schedule-0")).isNotNull();
assertThat(testPage.findElementTextById("child-start-0")).isEqualTo("01/10/2025");

assertThat(testPage.elementDoesNotExistById("child-name-1")).isTrue();
assertThat(testPage.elementDoesNotExistById("child-name-2")).isTrue();

// submit-complete
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-submit-complete.title"));
assertThat(testPage.findElementsByClass("notice").get(0).getText()).isEqualTo(
getEnMessage("provider-response-submit-complete.notice-yes"));
testPage.clickElementById("providerResponseAgreeToCare-true-label");
testPage.clickContinue();

//basic-info
Expand Down Expand Up @@ -170,24 +204,6 @@ void ProviderresponseJourneyTest_noLink() {
testPage.clickElementById("providerResponseAgreeToCare-true-label");
testPage.clickContinue();

// submit-complete
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-submit-complete.title"));
assertThat(testPage.findElementsByClass("notice").get(0).getText()).isEqualTo(
getEnMessage("provider-response-submit-complete.notice-yes"));

testPage.goBack();

// response
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-response.title"));
testPage.clickElementById("providerResponseAgreeToCare-true-label");
testPage.clickContinue();

// submit-complete
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-submit-complete.title"));
assertThat(testPage.findElementsByClass("notice").get(0).getText()).isEqualTo(
getEnMessage("provider-response-submit-complete.notice-yes"));
testPage.clickContinue();

//basic-info
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("provider-response-info.title"));
testPage.enter("providerResponseBusinessName", "Business Name");
Expand Down