@ -52,5 +52,6 @@
<% end %>
<%= govuk_button_link_to "Add a location", new_location_path(id: @scheme.id), secondary: true %>
<%== render partial: "pagy/nav", locals: { pagy: @pagy, item_name: "locations" } %>
@ -243,6 +243,16 @@ RSpec.describe "Schemes scheme Features" do
end
context "when the user clicks add location" do
before do
click_link("Locations")
click_link("Add a location")
it "shows the new location form" do
expect(page).to have_content("Add a location to this scheme")