implement new scenarios that were pending from the selenium-on-rails removal and fix a bug it uncovered

This commit is contained in:
Reinier Balt 2011-09-14 20:50:21 +02:00
parent 9eca1557fb
commit 2563532022
6 changed files with 103 additions and 23 deletions

View file

@ -41,7 +41,7 @@ Feature: Edit a project
And I edit the project name to "cherries"
Then the project title should be "cherries"
@selenium @wip
@selenium
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
@ -49,7 +49,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 @wip
@selenium
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
@ -110,28 +110,28 @@ Feature: Edit a project
When I cancel the project edit form
Then I should see "This project is active with no default context and with no default tags"
@selenium @wip
@selenium
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
Then I should see "todo 1" in the action container
And I should see "Currently there are no deferred actions in this project"
And I should see "Currently there are no deferred or pending actions"
And I should not see "Currently there are no incomplete actions in this project"
When I defer "todo 1" for 1 day
Then I should see "todo 1" in the deferred container
And I should not see "Currently there are no deferred actions in this project"
And I should not see "Currently there are no deferred or pending actions"
And I should see "Currently there are no incomplete actions in this project"
@selenium @wip
@selenium
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
And I should see "Currently there are no incomplete actions in this project"
And I should not see "Currently there are no deferred actions in this project"
When I defer "todo 1" for 1 day
Then I should see "todo 1" in the active container
And I should see "Currently there are no deferred actions in this project"
And I should not see "Currently there are no deferred or pending actions"
When I clear the show from date of "todo 1"
Then I should see "todo 1" in the action container
And I should see "Currently there are no deferred or pending actions"
And I should not see "Currently there are no incomplete actions in this project"
@selenium
@ -141,7 +141,7 @@ Feature: Edit a project
And I mark "todo 1" as complete
Then I should see "Currently there are no incomplete actions in this project"
@selenium @wip
@selenium
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