From 05c62634fcad3ba610cc34f090539bebf3ac782e Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Thu, 5 Jun 2014 14:49:41 +1000 Subject: [PATCH] Further overlapping elements fixes --- spec/features/admin/bulk_product_update_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/admin/bulk_product_update_spec.rb b/spec/features/admin/bulk_product_update_spec.rb index f42993248c..9e0f24cd15 100644 --- a/spec/features/admin/bulk_product_update_spec.rb +++ b/spec/features/admin/bulk_product_update_spec.rb @@ -596,7 +596,7 @@ feature %q{ visit '/admin/products/bulk_edit' page.should have_selector "a.view-variants" - all("a.view-variants").each { |e| e.click } + all("a.view-variants").each { |e| e.trigger('click') } page.should have_selector "a.delete-variant", :count => 3 @@ -606,7 +606,7 @@ feature %q{ visit '/admin/products/bulk_edit' page.should have_selector "a.view-variants" - all("a.view-variants").select { |e| e.visible? }.each { |e| e.click } + all("a.view-variants").select { |e| e.visible? }.each { |e| e.trigger('click') } page.should have_selector "a.delete-variant", :count => 2 end @@ -636,7 +636,7 @@ feature %q{ visit '/admin/products/bulk_edit' page.should have_selector "a.view-variants" - all("a.view-variants").each { |e| e.click } + all("a.view-variants").each { |e| e.trigger('click') } page.should have_selector "a.edit-variant", :count => 3