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

updated index page #473

Merged
merged 6 commits into from
Dec 23, 2023
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
47 changes: 13 additions & 34 deletions src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,44 +37,23 @@ language-preferences.english=English
language-preferences.spanish=Espa\u00F1ol
language-preferences.vietnamese=Ti\u1EBFng Vi\u1EC7t

index.title=Louisiana Document Uploader
index.header=Upload your benefits documents easily online.
index.title=Louisiana Digital Assister
index.header=Apply for food benefits easily online.
index.louisiana-partner=Official State of Louisiana partner.
index.upload-description=Upload documents by phone or computer in 5 minutes or less.
index.upload-documents-primary=Upload documents
index.upload-description=Apply for SNAP benefits in about 20 minutes or less.
index.upload-documents-primary=Apply Now <i class="button__icon icon-arrow_forward"></i>
index.recommended-documents=Recommended documents:
index.website-description=This website is an authorized application assistance tool by the State of Louisiana.
index.upload-documents-primary.link=/flow/laDocUpload/clientInfo?lang=en
index.upload-documents-primary.link=/flow/laDigitalAssister/parish?lang=en
index.safe-and-secure=Safe and secure
index.upload-documents-second=Subir documentos
index.upload-documents-second.link=/flow/laDocUpload/clientInfo?lang=es
index.upload-documents-third=T\u1EA3i l\u00EAn t\u00E0i li\u1EC7u
index.upload-documents-third.link=/flow/laDocUpload/clientInfo?lang=vi
index.this-tool=This document upload tool can be used for:
index.identity=<b>Proof of identity</b>
index.identity-examples=A government-issued photo ID such as a driver's license, identity card, passport or Social Security card.
index.immigration-status=<b>For non-citizens: Proof of immigration status</b>
index.immigration-status-examples=A government-issued document such as a Visa, work permission, or Green Card.
index.income=<b>Proof of work income</b>
index.income-examples=Tax documents from 2021 or 2022 (such as Form 1040), or wage documents (such as pay stubs, W-2) for all adults in the household that earn work income.
index.expenses=<b>Proof of money spent on certain services</b>
index.expenses-examples=Rent or mortgage, utility, childcare, or medical bills.
index.immunization-records=<b>For FITAP applications: Proof of immunization</b>
index.immunization-record-examples=Photocopies of immunization records from a licensed healthcare provider or clinic.
index.non-work-income=<b>Proof of non-work income</b>
index.non-work-income-examples=Proof of income letters for non-work income such as Social Security or Supplemental Security Income (SSI) for all adults in the household that earn non-work income.
index.food-programs=<b>Food assistance programs</b>
index.food-programs-l1=<b>SNAP</b> (Supplemental Nutrition Assistance Program, formerly Food Stamps)
index.food-programs-l2=<b>LaCAP</b> (Louisiana Combined Application Project)
index.cash-programs=<b>Cash assistance programs</b>
index.cash-programs-l1=<b>FITAP</b> (Family Independence Temporary Assistance Program)
index.cash-programs-l2=<b>KCSP</b> (Kinship Care Subsidy Program)
index.snap.description=<b>SNAP</b> (Supplemental Nutrition Assistance Program) helps you and your family get the food they need. You'll get an EBT card that you can use like a debit card to buy groceries at most stores and farmer's markets.
index.lacap.description=<b>LaCAP</b> helps Louisianans who are at least 60 years of age, and receive Supplemental Security Income (SSI), get the food they need. It is a simplified version of SNAP.
index.fitap.description=<b>FITAP</b> (Family Independence Temporary Assistance Program) provides cash assistance to help people meet their basic needs until they are able to support themselves.
index.kscp.description=<b>KCSP</b> (Kinship Care Subsidy Program) also provides cash assistance to relatives who are taking care of children who are unable to live with their parents. Eligible relatives can receive monthly cash payments to help cover the costs of caring for the child, such as housing, food, clothing, and other basic needs.
index.looking-for-help=<b>Looking for assistance with other programs?</b>
index.visit-dcfs-website=Visit <a target="_blank" rel="noreferrer noopener" href="https://www.dcfs.louisiana.gov">the Department of Children and Family Services website</a> for more information.
index.upload-documents-second=Aplique ya<i class="button__icon icon-arrow_forward"></i>
index.upload-documents-second.link=/flow/laDigitalAssister/parish?lang=es
index.upload-documents-third=\u0110\u0103ng k\u00FD ngay<i class="button__icon icon-arrow_forward"></i>
index.upload-documents-third.link=/flow/laDigitalAssister/parish?lang=vi
analoo marked this conversation as resolved.
Show resolved Hide resolved
index.apply-for-snap=Apply for SNAP
index.apply-for-snap.paragraph=<b>SNAP</b> (Supplemental Nutrition Assistance Program) helps you and your family get the food they need. You'll get an EBT card that you can use like a debit card to buy groceries at most stores and farmer's markets.
index.assistance-question=Looking for assistance with other programs?
index.assistance-subheader=Visit <a target="_blank" rel="noreferrer noopener" href="https://sspweb.ie.dcfs.la.gov"/>LA CAF\u00C9</a> for more information.</p>

