mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
22 lines
374 B
Ruby
22 lines
374 B
Ruby
module CheckoutWorkflow
|
|
def have_checkout_details
|
|
have_content "Your details"
|
|
end
|
|
|
|
def checkout_as_guest
|
|
find("button", text: "Checkout as guest").click
|
|
end
|
|
|
|
def place_order
|
|
find("button", text: "Place order now").click
|
|
end
|
|
|
|
def toggle_accordion(id)
|
|
find("##{id} dd a").click
|
|
end
|
|
|
|
def toggle_details
|
|
toggle_accordion :details
|
|
end
|
|
end
|