From e963e5d411caceb7955efc183c0f678669750611 Mon Sep 17 00:00:00 2001 From: JG Date: Mon, 27 Jun 2022 12:01:21 +0100 Subject: [PATCH] checking the back functionality for secondary group --- spec/features/schemes_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index c2a199081..b3ea1a39b 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -331,6 +331,17 @@ RSpec.describe "Schemes scheme Features" do expect(page).to have_content "What support does this scheme provide?" end + context "when I press the back button" do + before do + click_link "Back" + end + + it "lets me select the secondary group" do + expect(page).to have_current_path("/schemes/#{scheme.id}/secondary-client-group") + expect(page).to have_content "What is the other client group?" + end + end + context "when I select the support answers" do before do choose "Floating support"