Skip to content

Commit

Permalink
Adds a spec to cover new feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Morris authored and cbeer committed Sep 30, 2020
1 parent 49de262 commit ebcb590
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/features/search_context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
end
end

it "does not display stale previous and next links for direct item views" do
search_for ''
click_on 'Pluvial nectar of blessings'

# Go to the number 9 result separately
visit '/catalog/2003546302'
expect(page).not_to have_selector '.page-links'
expect(page).not_to have_content "« Previous | 10 of 30 | Next »"
end

context "navigating between search results using context pagination" do
it "updates the back to search link with the current search pagination context" do
search_for ''
Expand Down

0 comments on commit ebcb590

Please sign in to comment.