diff --git a/spec/features/tabulatrs_spec.rb b/spec/features/tabulatrs_spec.rb index ddff822..328d54a 100644 --- a/spec/features/tabulatrs_spec.rb +++ b/spec/features/tabulatrs_spec.rb @@ -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