2010-10-06 20:37:21 +02:00
|
|
|
Feature: Edit a project
|
2010-02-12 12:35:19 +01:00
|
|
|
In order to reach a goal by doing several related todos
|
|
|
|
|
As a Tracks user
|
|
|
|
|
I want to manage these todos in a project
|
|
|
|
|
|
|
|
|
|
Background:
|
|
|
|
|
Given the following user record
|
|
|
|
|
| login | password | is_admin |
|
|
|
|
|
| testuser | secret | false |
|
|
|
|
|
And there exists a project "manage me" for user "testuser"
|
2010-10-08 21:07:17 +02:00
|
|
|
And I have logged in as "testuser" with password "secret"
|
2010-02-12 12:35:19 +01:00
|
|
|
|
2010-11-26 10:44:08 +01:00
|
|
|
Scenario: I can go to the note of a project
|
|
|
|
|
Given I have a project "test" with 2 notes
|
2011-03-09 10:53:54 +01:00
|
|
|
When I go to the "test" project
|
2010-11-26 10:44:08 +01:00
|
|
|
When I click on the first note icon
|
|
|
|
|
Then I should go to that note page
|
|
|
|
|
|
2010-07-30 21:41:52 +02:00
|
|
|
@selenium
|
2010-02-12 12:35:19 +01:00
|
|
|
Scenario: I can describe the project using markup
|
2011-03-09 10:53:54 +01:00
|
|
|
When I go to the "manage me" project
|
2010-02-12 12:35:19 +01:00
|
|
|
And I edit the project description to "_successfull outcome_: project is *done*"
|
2010-03-24 20:45:59 +01:00
|
|
|
Then I should see the italic text "successfull outcome" in the project description
|
2010-07-04 20:13:32 -07:00
|
|
|
And I should see the bold text "done" in the project description
|
|
|
|
|
|
2010-11-08 22:36:35 +01:00
|
|
|
@selenium
|
|
|
|
|
Scenario: I can edit the project name in place
|
|
|
|
|
Given I have a project "release tracks 1.8" with 1 todos
|
2011-03-09 10:53:54 +01:00
|
|
|
When I go to the "release tracks 1.8" project
|
2010-11-08 22:36:35 +01:00
|
|
|
And I edit the project name in place to be "release tracks 2.0"
|
|
|
|
|
Then I should see the project name is "release tracks 2.0"
|
|
|
|
|
When I go to the projects page
|
|
|
|
|
Then I should see that a project named "release tracks 1.8" is not present
|
|
|
|
|
And I should see that a project named "release tracks 2.0" is present
|
|
|
|
|
|
2010-07-05 08:24:58 -07:00
|
|
|
# Ticket #1041
|
|
|
|
|
@selenium
|
|
|
|
|
Scenario: I can change the name of the project using the Edit Project Settings form
|
|
|
|
|
Given I have a project "bananas" with 1 todos
|
2011-03-09 10:53:54 +01:00
|
|
|
When I go to the "bananas" project
|
2010-07-05 08:24:58 -07:00
|
|
|
And I edit the project name to "cherries"
|
|
|
|
|
Then the project title should be "cherries"
|
2010-08-03 20:55:07 +02:00
|
|
|
|
|
|
|
|
# Ticket #1042
|
|
|
|
|
@selenium
|
|
|
|
|
Scenario: I cannot change the name of a project in the project view to the name of another existing project
|
|
|
|
|
Given I have a project "test" with 1 todos
|
|
|
|
|
When I go to the projects page
|
|
|
|
|
Then the badge should show 2 # "manage me" and "test"
|
2011-04-19 16:40:55 +02:00
|
|
|
When I go to the "manage me" project
|
2010-11-09 23:12:21 +01:00
|
|
|
And I try to edit the project name to "test"
|
2010-08-03 20:55:07 +02:00
|
|
|
Then I should see "Name already exists"
|
|
|
|
|
|
|
|
|
|
# Ticket #1042
|
|
|
|
|
@selenium
|
|
|
|
|
Scenario: I cannot change the name of a project in the project list view to the name of another existing project
|
|
|
|
|
Given I have a project "test" with 1 todos
|
|
|
|
|
When I go to the projects page
|
|
|
|
|
Then the badge should show 2 # "manage me" and "test"
|
2010-11-09 23:12:21 +01:00
|
|
|
When I try to edit the project name of "manage me" to "test"
|
2010-11-08 22:36:35 +01:00
|
|
|
Then I should see "Name already exists"
|
2010-12-20 18:20:37 +01:00
|
|
|
|
2010-11-24 22:01:23 +01:00
|
|
|
@selenium
|
2010-11-19 22:45:18 +01:00
|
|
|
Scenario: I can add a note to the project
|
2010-11-24 22:01:23 +01:00
|
|
|
Given I have a project called "test"
|
2011-03-09 10:53:54 +01:00
|
|
|
When I go to the "test" project
|
2010-11-24 22:01:23 +01:00
|
|
|
And I add a note "hello I'm testing" to the project
|
|
|
|
|
Then I should see one note in the project
|
2010-11-19 22:45:18 +01:00
|
|
|
|
2010-11-26 10:44:08 +01:00
|
|
|
@selenium
|
2010-11-24 22:01:23 +01:00
|
|
|
Scenario: Cancelling adding a note to the project will remove form
|
|
|
|
|
Given I have a project called "test"
|
2011-03-09 10:53:54 +01:00
|
|
|
When I go to the "test" project
|
2010-11-24 22:01:23 +01:00
|
|
|
And I cancel adding a note to the project
|
|
|
|
|
Then the form for adding a note should not be visible
|
|
|
|
|
|
2010-12-17 16:01:22 +01:00
|
|
|
@selenium
|
2010-11-19 22:45:18 +01:00
|
|
|
Scenario: Long notes in a project are shown cut off
|
2010-11-24 22:01:23 +01:00
|
|
|
Given I have a project called "test"
|
2011-03-09 10:53:54 +01:00
|
|
|
When I go to the "test" project
|
2010-11-26 10:44:08 +01:00
|
|
|
And I add a note "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG" to the project
|
|
|
|
|
Then I should not see "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG"
|
2010-12-20 18:20:37 +01:00
|
|
|
And I should see "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456"
|
|
|
|
|
|
2011-08-15 17:04:59 +02:00
|
|
|
@selenium
|
2010-12-20 18:20:37 +01:00
|
|
|
Scenario: Cancelling editing a project will restore project settings
|
2011-08-15 17:04:59 +02:00
|
|
|
Given I have a project called "test"
|
|
|
|
|
When I go to the "test" project
|
|
|
|
|
Then I should see "This project is active with no default context and with no default tags"
|
|
|
|
|
When I open the project edit form
|
|
|
|
|
Then I should not see "This project is active with no default context and with no default tags"
|
|
|
|
|
When I cancel the project edit form
|
|
|
|
|
Then I should see "This project is active with no default context and with no default tags"
|
2010-12-25 16:28:53 +01:00
|
|
|
|
2011-08-15 17:04:59 +02:00
|
|
|
@selenium
|
2010-12-25 16:28:53 +01:00
|
|
|
Scenario: Moving the todo to the tickler will move todo to tickler container
|
2011-08-15 17:04:59 +02:00
|
|
|
Given I have a project "test" with 1 todos
|
|
|
|
|
When I go to the "test" project
|
|
|
|
|
Then I should see "todo 1" in the action container
|
|
|
|
|
When I defer "todo 1" for 1 day
|
|
|
|
|
Then I should see "todo 1" in the deferred container
|
2010-12-25 16:28:53 +01:00
|
|
|
|
2011-08-15 17:04:59 +02:00
|
|
|
@selenium
|
2010-12-25 16:28:53 +01:00
|
|
|
Scenario: Moving the todo out of the tickler will move todo to active container
|
2011-08-15 17:04:59 +02:00
|
|
|
Given I have a project "test" with 1 todos
|
|
|
|
|
When I go to the "test" project
|
|
|
|
|
Then I should see "todo 1" in the action container
|
|
|
|
|
When I defer "todo 1" for 1 day
|
|
|
|
|
Then I should see "todo 1" in the deferred container
|
2010-12-25 16:28:53 +01:00
|
|
|
|
2011-08-15 17:04:59 +02:00
|
|
|
@selenium
|
2011-01-06 23:01:17 +01:00
|
|
|
Scenario: Making all todos inactive will show empty message
|
2011-08-15 17:04:59 +02:00
|
|
|
Given I have a project "test" with 1 todos
|
|
|
|
|
When I go to the "test" project
|
|
|
|
|
And I mark "todo 1" as complete
|
|
|
|
|
Then I should see "Currently there are no incomplete actions in this project"
|
2011-01-06 23:01:17 +01:00
|
|
|
|
2010-12-25 16:28:53 +01:00
|
|
|
# Ticket #1043
|
2011-03-10 13:08:53 +01:00
|
|
|
@selenium
|
2010-12-25 16:28:53 +01:00
|
|
|
Scenario: I can move a todo out of the current project
|
|
|
|
|
Given I have a project "foo" with 2 todos
|
2011-03-09 12:27:47 +01:00
|
|
|
And I have a project called "bar"
|
2011-03-09 10:53:54 +01:00
|
|
|
When I go to the "foo" project
|
2011-08-11 17:13:01 +02:00
|
|
|
And I change the project_name field of "todo 1" to "bar"
|
|
|
|
|
Then I should not see "todo 1"
|
|
|
|
|
And I should see "todo 2"
|