|
|
|
@ -609,7 +609,7 @@ RSpec.describe LettingsLogsController, type: :request do
|
|
|
|
|
|
|
|
|
|
it "displays filter" do |
|
|
|
|
get "/lettings-logs?bulk_upload_id[]=#{bulk_upload.id}" |
|
|
|
|
expect(page).to have_content("With logs from bulk upload") |
|
|
|
|
expect(page).to have_content("Only logs from this bulk upload") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "hides collection year filter" do |
|
|
|
@ -695,7 +695,7 @@ RSpec.describe LettingsLogsController, type: :request do
|
|
|
|
|
context "without bulk_upload_id" do |
|
|
|
|
it "does not display filter" do |
|
|
|
|
get "/lettings-logs" |
|
|
|
|
expect(page).not_to have_content("With logs from bulk upload") |
|
|
|
|
expect(page).not_to have_content("Only logs from this bulk upload") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "displays button to create a new log" do |
|
|
|
|