# language: en # Canonical Gherkin constructs from the cucumber.io reference — used to # validate the tree-sitter-gherkin parser against real syntax. Feature: Beverages Users can pay for beverages and receive change Step definitions live in the drink service Background: Given a customer named "barry" And a coffee named "espresso" priced at 2 @golden @smoke Scenario: Buying a coffee Given barry has bought an "espresso" When barry drinks the espresso Then barry should be "happy" Scenario Outline: Free refills Given the season is When barry orders a Then barry pays Examples: | season | drink | price | | summer | iced latte | 3 | | winter | espresso | 2 | Rule: Happy hour discounts apply @happy-hour Scenario: Discounted espresso between 16:00 and 17:00 Given the time is "16:30" When barry orders an espresso Then the receipt contains: """ espresso 1.00 discount -1.00 """ And the price list looks like: | drink | price | | espresso | 1 |