Trigger checkout click more reliably in specs

This commit is contained in:
Maikel Linke
2016-07-22 14:10:16 +10:00
parent 84c434c279
commit dee0fa6724

View File

@@ -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