mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Fix flaky embedded spec
The new cart sidebar takes 300ms to animate in. If we try to click the button on the left during this time, we may click the button on the right as it slides in.
This commit is contained in:
@@ -67,6 +67,7 @@ module UIComponentHelper
|
||||
|
||||
def toggle_cart
|
||||
page.find("#cart").click
|
||||
sleep 0.3 # Allow 300ms for sidebar animation to finish
|
||||
end
|
||||
|
||||
def wait_for_ajax
|
||||
|
||||
Reference in New Issue
Block a user