diff --git a/src/main/resources/flows-config.yaml b/src/main/resources/flows-config.yaml index cedd678d2..dfc816285 100644 --- a/src/main/resources/flows-config.yaml +++ b/src/main/resources/flows-config.yaml @@ -123,6 +123,9 @@ flow: condition: GoingToSchool - name: householdPregnancy householdSchoolWho: + nextScreens: + - name: householdSchoolDetails + householdSchoolDetails: nextScreens: - name: householdPregnancy householdPregnancy: @@ -131,6 +134,9 @@ flow: condition: IsPregnant - name: householdBenefits householdPregnancyWho: + nextScreens: + - name: householdPregnancyDueDate + householdPregnancyDueDate: nextScreens: - name: householdBenefits householdBenefits: @@ -315,6 +321,9 @@ flow: condition: ProgramsIncludeSnap - name: expensesSignPost householdMoneyOnHand: + nextScreens: + - name: householdMoneyOnHandWhich + householdMoneyOnHandWhich: nextScreens: - name: expensesSignPost expensesSignPost: @@ -439,7 +448,7 @@ flow: condition: ExpensesIncludeCookingFuel - name: utilitiesOther condition: ExpensesIncludeOtherUtilities - - name: expensesDependentCare + - name: energyAssistance utilitiesHeating: nextScreens: - name: utilitiesCooling @@ -458,7 +467,7 @@ flow: condition: ExpensesIncludeCookingFuel - name: utilitiesOther condition: ExpensesIncludeOtherUtilities - - name: expensesDependentCare + - name: energyAssistance utilitiesCooling: nextScreens: - name: utilitiesElectricity @@ -475,7 +484,7 @@ flow: condition: ExpensesIncludeCookingFuel - name: utilitiesOther condition: ExpensesIncludeOtherUtilities - - name: expensesDependentCare + - name: energyAssistance utilitiesElectricity: nextScreens: - name: utilitiesWater @@ -490,7 +499,7 @@ flow: condition: ExpensesIncludeCookingFuel - name: utilitiesOther condition: ExpensesIncludeOtherUtilities - - name: expensesDependentCare + - name: energyAssistance utilitiesWater: nextScreens: - name: utilitiesPhone @@ -503,7 +512,7 @@ flow: condition: ExpensesIncludeCookingFuel - name: utilitiesOther condition: ExpensesIncludeOtherUtilities - - name: expensesDependentCare + - name: energyAssistance utilitiesPhone: nextScreens: - name: utilitiesGarbage @@ -514,7 +523,7 @@ flow: condition: ExpensesIncludeCookingFuel - name: utilitiesOther condition: ExpensesIncludeOtherUtilities - - name: expensesDependentCare + - name: energyAssistance utilitiesGarbage: nextScreens: - name: utilitiesSewer @@ -523,20 +532,26 @@ flow: condition: ExpensesIncludeCookingFuel - name: utilitiesOther condition: ExpensesIncludeOtherUtilities - - name: expensesDependentCare + - name: energyAssistance utilitiesSewer: nextScreens: - name: utilitiesCookingFuel condition: ExpensesIncludeCookingFuel - name: utilitiesOther condition: ExpensesIncludeOtherUtilities - - name: expensesDependentCare + - name: energyAssistance utilitiesCookingFuel: nextScreens: - name: utilitiesOther condition: ExpensesIncludeOtherUtilities - - name: expensesDependentCare + - name: energyAssistance utilitiesOther: + nextScreens: + - name: energyAssistance + energyAssistance: + nextScreens: + - name: liheap + liheap: nextScreens: - name: expensesDependentCare expensesDependentCare: @@ -545,6 +560,12 @@ flow: condition: HasDependentCareExpenses - name: expensesInsurance expensesDependentCareAmount: + nextScreens: + - name: expensesChildSupport + expensesChildSupport: + nextScreens: + - name: expensesChildSupportAmount + expensesChildSupportAmount: nextScreens: - name: expensesInsurance expensesInsurance: @@ -591,6 +612,9 @@ flow: nextScreens: - name: finalSignPost finalSignPost: + nextScreens: + - name: ebtCard + ebtCard: nextScreens: - name: authorizedRepAuthorization authorizedRepAuthorization: diff --git a/src/main/resources/messages.properties b/src/main/resources/messages.properties index 2228eb5ec..74e86c1d2 100644 --- a/src/main/resources/messages.properties +++ b/src/main/resources/messages.properties @@ -531,15 +531,31 @@ school.content.p1=Include anyone who is enrolled at least half of their time in school.content.p2=That would include: school.content.li1=A regular curriculum at a college or university that offers degrees school.content.li2=A business, technical, trade, or vocational school that normally requires a high school diploma or equivalent (GED) + school-who.title=School who school-who.header=Who is going to school? +# School Details +schooldetails.title=School Details +schooldetails.header=We need some additional details. +schooldetails.subheader=An asterisk (*) indicates a required field. +schooldetails.formquestion1=* What is the name of {0} school? +schooldetails.formquestion2=* How often does {0} go to school? +schooldetails.question2-helptext=The number of hours considered as half-time enrollment is determined by the institution of higher education. +schooldetails.fulltime=Full-time +schooldetails.halftime=Half-time + # Pregnancy pregnancy.title=Pregnancy pregnancy.header=Is anyone in your household pregnant? pregnancy-who.title=Pregnancy who pregnancy-who.header=Who is pregnant? +pregnantduedate.title=Pregnancy Due Date +pregnantduedate.header=When is your {0} due date? +pregnantduedate.subheader.=An estimate is ok. +pregnantduedate.helptext=Month / Day / Year + # Out of state benefits out-of-state-benefits.title=Out of state benefits out-of-state-benefits.header=Has anyone in your household received cash assistance or SNAP benefits from another state? @@ -811,6 +827,25 @@ money-on-hand.title=Money on hand money-on-hand.header=How much money do the people on your application have on hand? money-on-hand.subtext=

