Browse Source

delete commented out tests

pull/338/head
MadeTech Dushan 3 years ago
parent
commit
a557ad2089
  1. 21
      spec/features/form/validations_spec.rb
  2. 2
      spec/helpers/interuption_screen_helper_spec.rb

21
spec/features/form/validations_spec.rb

@ -147,27 +147,6 @@ RSpec.describe "validations" do
click_button("Save and continue") click_button("Save and continue")
expect(page).to have_current_path("/logs/#{case_log.id}/net-income") expect(page).to have_current_path("/logs/#{case_log.id}/net-income")
end 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
end end

2
spec/helpers/interuption_screen_helper_spec.rb

@ -25,7 +25,7 @@ RSpec.describe InteruptionScreenHelper do
"argument" => %w[ecstat1 earnings], "argument" => %w[ecstat1 earnings],
} }
expect(display_informative_text(informative_text, case_log)) expect(display_informative_text(informative_text, case_log))
.to eq("<p class='govuk-body'>This is based on the tenant’s work situation: <strong>Full-time – 30 hours or more</strong><br>The household income you have entered is <strong>£750.00 every week</strong></p>") .to eq("<p class='govuk-body'>This is based on the tenant’s work situation: <strong>Full-time – 30 hours or more</strong><br><br>The household income you have entered is <strong>£750.00 every week</strong></p>")
end end
end end

Loading…
Cancel
Save