|
|
|
@ -388,7 +388,7 @@ RSpec.describe "Test Features" do
|
|
|
|
|
fill_in("case-log-net-income-field", with: income_over_soft_limit) |
|
|
|
|
choose("case-log-net-income-frequency-weekly-field", allow_label_click: true) |
|
|
|
|
click_button("Save and continue") |
|
|
|
|
expect(page).to have_content("For net incomes that fall outside the expected range you must confirm they're correct") |
|
|
|
|
expect(page).to have_content("Are you sure this is correct?") |
|
|
|
|
check("case-log-override-net-income-validation-override-net-income-validation-field", allow_label_click: true) |
|
|
|
|
click_button("Save and continue") |
|
|
|
|
expect(page).to have_current_path("/case_logs/#{case_log.id}/net_income_uc_proportion") |
|
|
|
@ -414,7 +414,7 @@ RSpec.describe "Test Features" do
|
|
|
|
|
fill_in("case-log-net-income-field", with: income_under_soft_limit) |
|
|
|
|
click_button("Save and continue") |
|
|
|
|
click_link(text: "Back") |
|
|
|
|
expect(page).not_to have_content("For net incomes that fall outside the expected range you must confirm they're correct") |
|
|
|
|
expect(page).not_to have_content("Are you sure this is correct?") |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|