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
|
Feature: steps may have associated data
Scenario: step with text
Given some body of text
"""
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
"""
Then the text is as expected
Scenario: step with a table
Given some initial data
| name | department |
| Barry | Beer Cans |
| Pudey | Silly Walks |
| Two-Lumps | Silly Walks |
Then we will have the expected data
@xfail
Scenario: step with text that fails
Given some body of text
"""
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim VENIAM, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
"""
Then the text is as expected
Scenario Outline: step with text and subtitution
Given some body of text
"""
Lorem <ipsum> dolor sit amet, consectetur adipisicing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
"""
Then the text is substituted as expected
Examples:
| ipsum |
| spam |
| ham |
Scenario Outline: step with a table and substution
Given some initial data
| name | department |
| Barry | <spam> Cans |
| Pudey | Silly Walks |
| Two-Lumps | Silly Walks |
Then we will have the substituted data
Examples:
| spam |
| spam |
| ham |
|