mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Remove sleeps - these should be covered by increased capybara wait time now
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user