2010-10-06 20:37:21 +02:00
|
|
|
Feature: Manage the list of projects
|
|
|
|
|
|
|
|
|
|
In order to keep tracks and manage of all my projects
|
|
|
|
|
As a Tracks user
|
|
|
|
|
I want to manage the list of projects
|
|
|
|
|
|
|
|
|
|
Background:
|
|
|
|
|
Given the following user record
|
|
|
|
|
| login | password | is_admin |
|
|
|
|
|
| testuser | secret | false |
|
|
|
|
|
And there exists a project "manage me" for user "testuser"
|
|
|
|
|
And there exists a project "upgrade jquery" for user "testuser"
|
|
|
|
|
And there exists a project "a project name starting with a" for user "testuser"
|
2010-10-08 21:07:17 +02:00
|
|
|
And I have logged in as "testuser" with password "secret"
|
2010-10-06 20:37:21 +02:00
|
|
|
|
|
|
|
|
Scenario: The list of project contain all projects
|
|
|
|
|
When I go to the projects page
|
|
|
|
|
Then I should see "manage me"
|
|
|
|
|
And I should see "upgrade jquery"
|
2010-10-07 23:24:50 +02:00
|
|
|
And the badge should show 3
|
2010-10-06 20:37:21 +02:00
|
|
|
|
|
|
|
|
Scenario: Clicking on a project takes me to the project page
|
|
|
|
|
When I go to the projects page
|
|
|
|
|
And I follow "manage me"
|
|
|
|
|
Then I should be on the "manage me" project page
|
|
|
|
|
|
|
|
|
|
@selenium
|
|
|
|
|
Scenario: Editing a project name will update the list
|
|
|
|
|
When I go to the projects page
|
2010-10-07 23:24:50 +02:00
|
|
|
And I edit the project name of "manage me" to "manage him"
|
2010-10-06 20:37:21 +02:00
|
|
|
Then I should see "manage him"
|
|
|
|
|
|
2010-10-07 23:24:50 +02:00
|
|
|
@selenium
|
2010-10-06 20:37:21 +02:00
|
|
|
Scenario: Deleting a project will remove it from the list
|
2010-10-07 23:24:50 +02:00
|
|
|
When I go to the projects page
|
|
|
|
|
And I delete project "manage me"
|
|
|
|
|
Then I should not see "manage me"
|
|
|
|
|
And the badge should show 2
|
|
|
|
|
And the project list badge for "active" projects should show 2
|
|
|
|
|
|
2010-10-15 11:49:34 +02:00
|
|
|
@selenium
|
2010-10-06 20:37:21 +02:00
|
|
|
Scenario: Changing project state will move project to other state list
|
2010-10-07 23:24:50 +02:00
|
|
|
When I go to the projects page
|
|
|
|
|
Then the project "manage me" should be in state list "active"
|
2010-10-08 21:07:17 +02:00
|
|
|
And the project list badge for "active" projects should show 3
|
2010-10-07 23:24:50 +02:00
|
|
|
When I edit the project state of "manage me" to "hidden"
|
|
|
|
|
Then the project "manage me" should not be in state list "active"
|
|
|
|
|
And the project "manage me" should be in state list "hidden"
|
2010-10-08 21:07:17 +02:00
|
|
|
And the project list badge for "active" projects should show 2
|
|
|
|
|
And the project list badge for "hidden" projects should show 1
|
2010-10-07 23:24:50 +02:00
|
|
|
|
2010-10-15 11:49:34 +02:00
|
|
|
@selenium
|
2010-10-07 23:24:50 +02:00
|
|
|
Scenario: Dragging a project to change list order of projects
|
2010-10-15 11:49:34 +02:00
|
|
|
When I go to the projects page
|
|
|
|
|
Then the project "manage me" should be above the project "upgrade jquery"
|
|
|
|
|
When I drag the project "manage me" below "upgrade jquery"
|
|
|
|
|
Then the project "upgrade jquery" should be above the project "manage me"
|
|
|
|
|
|
2010-10-16 16:45:08 +02:00
|
|
|
@selenium
|
2010-10-15 12:39:29 +02:00
|
|
|
Scenario: Hiding and unhiding the new project form
|
|
|
|
|
When I go to the projects page
|
|
|
|
|
Then the new project form should be visible
|
|
|
|
|
When I follow "« Hide form"
|
|
|
|
|
Then the new project form should not be visible
|
|
|
|
|
When I follow "Create a new project »"
|
|
|
|
|
Then the new project form should be visible
|
|
|
|
|
|
2010-10-16 17:22:55 +02:00
|
|
|
@selenium
|
2010-10-06 20:37:21 +02:00
|
|
|
Scenario: Adding a new project
|
2010-10-16 16:45:08 +02:00
|
|
|
When I go to the projects page
|
2010-10-16 17:22:55 +02:00
|
|
|
And I submit a new project with name "finish cucumber tests"
|
|
|
|
|
Then I should see "finish cucumber tests"
|
2010-10-16 16:45:08 +02:00
|
|
|
And the badge should show 4
|
|
|
|
|
And the project list badge for "active" projects should show 4
|
|
|
|
|
|
2010-10-16 17:22:55 +02:00
|
|
|
@selenium
|
2010-10-06 20:37:21 +02:00
|
|
|
Scenario: Adding a new project and take me to the project page
|
2010-10-16 17:22:55 +02:00
|
|
|
When I go to the projects page
|
|
|
|
|
And I submit a new project with name "finish cucumber tests" and select take me to the project
|
|
|
|
|
Then I should be on the "finish cucumber tests" project page
|
|
|
|
|
|
2010-10-06 20:37:21 +02:00
|
|
|
Scenario: Sorting the project alphabetically
|
|
|
|
|
Scenario: Sorting the project by number of task
|