Skip to content

Commit

Permalink
Add ohep reminder screen (#284)
Browse files Browse the repository at this point in the history
* Add ohep reminder screen
  • Loading branch information
spokenbird authored Jun 12, 2024
1 parent 1147eb1 commit d55f21f
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 17 deletions.
19 changes: 7 additions & 12 deletions src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,35 +257,30 @@ flow:
condition: HasHouseholdHomeExpenses
- name: householdMoneyOnHand
condition: IsApplyingForSnap
- name: ohepRent
condition: HasHouseholdRentExpense
- name: ohepElectricity
- name: ohepReminder
householdHomeExpensesAmount:
nextScreens:
- name: householdMoneyOnHand
condition: IsApplyingForSnap
- name: ohepRent
condition: HasHouseholdRentExpense
- name: ohepElectricity
- name: ohepReminder
householdMoneyOnHand:
onPostAction: MaybeClearMoneyOnHandAmount
beforeSaveAction: CheckExpeditedSnapEligibility
nextScreens:
- name: householdMoneyOnHandAmount
condition: HasMoreThan100OnHand
- name: ohepRent
condition: HasHouseholdRentExpense
- name: ohepElectricity
- name: ohepReminder
householdMoneyOnHandAmount:
beforeSaveAction: CheckExpeditedSnapEligibility
nextScreens:
- name: householdMoneyOnHandVsExpenses
condition: HasMoreExpensesThanMoney
- name: ohepRent
condition: HasHouseholdRentExpense
- name: ohepElectricity
- name: ohepReminder
householdMoneyOnHandVsExpenses:
beforeSaveAction: CheckExpeditedSnapEligibility
nextScreens:
- name: ohepReminder
ohepReminder:
nextScreens:
- name: ohepRent
condition: HasHouseholdRentExpense
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,13 @@ utilities.title=Utilities
home-expenses=home expenses
medical-expenses=medical expenses

ohep-reminder.title=About Energy Assistance
ohep-reminder.header=We will check to see if you can get assistance with your electric, gas, or heat automatically.
ohep-reminder.content1=Because you are applying for SNAP or TCA you don't need to apply for energy assistance. Just answer a few questions about your electric, gas, or heating bills. We'll send money to your utility companies if you are eligible.
ohep-reminder.content2=You may skip the following questions if you don't know the answers. However, providing the information now will help you get energy assistance sooner.
ohep-reminder.accordion1=A recent law change says that people who are able to get SNAP or TCA benefits are also eligible for energy assistance through the Office of Home Energy Programs (OHEP).
ohep-reminder.accordion2=These programs help with heating, electricity and gas bills. Maryland will pay the company that sends you bills directly.

ohep-rent.title=OHEP Rent
ohep-rent.header=Are any of these true for your rent?
ohep-rent.option.heat-included=Heat is included in my rent
Expand Down
36 changes: 36 additions & 0 deletions src/main/resources/templates/mdBenefitsFlow/ohepReminder.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title=#{ohep-reminder.title})}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<th:block th:replace="~{fragments/icons :: householdEnergyAssistance}"></th:block>
<p class="grey-text" th:text="#{ohep-notice.icon-tag-line}"></p>
<th:block
th:replace="~{fragments/cardHeader :: cardHeader(header=#{ohep-reminder.header})}"/>
<div class="form-card__content">
<p th:text="#{ohep-reminder.content1}"></p>
<p th:text="#{ohep-reminder.content2}"></p>
<th:block th:replace="~{fragments/honeycrisp/accordion :: accordion(
buttonLabel=#{ohep-notice.ohep},
content=~{::accordionContent})}">
<th:block th:ref="accordionContent">
<p th:text="#{ohep-reminder.accordion1}"></p>
<p th:text="#{ohep-reminder.accordion2}"></p>
</th:block>
</th:block>
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/continueButton :: continue(text=#{general.ok})}"/>
</div>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ void displayRentQuestionWhenRentExpense() {
testPage.enter("homeExpenseRent", "55");
testPage.clickContinue();

assertThat(testPage.getTitle()).isEqualTo(message("ohep-rent.title"));
testPage.clickContinue();
assertThat(testPage.getTitle()).isEqualTo(message("ohep-reminder.title"));
testPage.clickButton("Ok");
}

@Test
Expand Down Expand Up @@ -320,7 +320,7 @@ void mainFlowMoneyOnHandQuestionDoesntShowForNonSnapApp() {
testPage.clickElementById("none__checkbox-householdHomeExpenses");
testPage.clickContinue();

assertThat(testPage.getTitle()).isEqualTo(message("ohep-electricity.title"));
assertThat(testPage.getTitle()).isEqualTo(message("ohep-reminder.title"));
}

@Test
Expand Down Expand Up @@ -389,7 +389,7 @@ void mainFlowHowMuchMoneyOnHandTest() {
assertThat(testPage.getTitle()).isEqualTo(message("expedited-snap-money-on-hand.title"));
testPage.clickButton("Yes");

assertThat(testPage.getTitle()).isEqualTo(message("ohep-rent.title"));
assertThat(testPage.getTitle()).isEqualTo(message("ohep-reminder.title"));

testPage.goBack();
testPage.clickButton("No");
Expand All @@ -404,7 +404,7 @@ void mainFlowHowMuchMoneyOnHandTest() {
testPage.enter("expeditedMoneyOnHandAmount", "2000");
testPage.clickContinue();

assertThat(testPage.getTitle()).isEqualTo(message("ohep-rent.title"));
assertThat(testPage.getTitle()).isEqualTo(message("ohep-reminder.title"));
}

@Test
Expand Down Expand Up @@ -662,6 +662,9 @@ void completeFlowApplicantOnly() {
testPage.clickElementById("none__checkbox-householdHomeExpenses");
testPage.clickContinue();

assertThat(testPage.getTitle()).isEqualTo(message("ohep-reminder.title"));
testPage.clickButton("Ok");

assertThat(testPage.getTitle()).isEqualTo(message("ohep-electricity.title"));
testPage.clickContinue();

Expand Down Expand Up @@ -796,6 +799,9 @@ void completeFlowWithHousehold() {
testPage.clickElementById("none__checkbox-householdHomeExpenses");
testPage.clickContinue();

assertThat(testPage.getTitle()).isEqualTo(message("ohep-reminder.title"));
testPage.clickButton("Ok");

assertThat(testPage.getTitle()).isEqualTo(message("ohep-electricity.title"));
testPage.clickContinue();

Expand Down

0 comments on commit d55f21f

Please sign in to comment.