Skip to content

Commit

Permalink
Use Maryland theme
Browse files Browse the repository at this point in the history
1. Update messages.properties
2. Fix toolbar and footer
3. Update landing page
  • Loading branch information
vrajmohan committed Jan 14, 2024
1 parent a7cb6d8 commit 1ed7cd1
Showing 1 changed file with 4 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,6 @@ void raceEthnicityFlow() {
loadHouseHoldData("Person", "Two", "12", "12", "2016");
loadHouseHoldData("Person", "Three", "12", "12", "2017");

testPage.clickElementById("translate-button");
testPage.clickLink("Tiếng Việt");

testPage.navigateToFlowScreen("mdBenefitsFlow/ethnicitySelection");
// the titles don't seem to render correctly in test
// assertThat(testPage.getTitle()).isEqualTo("L\u1ef1a ch\u1ecdn dân t\u1ed9c");
Expand All @@ -255,11 +252,10 @@ void raceEthnicityFlow() {
.filter(ei -> ei.getAttribute("value").equals("Hispanic or Latino"))
.forEach(ei -> {
ei.click();
// make sure found them, even with the site language being in Vietnamese
assertThat(ei.isSelected()).isTrue();
});

testPage.clickContinue(Locale.forLanguageTag("vi"));
testPage.clickContinue();
testPage.goBack();

//assertThat(testPage.getTitle()).isEqualTo("L\u1ef1a ch\u1ecdn dân t\u1ed9c");
Expand All @@ -270,7 +266,7 @@ void raceEthnicityFlow() {
assertThat(element.getAttribute("value")).isEqualTo("Hispanic or Latino");
});

testPage.clickContinue(Locale.forLanguageTag("vi"));
testPage.clickContinue();
//assertThat(testPage.getTitle()).isEqualTo("L\u1ef1a ch\u1ecdn ch\u1ee7ng t\u1ed9c");

// set for the applicant
Expand All @@ -292,7 +288,7 @@ void raceEthnicityFlow() {
assertThat(ri.isSelected()).isTrue();
});

testPage.clickContinue(Locale.forLanguageTag("vi"));
testPage.clickContinue();
testPage.goBack();

//assertThat(testPage.getTitle()).isEqualTo("L\u1ef1a ch\u1ecdn ch\u1ee7ng t\u1ed9c");
Expand All @@ -310,9 +306,6 @@ void raceEthnicityFlow() {
assertThat(value).isNotEqualTo("American Indian");
});

// change the language back
testPage.clickElementById("translate-button");
testPage.clickLink("English");
assertThat(testPage.getTitle()).isEqualTo("Race Selection");
}

Expand All @@ -326,20 +319,7 @@ void docUploadSkipTest() {

@Test
void fullDigitalAssisterFlow() {
// 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");
assertThat(testPage.getTitle()).isEqualTo("Maryland Benefits Application");

testPage.clickButton("Apply Now");

Expand Down

0 comments on commit 1ed7cd1

Please sign in to comment.