Skip to content

Commit

Permalink
Adjusts the Explore Our Collections link to only find Source Collecti…
Browse files Browse the repository at this point in the history
…ons (#684). (#689)
  • Loading branch information
bwatson78 committed Sep 29, 2020
1 parent 771f622 commit 684672e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/catalog/_explore_collections.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% presenter = ExploreCollectionsPresenter.new %>
<% collections = presenter.collections %>
<div class="homepage-content-header">
<h2 class="homepage-content-heading explore-collections-heading"><%= link_to 'Explore Our Collections', search_action_path('f[has_model_ssim][]' => 'Collection'), class: "browse-link" %></h2>
<h2 class="homepage-content-heading explore-collections-heading"><%= link_to 'Explore Our Collections', search_action_path('f[has_model_ssim][]' => 'Collection', 'f[visibility_ssi][]' => 'open'), class: "browse-link" %></h2>
</div>
<div class="tiles row justify-content-between">
<% collections.each do |c| %>
Expand Down
4 changes: 3 additions & 1 deletion spec/system/front_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
end

it 'has Explore Our Collections hyperlink', js: true do
expect(page).to have_link('Explore Our Collections')
explore_path = find('a.browse-link', text: "Explore Our Collections")['href']

expect(explore_path).to include('has_model_ssim', 'Collection', 'visibility_ssi', 'open')
end
end

0 comments on commit 684672e

Please sign in to comment.