diff --git a/app/controllers/schemes_controller.rb b/app/controllers/schemes_controller.rb index 6c8bd145e..3f588b8e3 100644 --- a/app/controllers/schemes_controller.rb +++ b/app/controllers/schemes_controller.rb @@ -55,6 +55,8 @@ class SchemesController < ApplicationController scheme_support_path(@scheme) when "support" scheme_check_answers_path(@scheme) + when "details" + scheme_primary_client_group_path(@scheme) end redirect_to schemes_path diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index b815960f6..713fca2ac 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -277,6 +277,13 @@ RSpec.describe "Schemes scheme Features" do expect(page).to have_content "Is this scheme registered under the Care Standards Act 2000?" expect(page).to have_content "Total number of units" end + + context "when we amend scheme details" do + it "returns to the primary client group question" do + click_button "Save and continue" + expect(page).to have_content "What client group is this scheme intended for?" + end + end end context "when I select primary client group details" do