Luigit
repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by admin

neovim/sample_files/test.feature

Raw
# 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 <season>
    When barry orders a <drink>
    Then barry pays <price>

    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     |