Browse Source

feat: update tests for different user visibility levels

CLDC-3014-schemes-locations-csv-download
natdeanlewissoftwire 1 year ago
parent
commit
9533fde01e
  1. 3
      spec/requests/organisations_controller_spec.rb

3
spec/requests/organisations_controller_spec.rb

@ -69,6 +69,9 @@ RSpec.describe OrganisationsController, type: :request do
get "/organisations/#{specific_organisation.id}/schemes", headers:, params: {}
end
before do
get "/organisations/#{specific_organisation.id}/schemes", headers:, params: {}
end
it "shows scheme and location download links" do
expect(page).to have_link("Download schemes (CSV)", href: schemes_csv_download_organisation_path(specific_organisation, download_type: "schemes"))
expect(page).to have_link("Download locations (CSV)", href: schemes_csv_download_organisation_path(specific_organisation, download_type: "locations"))

Loading…
Cancel
Save