Feature: Refunds & <returns>
A refund gives the money back,
in the way it was paid.
- Given a customer named "Ana"
The plain case.
- Given a customer named "Ana"
From the scenario
- Given an order with these lines:
item price pen 1.50 a | b 2 - When the order is refunded
- Then the card gets
json {"amount": 3.50} - And a note is kept
Refunded in full. Indented.
- Given a customer named "Ana"
From the scenario
- Given <count> items
- Then the total is <total>
Runs once for each row of these examples:
-
count total 1 2 - Given 1 items
- Then the total is 2
-
count total
Only store credit.
- Given an order from forty days ago
Note: in the Gherkin feature file, this scenario is
- Given a customer named "Ana"
- Given an order from forty days ago
From the scenario
- Then store credit is given
- Given a customer named "Ana"
- Given an order from forty days ago
From the scenario
- Given <count> refunds
Runs once for each row of these examples:
-
count 2 - Given 2 refunds
- Given a customer named "Ana"
From the scenario
- Then it is refused