Skip to content

Commit

Permalink
debug issue with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willc-work committed Oct 14, 2024
1 parent 9be27f9 commit b4c7aa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/results_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def show
# Testing back button spec
# pp @early_result_type
# puts FeatureFlags.enabled?(:ee_banner, session_data)
# pp session_data

@early_eligibility_selection = session_data.fetch("early_eligibility_selection", nil)
@model = CalculationResult.new(session_data)
# we'll need to move this tracking point or do something with it
Expand Down
3 changes: 3 additions & 0 deletions spec/flows/early_result_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@
expect(page).to have_content "Your client's key eligibility totals"
end

# Something must be missing in the session data because the back button sends us to the start page
# in the test but not on the actual service.
# however the early_result and feature flag session data is available
# it "when I go straight to results and use the back button it shows the banner" do
# confirm_screen("outgoings")
# expect(page).to have_content("Gross monthly income limit exceeded")
Expand Down

0 comments on commit b4c7aa2

Please sign in to comment.