Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spokenbird committed Jun 6, 2024
1 parent 97e5466 commit 9a2f4bf
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void mainFlowMoneyOnHandQuestionDoesntShowForNonSnapApp() {

testPage.navigateToFlowScreen("mdBenefitsFlow/ohepHeating");
testPage.clickContinue();
assertThat(testPage.getTitle()).isEqualTo(message("medical-expenses.title"));
assertThat(testPage.getTitle()).isEqualTo(message("ohep-thank-you.title"));
}

@Test
Expand Down Expand Up @@ -388,7 +388,9 @@ void mainFlowHowMuchMoneyOnHandTest() {

assertThat(testPage.getTitle()).isEqualTo(message("expedited-snap-money-on-hand.title"));
testPage.clickButton("Yes");
assertThat(testPage.getTitle()).isEqualTo(message("medical-expenses.title"));

// OHEP Thank you
assertThat(testPage.getTitle()).isEqualTo(message("ohep-thank-you.title"));

testPage.goBack();
testPage.clickButton("No");
Expand All @@ -403,6 +405,9 @@ void mainFlowHowMuchMoneyOnHandTest() {
testPage.enter("expeditedMoneyOnHandAmount", "2000");
testPage.clickContinue();

assertThat(testPage.getTitle()).isEqualTo(message("ohep-thank-you.title"));
testPage.clickButton("Next");

assertThat(testPage.getTitle()).isEqualTo(message("medical-expenses.title"));
}

Expand Down Expand Up @@ -675,7 +680,10 @@ void completeFlowApplicantOnly() {

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


assertThat(testPage.getTitle()).isEqualTo(message("ohep-thank-you.title"));
testPage.clickButton("Next");

assertThat(testPage.getTitle()).isEqualTo(message("medical-expenses.title"));
testPage.clickElementById("medicalExpenses-HEALTH_MEDICAL_INSURANCE-label");
testPage.clickContinue();
Expand Down Expand Up @@ -806,6 +814,9 @@ void completeFlowWithHousehold() {

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

assertThat(testPage.getTitle()).isEqualTo(message("ohep-thank-you.title"));
testPage.clickButton("Next");

assertThat(testPage.getTitle()).isEqualTo(message("medical-expenses.title"));
testPage.clickElementById("medicalExpenses-HEALTH_MEDICAL_INSURANCE-label");
Expand Down

0 comments on commit 9a2f4bf

Please sign in to comment.