footer.this-benefits-application-is=The document uploader is a service built by Code for America in partnership with Louisiana's Department of Children and Family Services, on behalf of the people of Louisiana.
footer.privacy=Privacy Policy
Expand Down
12 changes: 6 additions & 6 deletions src/main/resources/messages_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ index.title=Cargador de documentos de Luisiana
index.header=Suba los documentos de sus beneficios en l�nea f�cilmente.
index.louisiana-partner=Socio oficial del estado de Luisiana.
index.upload-description=Suba documentos utilizando su tel�fono o computadora en 5 minutos o menos.
index.upload-documents-primary=Subir documentos
index.upload-documents-primary=Aplique ya<i class="button__icon icon-arrow_forward"></i>
index.recommended-documents=Documentos recomendados:
index.website-description=Este sitio web es una herramienta de asistencia para solicitudes autorizada por el estado de Luisiana.
index.upload-documents-primary.link=/flow/laDocUpload/clientInfo?lang=es
index.upload-documents-primary.link=/flow/laDigitalAssister/parish?lang=es
index.safe-and-secure=Seguro y protegido
index.upload-documents-second=Upload documents
index.upload-documents-second.link=/flow/laDocUpload/clientInfo?lang=en
index.upload-documents-third=T\u1ea3i l�n t�i li\u1ec7u
index.upload-documents-third.link=/flow/laDocUpload/clientInfo?lang=vi
index.upload-documents-second=Apply Now <i class="button__icon icon-arrow_forward"></i>
index.upload-documents-second.link=/flow/laDigitalAssister/parish?lang=en
index.upload-documents-third=\u0110\u0103ng k\u00FD ngay<i class="button__icon icon-arrow_forward"></i>
index.upload-documents-third.link=/flow/laDigitalAssister/parish?lang=vi
index.this-tool=Esta herramienta puede utilizarse para subir los siguientes documentos:
index.identity=<b>Comprobante de identidad</b>
index.identity-examples=Una identificaci�n emitida por el gobierno, como una licencia de conducir, un documento de identidad, un pasaporte o una tarjeta de Seguro Social.
Expand Down
12 changes: 6 additions & 6 deletions src/main/resources/messages_vi.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ index.title=C
index.header=D\u1ec5 d�ng t\u1ea3i c�c t�i li\u1ec7u v\u1ec1 quy\u1ec1n l\u1ee3i c\u1ee7a qu� v\u1ecb l�n m\u1ea1ng.
index.louisiana-partner=\u0110\u1ed1i t�c ch�nh th\u1ee9c c\u1ee7a Ti\u1ec3u Bang Louisiana.
index.upload-description=T\u1ea3i t�i li\u1ec7u l�n b\u1eb1ng \u0111i\u1ec7n tho\u1ea1i ho\u1eb7c m�y t�nh trong 5 ph�t tr\u1edf xu\u1ed1ng.
index.upload-documents-primary=T\u1ea3i l�n t�i li\u1ec7u
index.upload-documents-primary=\u0110\u0103ng k\u00FD ngay<i class="button__icon icon-arrow_forward"></i>
index.recommended-documents=T�i li\u1ec7u \u0111\u1ec1 ngh\u1ecb:
index.website-description=Trang web n�y l� m\u1ed9t c�ng c\u1ee5 h\u1ed7 tr\u1ee3 l�m \u0111\u01a1n \u0111\u01b0\u1ee3c ph�p c\u1ee7a Ti\u1ec3u Bang Louisiana.
index.upload-documents-primary.link=/flow/laDocUpload/clientInfo?lang=vi
index.upload-documents-primary.link=/flow/laDigitalAssister/parish?lang=vi
index.safe-and-secure=An to�n v� b\u1ea3o m\u1eadt
index.upload-documents-second=Upload documents
index.upload-documents-second.link=/flow/laDocUpload/clientInfo?lang=en
index.upload-documents-third=Subir documentos
index.upload-documents-third.link=/flow/laDocUpload/clientInfo?lang=es
index.upload-documents-second=Apply Now <i class="button__icon icon-arrow_forward"></i>
index.upload-documents-second.link=/flow/laDigitalAssister/parish?lang=en
index.upload-documents-third=Aplique ya<i class="button__icon icon-arrow_forward"></i>
index.upload-documents-third.link=/flow/laDigitalAssister/parish?lang=es
index.this-tool=C�ng c\u1ee5 t\u1ea3i l�n t�i li\u1ec7u n�y c� th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho:
index.identity=<b>Gi\u1ea5y t\u1edd t�y th�n</b>
index.identity-examples=Gi\u1ea5y t\u1edd t�y th�n c� h�nh do ch�nh ph\u1ee7 c\u1ea5p nh\u01b0 gi\u1ea5y ph�p l�i xe, th\u1ebb c\u0103n c\u01b0\u1edbc, h\u1ed9 chi\u1ebfu ho\u1eb7c th\u1ebb An Sinh X� H\u1ed9i.
Expand Down
96 changes: 14 additions & 82 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ <h1 class="spacing-below-15 spacing-above-0" th:utext="#{index.header}"></h1>
<p class="text--help spacing-below-25">
<small th:text="#{index.louisiana-partner}"></small>
</p>

