From c430a59706b2f056f15bf35daf7ce9f65ad573fa Mon Sep 17 00:00:00 2001 From: JG Date: Thu, 30 Jun 2022 07:55:26 +0100 Subject: [PATCH] added last step --- spec/features/schemes_spec.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index 62107aaac..418b16566 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -379,6 +379,21 @@ RSpec.describe "Schemes scheme Features" do expect(page).to have_content "Check your changes before updating this scheme" end + context "and I select to create a scheme" do + before do + click_link "Create scheme" + end + + it "adds scheme to the list of schemes" do + expect(page).to have_content "Supported housing schemes" + expect(page).to have_content scheme.id_to_display + expect(page).to have_content scheme.service_name + expect(page).to have_content scheme.organisation.name + expect(page).to have_content scheme.stock_owning_organisation.name + expect(page).to have_content "#{scheme.organisation.name} has been created." + end + end + context "when changing answers" do it "displays change links" do assert_selector "a", text: "Change", count: 12