|
|
|
|
@ -84,14 +84,11 @@ RSpec.describe "Lettings Log Features" do
|
|
|
|
|
click_link("Set up this lettings log") |
|
|
|
|
select(support_user.organisation.name, from: "lettings-log-owning-organisation-id-field") |
|
|
|
|
click_button("Save and continue") |
|
|
|
|
select("#{support_user.organisation.name} (Owning organisation)", from: "lettings-log-managing-organisation-id-field") |
|
|
|
|
click_button("Save and continue") |
|
|
|
|
select(support_user.name, from: "lettings-log-created-by-id-field") |
|
|
|
|
click_button("Save and continue") |
|
|
|
|
log_id = page.current_path.scan(/\d/).join |
|
|
|
|
visit("lettings-logs/#{log_id}/setup/check-answers") |
|
|
|
|
expect(page).to have_content("Housing provider #{support_user.organisation.name}") |
|
|
|
|
expect(page).to have_content("Managing agent #{support_user.organisation.name}") |
|
|
|
|
expect(page).to have_content("Log owner #{support_user.name}") |
|
|
|
|
expect(page).to have_content("You have answered 3 of 9 questions") |
|
|
|
|
end |
|
|
|
|
|