---
# Test case template in TestPlum's tests-as-code format. One test per file.
# The folders this file sits in become the test's folder and subfolders:
# Checkout/Payment/pay-with-a-saved-card.md -> folder Checkout, subfolder Payment.
# Lines starting with # inside these --- lines are comments.
# Leave id out for a new test: TestPlum writes it back after the first push.
title: Pay with a saved card
# priority is one of: critical, high, medium, low
priority: high
tags: [checkout, payments, smoke]
# refs are references kept on the test, such as requirement or ticket keys
refs: [REQ-12]
automation_id: "checkout.spec.ts > pays with a saved card"
# estimate is in minutes
estimate: 5
---

## Preconditions
- Signed in as a customer with a saved Visa card.
- The cart holds one item that is in stock.

## Steps
1. Open the cart and select **Checkout**
   Expected: The checkout page opens with the saved card preselected
2. Select **Pay now**
   Expected: The confirmation page shows an order number and the total charged
3. Open **Orders** from the account menu
   Expected: The new order is listed with the status Paid

## Notes
Run on Chrome and Safari. The payment provider is in test mode on staging.
