1
2Feature: Let’s test Cucumber feature syntax highlighting
3  These are just example features to see that syntax highlighting works.
4
5  These features are copied from Cucumber’s documentation, and they are
6  licensed under MIT.
7
8  Source repository can be found at:
9  https://github.com/cucumber/docs.cucumber.io
10
11  # Comments are not considered to be part of a feature.
12  Rule: Users are notified about overdue tasks on first use of the day
13    Background:
14      Given I have overdue tasks
15
16    Example: First use of the day
17      """
18      Docstrings can also be used.
19      """
20      Given I last used the app yesterday
21      When I use the app
22      Then I am notified about overdue tasks
23
24    Example: Already used today
25      Given I last used the app earlier today
26      When I use the app
27      Then I am not notified about overdue tasks
28
29Feature: Multiple site support
30  Only blog owners can post to a blog, except administrators,
31  who can post to all blogs.
32
33  Background:
34    Given a global administrator named "Greg"
35    And a blog named "Greg's anti-tax rants"
36    * a customer named "Dr. Bill"
37    And a blog named "Expensive Therapy" owned by "Dr. Bill"
38
39  @tagged_scenario
40  Scenario: Dr. Bill posts to his own blog
41    Given I am logged in as Dr. Bill
42    When I try to post to "Expensive Therapy"
43    Then I should see "Your article was published."
44
45  Scenario: Dr. Bill tries to post to somebody else's blog, and fails
46    Given the following users exist:
47      | name   | email              | twitter         |
48      | Aslak  | aslak@cucumber.io  | @aslak_hellesoy |
49      | Julien | julien@cucumber.io | @jbpros         |
50      | Matt   | matt@cucumber.io   | @mattwynne      |
51    When I try to post to "Greg's anti-tax rants"
52    Then I should see "Hey! That's not your blog!"
53
54Feature: There can also be Scenario Outline
55
56  Scenario Outline: eating
57    Given there are <start> cucumbers
58    When I eat <eat> cucumbers
59    Then I should have <left> cucumbers
60
61    Examples:
62      | start | eat | left |
63      |    12 |   5 |    7 |
64      |    20 |   5 |   15 |
65
66# kate: indent-width 2;