Skip to content

Commit

Permalink
Updates specs to include new document_id attribute
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 1a524fb commit 49de262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/features/search_context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
click_on 'Pluvial nectar of blessings'
expect(page).to have_content "« Previous | 10 of 30 | Next »"
prev = page.find(".pagination-search-widgets .previous")
expect(prev['data-context-href']).to eq "/catalog/2003546302/track?counter=9&search_id=#{search_id}"
expect(prev['data-context-href']).to eq "/catalog/2003546302/track?counter=9&document_id=2003546302&search_id=#{search_id}"

click_on "« Previous"

prev = page.find(".pagination-search-widgets .previous")
expect(prev['data-context-href']).to eq "/catalog/2004310986/track?counter=8&search_id=#{search_id}"
expect(prev['data-context-href']).to eq "/catalog/2004310986/track?counter=8&document_id=2004310986&search_id=#{search_id}"
end

it "redirects context urls to the original url" do
Expand Down

0 comments on commit 49de262

Please sign in to comment.