This includes any cash or money in checking or savings accounts.

This won't affect your benefit amount. It's only used to see if you qualify for expedited service.

Type '0' if you don't have any.

+moneyonhand-types.title=Money On Hand Types +moneyonhand-types.header=What money do the people on your application have on hand? +moneyonhand-types.subheader=Check all that apply.
This won't affect your benefit amount. It's only used to see if you qualify for expedited service. +moneyonhand-types.option1=Checking account +moneyonhand-types.option2=Savings account +moneyonhand-types.option3=Joint account +moneyonhand-types.option4=Bonds +moneyonhand-types.option5=Cash on hand +moneyonhand-types.option6=Certificate of Deposit (CD) +moneyonhand-types.option7=Money Market Account +moneyonhand-types.option8=Mutual funds +moneyonhand-types.option9=Savings bond +moneyonhand-types.option10=Stocks + +moneyonhand-which.title=Money On Hand - Which +moneyonhand-which.header={0} details +moneyonhand-which.q1=Who is the money listed under? +moneyonhand-which.q2=How much is it worth? + # Expenses expenses-signpost.title=Expenses Signpost expenses-signpost.step=Step 4 of 5 @@ -842,6 +877,13 @@ utilities.sewer=Sewer utilities.cooking-fuel=Cooking Fuel utilities.other=Other +#LIHEAP +energy-assistance-title=Energy Assitance +energy-assistance-header=Do you receive energy assistance? + +liheap-title=LIHEAP +liheap-header=Is the assistance through LIHEAP (Low-Income Home Energy Assistance Program)? + home-expenses.question=How much is the household billed for {0} every month? home-expenses.question.other=How much is the household billed for other home expenses every month? utilities-expenses.question.other=How much is the household billed for other utilities every month? @@ -855,6 +897,13 @@ dependentcare-expenses.title=Dependent Care Amount dependentcare-expenses.header=How much do the people on your application pay for child or dependent care every month? dependentcare-expenses.subheader=

If you live with roommates who aren't applying with you, only include how much the people on your application pay.

Type '0' if you don't have any.

