Fix regressions and refactorings

This commit is contained in:
Reinier Balt 2012-03-19 14:05:54 +01:00
parent 41ebd2ec9b
commit ca7d81d75a
21 changed files with 259 additions and 397 deletions

View file

@ -16,14 +16,14 @@ Feature: Edit a project
When I click on the first note icon
Then I should go to that note page
@selenium
@javascript
Scenario: I can describe the project using markup
When I go to the "manage me" project
And I edit the project description to "_successfull outcome_: project is *done*"
Then I should see the italic text "successfull outcome" in the project description
And I should see the bold text "done" in the project description
@selenium
@javascript
Scenario: I can edit the project name in place
Given I have a project "release tracks 1.8" with 1 todos
When I go to the "release tracks 1.8" project
@ -33,7 +33,7 @@ Feature: Edit a project
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
@selenium
@javascript
Scenario: I cannot edit the project name in two places at once
Given I have a project "release tracks 1.8" with 1 todos
When I go to the "release tracks 1.8" project
@ -43,14 +43,14 @@ Feature: Edit a project
Then I should not be able to change the project name in place
# Ticket #1041
@selenium
@javascript
Scenario: I can change the name of the project using the Edit Project Settings form
Given I have a project "bananas" with 1 todos
When I go to the "bananas" project
And I edit the project name to "cherries"
Then the project title should be "cherries"
@selenium
@javascript
Scenario: I can change the name of the project and it should update the new todo form
Given I have a project "bananas" with 1 todos
When I go to the "bananas" project
@ -58,7 +58,7 @@ Feature: Edit a project
Then the project title should be "cherries"
And the project field of the new todo form should contain "cherries"
@selenium
@javascript
Scenario: I can change the default context of the project and it should update the new todo form
Given I have a project "bananas" with 1 todos
When I go to the "bananas" project
@ -69,7 +69,7 @@ Feature: Edit a project
Then the default context of the new todo form should be "@pc"
# Ticket #1042
@selenium
@javascript
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
@ -79,7 +79,7 @@ Feature: Edit a project
Then I should see "Name already exists"
# Ticket #1042
@selenium
@javascript
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
@ -87,29 +87,29 @@ Feature: Edit a project
When I try to edit the project name of "manage me" to "test"
Then I should see "Name already exists"
@selenium
@javascript
Scenario: I can add a note to the project
Given I have a project called "test"
When I go to the "test" project
And I add a note "hello I'm testing" to the project
Then I should see one note in the project
@selenium
@javascript
Scenario: Cancelling adding a note to the project will remove form
Given I have a project called "test"
When I go to the "test" project
And I cancel adding a note to the project
Then the form for adding a note should not be visible
@selenium
@javascript @wip
Scenario: Long notes in a project are shown cut off
Given I have a project called "test"
When I go to the "test" project
And I add a note "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG" to the project
Then I should not see "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG"
And I should see "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456"
Then I should not see the note "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG"
And I should see the note "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456"
@selenium
@javascript
Scenario: Cancelling editing a project will restore project settings
Given I have a project called "test"
When I go to the "test" project
@ -119,7 +119,7 @@ Feature: Edit a project
When I cancel the project edit form
Then I should see the default project settings
@selenium
@javascript
Scenario: Moving the todo to the tickler will move todo to tickler container and update empty messages
Given I have a project "test" with 1 todos
When I go to the "test" project
@ -132,34 +132,34 @@ Feature: Edit a project
And I should see empty message for completed todos of project
And I should see empty message for todos of project
@selenium
@javascript
Scenario: Moving the todo out of the tickler will move todo to active container and update empty messages
Given I have a project "test" with 1 deferred todos
When I go to the "test" project
Then I should see "todo 1" in the deferred container
Then I should see "deferred todo 1" in the deferred container
And I should see empty message for todos of project
And I should not see empty message for deferred todos of project
When I clear the show from date of "todo 1"
Then I should see "todo 1" in the action container
When I clear the show from date of "deferred todo 1"
Then I should see "deferred todo 1" in the action container
And I should see empty message for deferred todos of project
And I should not see empty message for todos of project
@selenium
@javascript
Scenario: Making all todos inactive will show empty message
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 empty message for todos of project
@selenium
@javascript
Scenario: Making all deferred todos inactive will show empty message
Given I have a project "test" with 1 deferred todos
When I go to the "test" project
And I mark "todo 1" as complete
And I mark "deferred todo 1" as complete
Then I should see empty message for todos of project
# Ticket #1043
@selenium
@javascript
Scenario: I can move a todo out of the current project
Given I have a project "foo" with 2 todos
And I have a project called "bar"