diff --git a/spec/features/form/page_routing_spec.rb b/spec/features/form/page_routing_spec.rb index 9a80e8ed5..2a8681cd1 100644 --- a/spec/features/form/page_routing_spec.rb +++ b/spec/features/form/page_routing_spec.rb @@ -75,23 +75,23 @@ RSpec.describe "Form Page Routing" do context "routing based on start date period", js: true do it "the first question in tenancy information section is joint tenancy if startdate is in 2022/23 period" do - visit("/case-logs/#{id}/startdate") + visit("/logs/#{id}/startdate") fill_in("case_log_startdate_3i", with: 10) fill_in("case_log_startdate_2i", with: 10) fill_in("case_log_startdate_1i", with: 2022) click_button("Save and continue") - visit("/case-logs/#{id}") + visit("/logs/#{id}") click_link(text: "Tenancy information") expect(page).to have_current_path("/case-logs/#{id}/joint-tenancy") end it "the first question in tenancy information section is not joint tenancy if startdate is in 2021/22 period" do - visit("/case-logs/#{id}/startdate") + visit("/logs/#{id}/startdate") fill_in("case_log_startdate_3i", with: 10) fill_in("case_log_startdate_2i", with: 10) fill_in("case_log_startdate_1i", with: 2021) click_button("Save and continue") - visit("/case-logs/#{id}") + visit("/logs/#{id}") click_link(text: "Tenancy information") expect(page).to have_current_path("/case-logs/#{id}/tenancy-code") end diff --git a/spec/models/form_handler_spec.rb b/spec/models/form_handler_spec.rb index 89c21e057..70152212d 100644 --- a/spec/models/form_handler_spec.rb +++ b/spec/models/form_handler_spec.rb @@ -16,7 +16,7 @@ RSpec.describe FormHandler do form_handler = FormHandler.instance form = form_handler.get_form(test_form_name) expect(form).to be_a(Form) - expect(form.pages.count).to eq(31) + expect(form.pages.count).to eq(30) end end diff --git a/spec/requests/case_log_controller_spec.rb b/spec/requests/case_log_controller_spec.rb index 4d65ba104..705b6b2b2 100644 --- a/spec/requests/case_log_controller_spec.rb +++ b/spec/requests/case_log_controller_spec.rb @@ -247,7 +247,7 @@ RSpec.describe CaseLogsController, type: :request do FactoryBot.create( :case_log, :about_completed, - startdate: Time.zone.local(2022, 10, 10), + startdate: Time.zone.local(2022, 10, 10), owning_organisation: organisation, managing_organisation: organisation, )