dexter.91x (4) [Avatar] Offline
#1
creating_projects.feature

Feature: Creating projects
In order to have projects to assign tickets to
As a user
I want to create them easily

Background:
Given there are the following users:
| email | password | admin |
| admin@ticketee.com | password | true |
And I am signed in as them
Given I am on the homepage
When I follow "New Project"

Scenario: Creating a project
And I fill in "Name" with "TextMate 2"
And I press "Create Project"
Then I should see "Project has been created."
And I should be on the project page for "TextMate 2"
And I should see "TextMate 2"

Scenario: Creating a project without a name
And I press "Create Project"
Then I should see "Project has not been created."
And I should see "Name can't be blank"

editing_projects.features

Feature: Editing Projects
In order to update project information
As a user
I want to be able to do that through an interface

Background:
Given there are the following users:
| email | password | admin |
| admin@ticketee.com | password | true |
And I am signed in as them
Given there is a project called "TextMate 2"
And I am on the homepage
When I follow "TextMate 2"
And I follow "Edit Project"

Scenario: Updating a project
And I fill in "Name" with "TextMate 2 beta"
And I press "Update Project"
Then I should see "Project has been updated."
Then I should be on the project page for "TextMate 2 beta"

Scenario: Updating a project with invalid attributes is bad
And I fill in "Name" with ""
And I press "Update Project"
Then I should see "Project has not been updated."

deleting_projects.feature

Feature: Deleting projects
In order to remove needless projects
As a project manager
I want to make them disappear

Background:
Given there are the following users:
| email | password | admin |
| admin@ticketee.com | password | true |
And I am signed in as them

Scenario: Deleting a project
Given there is a project called "TextMate 2"
And I am on the homepage
When I follow "TextMate 2"
And I follow "Delete Project"
Then I should see "Project has been deleted."
Then I should not see "TextMate 2"

when i type rake cucumber:ok in terminal


Scenario: Creating a project # features/creating_projects.feature:14
And I fill in "Name" with "TextMate 2" # features/step_definitions/web_steps.rb:60
Unable to find field "Name" (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:61:in `/^(?smilieI )fill in "([^"]*)" with "([^"]*)"$/'
features/creating_projects.feature:15:in `And I fill in "Name" with "TextMate 2"'
And I press "Create Project" # features/step_definitions/web_steps.rb:52
Then I should see "Project has been created." # features/step_definitions/web_steps.rb:105
And I should be on the project page for "TextMate 2" # features/step_definitions/web_steps.rb:230
And I should see "TextMate 2" # features/step_definitions/web_steps.rb:105


Scenario: Creating a project without a name # features/creating_projects.feature:21
And I press "Create Project" # features/step_definitions/web_steps.rb:52
Unable to find button "Create Project" (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:53:in `/^(?smilieI )press "([^"]*)"$/'
features/creating_projects.feature:22:in `And I press "Create Project"'
Then I should see "Project has not been created." # features/step_definitions/web_steps.rb:105
And I should see "Name can't be blank" # features/step_definitions/web_steps.rb:105


Scenario: Updating a project # features/editing_projects.feature:16
And I fill in "Name" with "TextMate 2 beta" # features/step_definitions/web_steps.rb:60
Unable to find field "Name" (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:61:in `/^(?smilieI )fill in "([^"]*)" with "([^"]*)"$/'
features/editing_projects.feature:17:in `And I fill in "Name" with "TextMate 2 beta"'
And I press "Update Project" # features/step_definitions/web_steps.rb:52
Then I should see "Project has been updated." # features/step_definitions/web_steps.rb:105
Then I should be on the project page for "TextMate 2 beta" # features/step_definitions/web_steps.rb:230


Scenario: Updating a project with invalid attributes is bad # features/editing_projects.feature:22
And I fill in "Name" with "" # features/step_definitions/web_steps.rb:60
Unable to find field "Name" (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:61:in `/^(?smilieI )fill in "([^"]*)" with "([^"]*)"$/'
features/editing_projects.feature:23:in `And I fill in "Name" with ""'
And I press "Update Project" # features/step_definitions/web_steps.rb:52
Then I should see "Project has not been updated." # features/step_definitions/web_steps.rb:105



Failing Scenarios:
cucumber features/creating_projects.feature:14 # Scenario: Creating a project
cucumber features/creating_projects.feature:21 # Scenario: Creating a project without a name
cucumber features/deleting_projects.feature:12 # Scenario: Deleting a project
cucumber features/editing_projects.feature:16 # Scenario: Updating a project
cucumber features/editing_projects.feature:22 # Scenario: Updating a project with invalid attributes is bad

16 scenarios (5 failed, 11 passed)
158 steps (5 failed, 12 skipped, 141 passed)
0m2.705s

Message was edited by:
dexter.91x