Opened from disk

This site is meant to be served, so its folder tree and search do not work when a page is opened from disk. Run ghg serve in the folder of your ghg.toml, or serve the site's folder with any web server, then open the address it gives.

Skip to content
Theme

Feature: Refunds & <returns>

A refund gives the money back,
in the way it was paid.

The plain case.

  1. Given a customer named "Ana"

From the scenario

  1. Given an order with these lines:
    itemprice
    pen1.50
    a | b2
  2. When the order is refunded
  3. Then the card gets
    json
    {"amount": 3.50}
  4. And a note is kept
    
    Refunded in full.
      Indented.

  1. Given a customer named "Ana"

From the scenario

  1. Given <count> items
  2. Then the total is <total>

Runs once for each row of these examples:

Only store credit.

Note: in the Gherkin feature file, this scenario is

  1. Given a customer named "Ana"

  1. Given an order from forty days ago

From the scenario

  1. Then store credit is given

  1. Given a customer named "Ana"

  1. Given an order from forty days ago

From the scenario

  1. Given <count> refunds

Runs once for each row of these examples:

  1. Given a customer named "Ana"

From the scenario

  1. Then it is refused

About this note

Gherkin lets authors use different words for the same kind of block. For example, Scenario and Example both define a scenario, and Examples and Scenarios both define examples. This site names every block by its kind, so pages read the same whichever word was used. The note only tells you which word the feature file uses; it changes nothing about the block.