Browse Source

testing arriving to the new scheme form

pull/671/head
JG 3 years ago
parent
commit
d4bd6670f8
  1. 10
      spec/features/schemes_spec.rb

10
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 it "displays the link to create a new scheme" do
expect(page).to have_link("Create a new supported housing scheme") expect(page).to have_link("Create a new supported housing scheme")
end 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 end
end end

Loading…
Cancel
Save