+# Child Support +childsupportexpenses-title=Child Support Expenses +childsupportexpenses-header=Does anyone in your household pay court-ordered child support? +childsupportexpenses-amount-title=Child Support Expenses Amount +childsupportexpenses-amount-header=How much do the people on your application pay for court-ordered child support every month? +childsupportexpenses-amount-subheader=If you live with roommates who aren't applying with you, only include how much the people on your application pay.
Type '0' if you don't pay anything. + insurance-expenses.title=Insurance Expenses insurance-expenses.header=Does anyone in your household pay for health insurance or other medical expenses? insurance-expenses.subheader=Let us know if you are paying out-of-pocket for any of these medical expenses. @@ -886,6 +935,11 @@ final-signpost.content-2=Registering to vote final-signpost.content-3=Race and ethnicity final-signpost.content-4=Agreeing to terms +#EBT +ebtcard-title=EBT Card +ebtcard-header=Do you need a new EBT card? +ebtcard-subheader=You can use your EBT (Electronic Benefits Transfer) card to pay for groceries if you?re approved for SNAP. + authorized-rep.title=Authorized Representative authorized-rep.header=Do you want to assign someone to be your authorized representative? authorized-rep.subheader=This person can help you with your benefits or act on your behalf. diff --git a/src/main/resources/templates/laDigitalAssister/ebtCard.html b/src/main/resources/templates/laDigitalAssister/ebtCard.html new file mode 100644 index 000000000..093f51786 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/ebtCard.html @@ -0,0 +1,30 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/energyAssistance.html b/src/main/resources/templates/laDigitalAssister/energyAssistance.html new file mode 100644 index 000000000..195c1b626 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/energyAssistance.html @@ -0,0 +1,30 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/expensesChildSupport.html b/src/main/resources/templates/laDigitalAssister/expensesChildSupport.html new file mode 100644 index 000000000..68e0b4123 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/expensesChildSupport.html @@ -0,0 +1,30 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/expensesChildSupportAmount.html b/src/main/resources/templates/laDigitalAssister/expensesChildSupportAmount.html new file mode 100644 index 000000000..68e0b4123 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/expensesChildSupportAmount.html @@ -0,0 +1,30 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/householdMoneyOnHandWhich.html b/src/main/resources/templates/laDigitalAssister/householdMoneyOnHandWhich.html new file mode 100644 index 000000000..1753f85a3 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/householdMoneyOnHandWhich.html @@ -0,0 +1,30 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/householdPregnancyDueDate.html b/src/main/resources/templates/laDigitalAssister/householdPregnancyDueDate.html new file mode 100644 index 000000000..b7d55eb2e --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/householdPregnancyDueDate.html @@ -0,0 +1,48 @@ + + + + +
+
+
+
+
+
+ + + + + +
+
+ + + + + + + + + + + +
+
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/householdSchoolDetails.html b/src/main/resources/templates/laDigitalAssister/householdSchoolDetails.html new file mode 100644 index 000000000..b301b8de5 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/householdSchoolDetails.html @@ -0,0 +1,46 @@ + + + + +
+
+
+
+
+
+ + + + +
+
+ + + + + + + + + + + +
+
+
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/laDigitalAssister/liheap.html b/src/main/resources/templates/laDigitalAssister/liheap.html new file mode 100644 index 000000000..4d73e5802 --- /dev/null +++ b/src/main/resources/templates/laDigitalAssister/liheap.html @@ -0,0 +1,30 @@ + + + + +
+
+
+
+
+
+ + + + +
+ +
+ +
+
+
+
+
+
+ + + \ No newline at end of file diff --git a/src/test/java/org/ladocuploader/app/journeys/LaDigitalAssisterFlowJourneyTest.java b/src/test/java/org/ladocuploader/app/journeys/LaDigitalAssisterFlowJourneyTest.java index 12ba362f3..f8a83ccaa 100644 --- a/src/test/java/org/ladocuploader/app/journeys/LaDigitalAssisterFlowJourneyTest.java +++ b/src/test/java/org/ladocuploader/app/journeys/LaDigitalAssisterFlowJourneyTest.java @@ -353,6 +353,9 @@ void fullDigitalAssisterFlow() { testPage.clickElementById("students-you"); testPage.clickContinue(); + assertThat(testPage.getTitle()).isEqualTo(message("schooldetails.title")); + testPage.clickContinue(); + assertThat(testPage.getTitle()).isEqualTo(message("pregnancy.title")); testPage.clickButton("No"); @@ -364,6 +367,9 @@ void fullDigitalAssisterFlow() { testPage.clickElementById("pregnancies-you"); testPage.clickContinue(); + assertThat(testPage.getTitle()).isEqualTo(message("pregnantduedate.title")); + testPage.clickContinue(); + assertThat(testPage.getTitle()).isEqualTo(message("out-of-state-benefits.title")); testPage.clickButton("No"); @@ -561,6 +567,9 @@ void fullDigitalAssisterFlow() { testPage.enter("moneyOnHand", "0"); testPage.clickContinue(); + assertThat(testPage.getTitle()).isEqualTo(message("moneyonhand-types.title")); + testPage.clickContinue(); + // Expenses SignPost assertThat(testPage.getTitle()).isEqualTo(message("expenses-signpost.title")); testPage.clickContinue(); @@ -594,6 +603,12 @@ void fullDigitalAssisterFlow() { testPage.clickElementById("none__checkbox-label"); // none selected testPage.clickContinue(); + assertThat(testPage.getTitle()).isEqualTo(message("energy-assistance-title")); + testPage.clickContinue(); + + assertThat(testPage.getTitle()).isEqualTo(message("liheap-title")); + testPage.clickContinue(); + assertThat(testPage.getTitle()).isEqualTo(message("dependentcare.title")); testPage.clickButton("Yes"); @@ -623,6 +638,9 @@ void fullDigitalAssisterFlow() { assertThat(testPage.getTitle()).isEqualTo(message("final-signpost.title")); testPage.clickContinue(); + assertThat(testPage.getTitle()).isEqualTo(message("ebtcard-title")); + testPage.clickContinue(); + assertThat(testPage.getTitle()).isEqualTo(message("authorized-rep.title")); testPage.clickButton("No"); assertThat(testPage.getTitle()).isEqualTo(message("medicaid.title"));