Skip to content

Commit

Permalink
Optimize slow search context test
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Aug 24, 2016
1 parent e27eb85 commit aee7e5a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions spec/features/search_context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@
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 ''
first('.index_title a').click
10.times do
click_on "Next »"
end

expect(page).to have_content "1 - 10"
find_all('.index_title a').last.click
click_on "Next »"

click_on "Back to Search"
expect(page).to have_content "11 - 20"
end
Expand Down

0 comments on commit aee7e5a

Please sign in to comment.