From 9a2f4bf81428350c0f44b34fd9f3dcc1e5b9a660 Mon Sep 17 00:00:00 2001 From: spokenbird Date: Thu, 6 Jun 2024 10:37:43 -0700 Subject: [PATCH] Fix failing tests --- .../app/journeys/MdBenefitsFlowJourneyTest.java | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/mdbenefits/app/journeys/MdBenefitsFlowJourneyTest.java b/src/test/java/org/mdbenefits/app/journeys/MdBenefitsFlowJourneyTest.java index 77c07df4..c5571f7b 100644 --- a/src/test/java/org/mdbenefits/app/journeys/MdBenefitsFlowJourneyTest.java +++ b/src/test/java/org/mdbenefits/app/journeys/MdBenefitsFlowJourneyTest.java @@ -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 @@ -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"); @@ -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")); } @@ -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(); @@ -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");