|
|
@ -89,8 +89,7 @@ RSpec.describe "Lettings Log Features" do |
|
|
|
log_id = page.current_path.scan(/\d/).join |
|
|
|
log_id = page.current_path.scan(/\d/).join |
|
|
|
visit("lettings-logs/#{log_id}/setup/check-answers") |
|
|
|
visit("lettings-logs/#{log_id}/setup/check-answers") |
|
|
|
expect(page).to have_content("Housing provider #{support_user.organisation.name}") |
|
|
|
expect(page).to have_content("Housing provider #{support_user.organisation.name}") |
|
|
|
expect(page).to have_content("Log owner #{support_user.name}") |
|
|
|
expect(page).to have_content("You have answered 2 of 8 questions") |
|
|
|
expect(page).to have_content("You have answered 3 of 9 questions") |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
@ -119,8 +118,7 @@ RSpec.describe "Lettings Log Features" do |
|
|
|
expect(page).to have_current_path("/lettings-logs/#{log_id}/needs-type") |
|
|
|
expect(page).to have_current_path("/lettings-logs/#{log_id}/needs-type") |
|
|
|
visit("lettings-logs/#{log_id}/setup/check-answers") |
|
|
|
visit("lettings-logs/#{log_id}/setup/check-answers") |
|
|
|
expect(page).not_to have_content("Owning organisation #{user.organisation.name}") |
|
|
|
expect(page).not_to have_content("Owning organisation #{user.organisation.name}") |
|
|
|
expect(page).not_to have_content("User #{user.name}") |
|
|
|
expect(page).not_to have_content("Log owner #{user.name}") |
|
|
|
expect(page).to have_content("You have answered 0 of 6 questions") |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|