<a id="upload_docs_1" th:href="#{index.upload-documents-primary.link}"
th:text="#{index.upload-documents-primary}"
th:utext="#{index.upload-documents-primary}"
th:rel="keep-params"
class="button button--primary spacing-below-10"></a>
class="button button--primary spacing-below-10"><i class="button__icon icon-arrow_forward"></i></a>
<p class="text--help spacing-below-25">
<small>
<i class="icon-lock_outline"></i>
Expand All @@ -27,11 +26,11 @@ <h1 class="spacing-below-15 spacing-above-0" th:utext="#{index.header}"></h1>

<div class="display-inline-grid">
<a id="upload_docs_2" th:href="#{index.upload-documents-second.link}"
th:text="#{index.upload-documents-second}"
th:utext="#{index.upload-documents-second}"
th:rel="keep-params"
class="button button--small spacing-below-15 button--other"></a>
<a id="upload_docs_3" th:href="#{index.upload-documents-third.link}"
th:text="#{index.upload-documents-third}"
th:utext="#{index.upload-documents-third}"
th:rel="keep-params"
class="button button--small button--other"></a>
</div>
Expand Down Expand Up @@ -75,89 +74,22 @@ <h1 class="spacing-below-15 spacing-above-0" th:utext="#{index.header}"></h1>
</div>
</section>

