From a557ad2089964d52f82a48981ff893555dff7ba8 Mon Sep 17 00:00:00 2001 From: MadeTech Dushan Date: Thu, 10 Mar 2022 12:01:04 +0000 Subject: [PATCH] delete commented out tests --- spec/features/form/validations_spec.rb | 21 ------------------- .../helpers/interuption_screen_helper_spec.rb | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/spec/features/form/validations_spec.rb b/spec/features/form/validations_spec.rb index 1b302cb09..187485614 100644 --- a/spec/features/form/validations_spec.rb +++ b/spec/features/form/validations_spec.rb @@ -147,27 +147,6 @@ RSpec.describe "validations" do click_button("Save and continue") expect(page).to have_current_path("/logs/#{case_log.id}/net-income") end - # it "clears the confirmation question if the amount was amended and the page is returned to using the back button", js: true do - # visit("/logs/#{case_log.id}/net-income") - # fill_in("case-log-earnings-field", with: income_over_soft_limit) - # choose("case-log-incfreq-0-field", allow_label_click: true) - # click_button("Save and continue") - # fill_in("case-log-earnings-field", with: income_under_soft_limit) - # click_button("Save and continue") - # click_link(text: "Back") - # expect(page).to have_no_content("Are you sure this is correct?") - # end - - # it "does not clear the confirmation question if the page is returned to using the back button and the amount is still over the soft limit", js: true do - # visit("/logs/#{case_log.id}/net-income") - # fill_in("case-log-earnings-field", with: income_over_soft_limit) - # choose("case-log-incfreq-0-field", allow_label_click: true) - # click_button("Save and continue") - # check("case-log-override-net-income-validation-override-net-income-validation-field", allow_label_click: true) - # click_button("Save and continue") - # click_link(text: "Back") - # expect(page).to have_content("Are you sure this is correct?") - # end end end diff --git a/spec/helpers/interuption_screen_helper_spec.rb b/spec/helpers/interuption_screen_helper_spec.rb index e02c31ce5..4cd35a4ce 100644 --- a/spec/helpers/interuption_screen_helper_spec.rb +++ b/spec/helpers/interuption_screen_helper_spec.rb @@ -25,7 +25,7 @@ RSpec.describe InteruptionScreenHelper do "argument" => %w[ecstat1 earnings], } expect(display_informative_text(informative_text, case_log)) - .to eq("

This is based on the tenant’s work situation: Full-time – 30 hours or more
The household income you have entered is £750.00 every week

") + .to eq("

This is based on the tenant’s work situation: Full-time – 30 hours or more

The household income you have entered is £750.00 every week

") end end