fix failing test and finish all wip scenarios

Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
Reinier Balt 2011-05-08 22:09:27 +02:00
parent f05826d07a
commit 3faac2514d
10 changed files with 95 additions and 17 deletions

View file

@ -10,23 +10,46 @@ Feature: Manage deferred todos
And there exists a project "manage me" for user "testuser"
And I have logged in as "testuser" with password "secret"
@selenium @wip
@selenium
Scenario: I can add a deferred todo and it will show in the tickler
# also adding the first deferred todo will hide the empty message
When I go to the tickler
Given I have a context called "test"
When I go to the tickler page
Then I should see the empty tickler message
When I submit a deferred new action with description "a new next action"
When I submit a new deferred action with description "a new next action"
Then I should see "a new next action"
And I should not see the empty tickler message
Scenario: Editing the description of a todo updated the todo
Given this is a pending scenario
@selenium
Scenario: Editing the description of a todo in the tickler updated the todo
Given I have a deferred todo "not yet now"
When I go to the tickler page
Then I should see "not yet now"
When I edit the description of "not yet now" to "almost"
Then I should not see "not yet now"
And I should see "almost"
@selenium
Scenario: Editing the context of a todo moves it to the new context
Given this is a pending scenario
Given I have a context called "A"
And I have a context called "B"
And I have a deferred todo "not yet now" in the context "A"
When I go to the tickler page
Then I should see "not yet now" in the context container for "A"
When I edit the context of "not yet now" to "B"
Then I should see "not yet now" in the context container for "B"
And I should not see "not yet now" in the context container for "A"
@selenium
Scenario: Removing the show from date from a todo removes it from the tickler
Given this is a pending scenario
Given I have a deferred todo "not yet now"
When I go to the tickler page
Then I should see "not yet now"
When I remove the show from date from "not yet now"
Then I should not see "not yet now"
And I should see the empty tickler message
When I go to the home page
Then I should see "not yet now"
Scenario: Opening the tickler page shows me all deferred todos
Given I have a deferred todo "not yet now"