<section class="slab slab--white">
<h2 class="spacing-above-5 spacing-below-35 text--centered"
th:text="#{index.recommended-documents}"></h2>
<div class="grid">
<div class="grid__item width-five-twelfths">
<span class="large-icon"><i class="icon-person"></i></span>
<p class="spacing-below-5 spacing-above-10" th:utext="#{index.identity}"></p>
<p th:text="#{index.identity-examples}"></p>
</div>
<div class="grid__item width-five-twelfths shift-one-twelfth">
<th:block th:replace="~{fragments/icons :: smallMoneyIcon}"/>
<p class="spacing-below-5 spacing-above-10" th:utext="#{index.income}"></p>
<p th:text="#{index.income-examples}"></p>
</div>
</div>

<div class="grid">
<div class="grid__item width-five-twelfths">
<th:block th:replace="~{fragments/icons :: smallMoneyIcon}"/>
<p class="spacing-below-5 spacing-above-10" th:utext="#{index.non-work-income}"></p>
<p th:text="#{index.non-work-income-examples}"></p>
</div>
<section class="slab slab--yellow spacing-below-0">
<h2 class="spacing-above-5 spacing-below-35"
th:text="#{index.apply-for-snap}"></h2>

<div class="grid__item width-five-twelfths shift-one-twelfth">
<th:block th:replace="~{fragments/icons :: monetization}"/>
<p class="spacing-below-5 spacing-above-10" th:utext="#{index.expenses}"></p>
<p th:text="#{index.expenses-examples}"></p>
</div>
<div class="spacing-above-35">
<p th:utext="#{index.apply-for-snap.paragraph}"></p>
</div>

<div class="grid">
<div class="grid__item width-five-twelfths">
<span class="large-icon">
<i class="icon-">&#xE539;</i>
</span>
<p class="spacing-below-5 spacing-above-10" th:utext="#{index.immigration-status}"></p>
<p th:text="#{index.immigration-status-examples}"></p>
</div>

<div class="grid__item width-five-twelfths shift-one-twelfth">
<th:block th:replace="~{fragments/icons :: syringe}"/>
<p class="spacing-below-5 spacing-above-10" th:utext="#{index.immunization-records}"></p>
<p th:text="#{index.immunization-record-examples}"></p>
</div>
</div>
</section>

<section class="slab slab--yellow spacing-below-0">
<h2 class="spacing-above-5 spacing-below-35 text--centered"
th:text="#{index.this-tool}"></h2>
<div class="grid">
<div class="grid__item width-five-twelfths">
<p class="spacing-below-10" th:utext="#{index.food-programs}"></p>
<ul class="bulleted-list-items">
<li th:utext="#{index.food-programs-l1}"></li>
<li th:utext="#{index.food-programs-l2}"></li>
</ul>
</div>
<div class="grid__item width-five-twelfths shift-one-twelfth">
<p class="spacing-below-0" th:utext="#{index.cash-programs}"></p>
<ul class="bulleted-list-items">
<li th:utext="#{index.cash-programs-l1}"></li>
<li th:utext="#{index.cash-programs-l2}"></li>
</ul>
</div>
</div>
<div class="grid">
<div class="grid__item width-five-twelfths">
<div class="blurb" th:utext="#{index.snap.description}"></div>
<div class="blurb" th:utext="#{index.lacap.description}"></div>
</div>
<div class="grid__item width-five-twelfths shift-one-twelfth">
<div class="blurb" th:utext="#{index.fitap.description}"></div>
<div class="blurb" th:utext="#{index.kscp.description}"></div>
</div>
</div>

<div class="grid shift-one-twelfth spacing-above-35">
<p th:utext="#{index.looking-for-help}"></p>
<p th:utext="#{index.visit-dcfs-website}"></p>
<section class="slab slab--white">
<h2 class="spacing-above-5 spacing-below-35"
th:text="#{index.assistance-question}"></h2>
<div class="spacing-above-35">
<p th:utext="#{index.assistance-subheader}"></p>
</div>


