From afddfa872440df92ee136035fbca3ea7081dcd9d Mon Sep 17 00:00:00 2001 From: JG Date: Mon, 25 Jul 2022 12:59:05 +0100 Subject: [PATCH] test --- spec/features/form/check_answers_page_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/features/form/check_answers_page_spec.rb b/spec/features/form/check_answers_page_spec.rb index f495e9897..4e4253470 100644 --- a/spec/features/form/check_answers_page_spec.rb +++ b/spec/features/form/check_answers_page_spec.rb @@ -144,6 +144,13 @@ RSpec.describe "Form Check Answers Page" do expect(page).to have_content("Location") expect(page).to have_content(location.name) end + + it "displays inferred postcode with the location_admin_district" do + case_log.update!(location:) + visit("/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