Browse Source

testing there are links to the schemes not just names -2

pull/656/head
JG 3 years ago
parent
commit
f408ae639b
  1. 6
      spec/features/schemes_spec.rb

6
spec/features/schemes_spec.rb

@ -100,11 +100,13 @@ RSpec.describe "Supported housing scheme Features" do
end end
context "when I visit supported housing page" do context "when I visit supported housing page" do
before { visit("supported-housing") } before do
visit("supported-housing")
end
it "shows list of links to schemes" do it "shows list of links to schemes" do
schemes.each do |scheme| schemes.each do |scheme|
expect(page).to have_link((scheme.service_name) expect(page).to have_link(scheme.service_name)
end end
end end
end end

Loading…
Cancel
Save