diff --git a/spec/flows/early_result_change_answers_flow_spec.rb b/spec/flows/early_result_change_answers_flow_spec.rb index c263b8919..91878d5aa 100644 --- a/spec/flows/early_result_change_answers_flow_spec.rb +++ b/spec/flows/early_result_change_answers_flow_spec.rb @@ -29,30 +29,6 @@ def stub_under_18_eligible end context "when the new ee_banner is implemented", :ee_banner do - context "when skipping to results page", :stub_cfe_gross_ineligible do - before do - start_assessment - fill_in_forms_until(:employment_status) - fill_in_employment_status_screen(choice: "Employed") - fill_in_income_screen(gross: "4000") - fill_in_benefits_screen - fill_in_other_income_screen - end - - it "shows the banner when returning to the page with the back button" do - expect(page).to have_content("Gross monthly income limit exceeded by") - expect(page).to have_content("We have enough information to tell you that your client is not likely to qualify for legal aid.") - expect(page).to have_content("Go to results page") - click_on "Go to results page" - expect(page).to have_current_path(/\A\/check-result/) - click_on "Back" - pp page - # confirm_screen("outgoings") - expect(page).to have_content("Gross monthly income limit exceeded by") - end - - end - context "when starting as ineligible on gross income but continuing the check", :stub_cfe_gross_ineligible do before do start_assessment diff --git a/spec/flows/early_result_spec.rb b/spec/flows/early_result_spec.rb index ff03dd989..8056c11c2 100644 --- a/spec/flows/early_result_spec.rb +++ b/spec/flows/early_result_spec.rb @@ -96,6 +96,16 @@ expect(page).to have_content "Your client's key eligibility totals" end + # 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") + # click_on "Go to results page" + # expect(page).to have_current_path(/\A\/check-result/) + # expect(page).to have_content "Your client's key eligibility totals" + # click_on "Back" + # expect(page).to have_content("Gross monthly income limit exceeded by") + # end + context "when the early eligibility changes" do it "back links and banner work as expected" do confirm_screen("outgoings")