From 2b700d154e8869fec15ffa6a9cc031b924e51839 Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 31 Jan 2022 15:31:05 +0000 Subject: [PATCH] fix page routing spec offences --- spec/features/form/page_routing_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/form/page_routing_spec.rb b/spec/features/form/page_routing_spec.rb index 8f9d42ad9..ad63321d4 100644 --- a/spec/features/form/page_routing_spec.rb +++ b/spec/features/form/page_routing_spec.rb @@ -48,7 +48,7 @@ RSpec.describe "Form Page Routing" do expect(page).to have_current_path("/logs/#{id}/conditional-question/check-answers") end - context "inferred answers routing", js: true do + context "when the answers are inferred", js: true do it "shows question if the answer could not be inferred" do visit("/logs/#{id}/property-postcode") fill_in("case-log-property-postcode-field", with: "PO5 3TE") @@ -56,7 +56,7 @@ RSpec.describe "Form Page Routing" do expect(page).to have_current_path("/logs/#{id}/do-you-know-the-local-authority") end - it "shows question if the answer could not be inferred" do + it "shows question if the answer could not be inferred from an empty input" do visit("/logs/#{id}/property-postcode") click_button("Save and continue") expect(page).to have_current_path("/logs/#{id}/do-you-know-the-local-authority")