public
Last active

Steam Demo App Cucumber Output

  • Download Gist
gistfile1.feature
Cucumber
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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
steam-demo $ cucumber features/*.feature
Feature: Managing lists
In order to have a better overview of my tasks
As a control freak
I want to arrange my tasks in lists
 
Background: # features/managing_lists.feature:6
Given the following tasks: # features/step_definitions/task_steps.rb:1
| name | list |
| Mow the lawn | Garden |
| Sweep porch | Garden |
| Buy milk | Household |
| Do laundry | Household |
 
Scenario: Adding a new list # features/managing_lists.feature:14
Given I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I click the link to add a new list # features/step_definitions/list_steps.rb:30
And I fill in "Work" as the new list's name # features/step_definitions/list_steps.rb:1
And I click somewhere else on the page # features/step_definitions/task_steps.rb:25
Then there should be a list named "Work" # features/step_definitions/list_steps.rb:39
 
Scenario: Renaming a list # features/managing_lists.feature:21
Given I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I click on "Household" # features/step_definitions/webrat_steps.rb:15
And I fill in "House" as the list's name # features/step_definitions/list_steps.rb:5
And I click somewhere else on the page # features/step_definitions/task_steps.rb:25
Then there should be a list named "House" # features/step_definitions/list_steps.rb:39
Then there should not be a list named "Household" # features/step_definitions/list_steps.rb:45
 
Scenario: Reordering lists # features/managing_lists.feature:29
Given I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I drag the list "Household" above "Garden" # features/step_definitions/list_steps.rb:9
Then the list "Household" should be above "Garden" # features/step_definitions/list_steps.rb:34
 
Scenario: Deleting a list # features/managing_lists.feature:35
Given I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I hover the list "Household" # features/step_definitions/list_steps.rb:20
And I click on the button to delete the list "Household" # features/step_definitions/list_steps.rb:25
Then there should not be a list named "Household" # features/step_definitions/list_steps.rb:45
And there should not be a task named "Buy milk" # features/step_definitions/task_steps.rb:82
And there should not be a task named "Do laundry" # features/step_definitions/task_steps.rb:82
 
Feature: Managing tasks
In order to be more organized
As a control freak
I want to manage my tasks
 
Background: # features/managing_tasks.feature:6
Given the following tasks: # features/step_definitions/task_steps.rb:1
| name | list |
| Mow the lawn | Garden |
| Sweep porch | Garden |
| Buy milk | Household |
| Do laundry | Household |
 
Scenario: Adding a new task # features/managing_tasks.feature:14
Given I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I click the link to add a new task to the list "Household" # features/step_definitions/task_steps.rb:12
And I fill in "Wash dishes" as the new task's name # features/step_definitions/task_steps.rb:17
And I click somewhere else on the page # features/step_definitions/task_steps.rb:25
Then there should be a task named "Wash dishes" in the list "Household" # features/step_definitions/task_steps.rb:64
 
Scenario: Renaming an task # features/managing_tasks.feature:21
Given I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I click on "Do laundry" # features/step_definitions/webrat_steps.rb:15
And I fill in "Do the laundry" as the task's name # features/step_definitions/task_steps.rb:21
And I click somewhere else on the page # features/step_definitions/task_steps.rb:25
Then there should be a task named "Do the laundry" # features/step_definitions/task_steps.rb:77
Then there should not be a task named "Do laundry" # features/step_definitions/task_steps.rb:82
 
Scenario: Reordering tasks # features/managing_tasks.feature:29
Given I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I drag the task "Do laundry" above "Buy milk" # features/step_definitions/task_steps.rb:29
Then the task "Do laundry" should be above "Buy milk" # features/step_definitions/task_steps.rb:72
 
Scenario: Deleting a task # features/managing_tasks.feature:34
Given I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I hover the task "Sweep porch" # features/step_definitions/task_steps.rb:49
And I click on the button to delete the task "Sweep porch" # features/step_definitions/task_steps.rb:54
Then there should not be a task named "Sweep porch" # features/step_definitions/task_steps.rb:82
 
Scenario: Moving a task to another list # features/managing_tasks.feature:40
Given I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I drag the task "Sweep porch" to the list "Household" # features/step_definitions/task_steps.rb:40
Then there should be a task named "Sweep porch" in the list "Household" # features/step_definitions/task_steps.rb:64
 
Scenario: Marking a task as done # features/managing_tasks.feature:45
Given I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I check the task "Mow the lawn" # features/step_definitions/task_steps.rb:59
Then the task "Mow the lawn" should be marked as done # features/step_definitions/task_steps.rb:87
 
Scenario: Marking a task as open # features/managing_tasks.feature:50
Given the task "Mow the lawn" is marked as done # features/step_definitions/task_steps.rb:8
And I am on the task list page # features/step_definitions/webrat_steps.rb:1
When I uncheck the task "Mow the lawn" # features/step_definitions/task_steps.rb:59
Then the task "Mow the lawn" should be marked as open # features/step_definitions/task_steps.rb:87
 
11 scenarios (11 passed)
59 steps (59 passed)
0m19.178s

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.