From 1d5f0042d4f3ebae34e093a7eb8957befb93a34d Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 2 May 2014 14:25:06 +1000 Subject: [PATCH] Remove sleeps - these should be covered by increased capybara wait time now --- spec/features/admin/bulk_product_update_spec.rb | 2 -- spec/features/consumer/shopping/checkout_spec.rb | 2 -- 2 files changed, 4 deletions(-) diff --git a/spec/features/admin/bulk_product_update_spec.rb b/spec/features/admin/bulk_product_update_spec.rb index 8006b311a5..7174da9758 100644 --- a/spec/features/admin/bulk_product_update_spec.rb +++ b/spec/features/admin/bulk_product_update_spec.rb @@ -584,7 +584,6 @@ feature %q{ first("a.delete-product").click - sleep(0.5) if page.has_selector? "a.delete-product", :count => 3 # Wait for product to be removed from page page.should have_selector "a.delete-product", :count => 2 visit '/admin/products/bulk_edit' @@ -606,7 +605,6 @@ feature %q{ first("a.delete-variant").click - sleep(0.5) if page.has_selector? "a.delete-variant", :count => 3 # Wait for variant to be removed from page page.should have_selector "a.delete-variant", :count => 2 visit '/admin/products/bulk_edit' diff --git a/spec/features/consumer/shopping/checkout_spec.rb b/spec/features/consumer/shopping/checkout_spec.rb index 0f956816a2..fc64fbed29 100644 --- a/spec/features/consumer/shopping/checkout_spec.rb +++ b/spec/features/consumer/shopping/checkout_spec.rb @@ -95,7 +95,6 @@ feature "As a consumer I want to check out my cart", js: true do fill_in "Postcode", with: "3066" end click_button "Purchase" - sleep 10 page.should have_content "Your order has been processed successfully" # It sends a confirmation email containing the distributor info, pickup time and pickup instructions @@ -138,7 +137,6 @@ feature "As a consumer I want to check out my cart", js: true do toggle_accordion "Shipping" check "Shipping address same as billing address?" click_button "Purchase" - sleep 10 page.should have_content "Your order has been processed successfully" end end