From d4bd6670f82d717a33112ad8974a46fd6ad333cc Mon Sep 17 00:00:00 2001 From: JG Date: Thu, 16 Jun 2022 11:17:47 +0100 Subject: [PATCH] testing arriving to the new scheme form --- spec/features/schemes_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index ab02ae301..468e50842 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -226,6 +226,16 @@ RSpec.describe "Schemes scheme Features" do it "displays the link to create a new scheme" do expect(page).to have_link("Create a new supported housing scheme") end + + context "when I press create a new scheme" do + before do + click_link "Create a new supported housing scheme" + end + + it "lets me fill in the scheme details" do + expect(page).to have_content "Scheme name" + end + end end end end