|
|
|
|
@ -149,7 +149,7 @@ RSpec.describe "validations" do
|
|
|
|
|
it "prompts the user to confirm the value is correct with an interruption screen" do |
|
|
|
|
expect(page).to have_current_path("/lettings-logs/#{lettings_log.id}/net-income-value-check") |
|
|
|
|
expect(page).to have_content("You told us that the household’s income is £750.00 weekly") |
|
|
|
|
expect(page).to have_content("This is higher than we would expect for their working situation.") |
|
|
|
|
expect(page).to have_content("This is higher than we would expect for the household’s working situation.") |
|
|
|
|
expect(page).not_to have_button("Save changes") |
|
|
|
|
click_button("Confirm and continue") |
|
|
|
|
expect(page).to have_current_path("/lettings-logs/#{lettings_log.id}/net-income-uc-proportion") |
|
|
|
|
|