Skip to content

Commit

Permalink
Fix tests that were failing
Browse files Browse the repository at this point in the history
  • Loading branch information
bseeger committed Jan 31, 2024
1 parent 9c9a501 commit fe3d03e
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ void redirectMDThink() {
}

@Test
void selectHelpNeededFlow() {
void selectHelpNeededAndChooseProgramFlow() {
// select help needed
testPage.navigateToFlowScreen("mdBenefitsFlow/selectHelpNeeded");
testPage.clickContinue();
assertThat(testPage.getTitle()).isEqualTo("Select help");
Expand All @@ -59,18 +60,16 @@ void selectHelpNeededFlow() {
testPage.clickElementById("helpNeeded-OTHER");
testPage.clickContinue();

// choose program flow
assertThat(testPage.getTitle()).isEqualTo("Choose programs");
assertThat(testPage.findElementById("programs-SNAP")).isNotNull();
assertThat(testPage.findElementById("programs-OTHER")).isNotNull();
assertThat(testPage.elementDoesNotExistById("programs-OHEP")).isTrue();
assertThat(testPage.elementDoesNotExistById("programs-TCA")).isTrue();
}
@Test
void chooseProgramsFlow() {
testPage.navigateToFlowScreen("mdBenefitsFlow/choosePrograms");
testPage.clickContinue();

testPage.clickContinue();
assert (testPage.hasErrorText(message("error.missing-general")));

testPage.clickElementById("programs-SNAP");
testPage.clickContinue();

Expand Down Expand Up @@ -364,13 +363,13 @@ void completeFlow() {
testPage.clickContinue();
assertThat(testPage.getTitle()).isEqualTo("County");

testPage.selectFromDropdown("county", "Baltimore City");
testPage.selectFromDropdown("county", "Baltimore County");
testPage.clickContinue();
assertThat(testPage.getTitle()).isEqualTo("Select help");

testPage.clickElementById("helpNeeded-Help with food");
testPage.clickElementById("helpNeeded-Help with utilities");
testPage.clickElementById("helpNeeded-Help with money for children");
testPage.clickElementById("helpNeeded-SNAP");
testPage.clickElementById("helpNeeded-OHEP");
testPage.clickElementById("helpNeeded-TCA");
testPage.clickContinue();

// choose program
Expand Down

0 comments on commit fe3d03e

Please sign in to comment.