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