Skip to content

Commit

Permalink
add expectation for the contents of EE check answers
Browse files Browse the repository at this point in the history
  • Loading branch information
willc-work committed Sep 25, 2024
1 parent 33bfa28 commit 33336dd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/flows/early_result_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@
fill_in_other_income_screen_with_friends_and_family
fill_in_ineligible_gross_income_screen(choice: "Skip remaining questions")
confirm_screen("check_answers")
expect(all(".govuk-summary-card__title").map(&:text))
.to eq(
["Client age",
"Partner and passporting",
"Level of help",
"Type of matter",
"Type of immigration or asylum matter",
"Number of dependants",
"Employment status",
"Client employment income 1",
"Client benefits",
"Client other income"],
)
end

it "back links work as expected" do
Expand Down

0 comments on commit 33336dd

Please sign in to comment.