From 0b4daaba26785d213f90ff5c9be9464c9094d388 Mon Sep 17 00:00:00 2001 From: Mikhail Titov Date: Wed, 27 Sep 2017 22:43:53 -0500 Subject: [PATCH] wait_for_ajax in pagination testing --- spec/features/tabulatrs_spec.rb | 1 + 1 file changed, 1 insertion(+) 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