@ -131,8 +135,8 @@ RSpec.describe CollectionResourcesController, type: :request do
end
it"displays next year banner"do
expect(page).tohave_content("The 2025 to 2026 collection resources are not yet available to users.")
expect(page).tohave_link("Release the 2025 to 2026 collection resources to users",href:confirm_mandatory_collection_resources_release_path(year:2025))
expect(page).tohave_content("The #{next_collection_start_year} to #{next_collection_end_year} collection resources are not yet available to users.")
expect(page).tohave_link("Release the #{next_collection_start_year} to #{next_collection_end_year} collection resources to users",href:confirm_mandatory_collection_resources_release_path(year:next_collection_start_year))
end
end
@ -176,7 +180,7 @@ RSpec.describe CollectionResourcesController, type: :request do
context"when the collection year has not started yet"do
@ -185,8 +189,8 @@ RSpec.describe CollectionResourcesController, type: :request do
end
it"displays next year banner"do
expect(page).tohave_content("The 2025 to 2026 collection resources are not yet available to users.")
expect(page).tohave_content("Once you have uploaded all the required 2025 to 2026 collection resources, you will be able to release them to users.")
expect(page).tohave_content("The #{next_collection_start_year} to #{next_collection_end_year} collection resources are not yet available to users.")
expect(page).tohave_content("Once you have uploaded all the required #{next_collection_start_year} to #{next_collection_end_year} collection resources, you will be able to release them to users.")