Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 84 lines (71 sloc) 2.234 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
Feature: Scenario Page
In order to view a scenario's intent
As a stakeholder
I want a page that displays each scenario and its steps

Scenario: Content
Given a feature file named "sample.feature" with the contents:
"""
Feature: Sample Feature

@tag1 @tag2
Scenario: Sample Aidy
Given my name is "Aidy"
When I drink alcohol
Then I go nuts
"""
When I visit the sample feature page
And click on a scenario header link
Then a page appears with the scenario content
And I should see "tag1"
And I should see "tag2"

Scenario: Background
Given a feature file named "sample.feature" with the contents:
"""
Feature: Sample Feature

Background:
Given some things

Scenario: Sample Aidy
"""
When I visit the sample feature page
And click on a scenario header link
Then the background is visible

Scenario: Tags
Given a feature file named "sample.feature" with the contents:
"""
Feature: Sample Feature

Background:
Given some things

@work_in_progress
Scenario: Sample Aidy
"""
When I visit the sample feature page
And click on a scenario header link
Then I should see "work_in_progress"

Scenario: Data Table
Given a feature file named "sample.feature" with the contents:
"""
Feature: Sample Feature

Scenario: Data Table
Given the following people exist:
| name | email |
| Aidy | aidy@example.com |
| Andrew | vos@example.com |
"""
When I visit the sample feature page
And click on a scenario header link
Then I should see the data table

Scenario: Scenario Outline
Given a feature file named "sample.feature" with the contents:
"""
Feature: Sample Feature

Scenario Outline: Outline with examples
Given there are <start> cucumbers
When I eat <eat> cucumbers
Then I should have <left> cucumbers

Examples:
| start | eat | left |
| 12 | 5 | 7 |
| 20 | 5 | 15 |
"""
When I visit the sample feature page
And click on a scenario header link
Then I should see the examples table
Something went wrong with that request. Please try again.