mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Trigger checkout click more reliably in specs
This commit is contained in:
@@ -199,7 +199,7 @@ feature "shopping with variant overrides defined", js: true do
|
||||
def click_checkout
|
||||
show_cart
|
||||
wait_until_enabled 'li.cart a.button'
|
||||
click_link 'Checkout now', match: :first
|
||||
first(:link, 'Checkout now').click
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user