TC-2041 · Automated · covered by checkout.guest_card
Guest checkout with a card
Feature: Guest checkout
Scenario: A guest pays with a card
Given a basket holding one item
When the guest submits a valid card
Then the order is confirmed exactly once
And the ledger records a single capturedef test_guest_card(page, order_id):
page.get_by_role("button", name="Add to basket").click()
page.get_by_label("Email").fill("acme@example.test")
page.get_by_role("button", name="Pay now").click()
expect(page.get_by_text(f"Order {order_id} confirmed")).to_be_visible()
assert db.captures_for(order_id) == 1- Basket
- Checkout
- Authorise
- Capture
- Ledger write
- Receipt
pulled from the dashboard for this request