Skip to content

Commit

Permalink
wait_for_ajax in pagination testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mlt committed Oct 4, 2017
1 parent 49a669e commit 67fd5f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/features/tabulatrs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
Product.create!
end
visit one_item_per_page_with_pagination_products_path
wait_for_ajax
pages = page.all('.pagination li a[data-page]').map{|a| a['data-page'].to_i}
expect(pages).to match_array([1,2,3,10,20])
end
Expand Down

0 comments on commit 67fd5f2

Please sign in to comment.