diff --git a/app/views/case_logs/_log_list.html.erb b/app/views/case_logs/_log_list.html.erb index 3029e5e9c..dd78c7c00 100644 --- a/app/views/case_logs/_log_list.html.erb +++ b/app/views/case_logs/_log_list.html.erb @@ -1,6 +1,9 @@
- <%= pagy.count %> total <%= title.downcase %> + + <%= pagy.count %> total <%= title.downcase %> + + Download (CSV)
diff --git a/spec/requests/case_logs_controller_spec.rb b/spec/requests/case_logs_controller_spec.rb index 6c93d86a5..2799c1ef1 100644 --- a/spec/requests/case_logs_controller_spec.rb +++ b/spec/requests/case_logs_controller_spec.rb @@ -207,6 +207,10 @@ RSpec.describe CaseLogsController, type: :request do end end + it "shows the download csv link" do + expect(page).to have_link("Download (CSV)") + end + context "when there are more than 20 logs" do before do FactoryBot.create_list(:case_log, 25, owning_organisation: organisation, managing_organisation: organisation)