Browse Source

Revert "Remove test"

This reverts commit d4dd2ea7f2.
pull/2723/head
Manny Dinssa 2 years ago
parent
commit
a602a4bb73
  1. 20
      spec/features/form/check_answers_page_lettings_logs_spec.rb

20
spec/features/form/check_answers_page_lettings_logs_spec.rb

@ -159,6 +159,26 @@ RSpec.describe "Lettings Log Check Answers Page" do
end
end
context "when viewing setup section answers" do
before do
FactoryBot.create(:location, scheme:, startdate: Time.zone.local(2021, 1, 1))
end
it "displays inferred postcode with the location id" do
lettings_log.update!(location:)
visit("/lettings-logs/#{id}/setup/check-answers")
expect(page).to have_content("Location")
expect(page).to have_content(location.name)
end
it "displays inferred postcode with the location_admin_district" do
lettings_log.update!(location:)
visit("/lettings-logs/#{id}/setup/check-answers")
expect(page).to have_content("Location")
expect(page).to have_content(location.location_admin_district)
end
end
context "when the user changes their answer from check answer page" do
it "routes back to check answers" do
visit("/lettings-logs/#{empty_lettings_log.id}/accessibility-requirements")

Loading…
Cancel
Save