</section>
</main>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ static void tearDownAll() {

@Test
void userCanCompleteDocumentUploadFlow() {
testPage.clickElementById("translate-button");
testPage.clickLink("Español");
testPage.clickElementById("translate-button");
testPage.clickLink("English");

testPage.clickButton("Upload documents");
testPage.navigateToFlowScreen("laDocUpload/clientInfo");

// Client Info
testPage.enter("firstName", "Britney");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,22 @@ void socialSecurityFlow() {

@Test
void fullDigitalAssisterFlow() {
// Parish
testPage.navigateToFlowScreen("laDigitalAssister/parish");
testPage.clickContinue();
assertThat(testPage.hasErrorText(message("error.missing-general"))).isTrue();
// Landing screen (language toggled)
assertThat(testPage.getTitle()).isEqualTo("Louisiana Digital Assister");
testPage.clickElementById("translate-button");
String languages = testPage.getElementText("menu2");
assertThat(languages).contains("Español");
assertThat(languages).contains("English");
assertThat(languages).contains("Tiếng Việt");
testPage.clickLink("Español");
assertThat(testPage.getElementText("translate-button")).contains("Traducir");
testPage.clickElementById("translate-button");
testPage.clickLink("Tiếng Việt");
assertThat(testPage.getElementText("translate-button")).contains("Phiên dịch");
testPage.clickElementById("translate-button");
testPage.clickLink("English");

testPage.clickButton("Apply Now");

testPage.selectFromDropdown("parish", "Orleans");
testPage.clickContinue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,41 +196,9 @@ void ssnInputFlow() {

}

@Test
void uploadDocumentButton() {
// Landing page
assertThat(testPage.getTitle()).isEqualTo("Louisiana Document Uploader");

testPage.clickButton("Tải lên tài liệu");
assertThat(testPage.getElementText("header")).isEqualTo("Trước khi quý vị bắt đầu, chúng tôi cần so sánh đúng tài liệu của quý vị với đơn của quý vị");
testPage.clickLink("< Quay lại");

testPage.clickButton("Subir documentos");
assertThat(testPage.getElementText("header")).isEqualTo("Antes de comenzar necesitamos vincular su caso con sus documentos");
testPage.clickLink("< Volver");

testPage.clickButton("Upload documents");
assertThat(testPage.getElementText("header")).isEqualTo("Before you start, we need to match your documents to your application");
}

@Test
void fullUploadDocumentFlow() {
// Landing screen (language toggled)
assertThat(testPage.getTitle()).isEqualTo("Louisiana Document Uploader");
testPage.clickElementById("translate-button");
String languages = testPage.getElementText("menu2");
assertThat(languages).contains("Español");
assertThat(languages).contains("English");
assertThat(languages).contains("Tiếng Việt");
testPage.clickLink("Español");
assertThat(testPage.getElementText("translate-button")).contains("Traducir");
testPage.clickElementById("translate-button");
testPage.clickLink("Tiếng Việt");
assertThat(testPage.getElementText("translate-button")).contains("Phiên dịch");
testPage.clickElementById("translate-button");
testPage.clickLink("English");

testPage.clickButton("Upload documents");
testPage.navigateToFlowScreen("laDocUpload/clientInfo");

// Client Info
assertThat(testPage.getTitle()).isEqualTo("Match Info");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ protected void initTestPage() {
@Test
void staticPagesJourney() {
// Landing screen
assertThat(testPage.getTitle()).isEqualTo("Louisiana Document Uploader");
assertThat(testPage.getTitle()).isEqualTo("Louisiana Digital Assister");
assertThat(driver.getWindowHandles().size()).isEqualTo(1);
String originalWindow = driver.getWindowHandle();
// Back on landing screen
assertThat(testPage.getTitle()).isEqualTo("Louisiana Document Uploader");
assertThat(testPage.getTitle()).isEqualTo("Louisiana Digital Assister");
assertThat(driver.getWindowHandles().size()).isEqualTo(1);
// Go to privacy policy tab
testPage.clickLink("Privacy Policy");
Expand Down