tracks/features/tickler.feature
Reinier Balt 3faac2514d fix failing test and finish all wip scenarios
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2011-05-08 22:09:27 +02:00

59 lines
2.4 KiB
Gherkin

Feature: Manage deferred todos
In order to hide todos that require attention in the future and not now
As a Tracks user
I want to defer these and manage them in a tickler
Background:
Given the following user record
| login | password | is_admin |
| testuser | secret | false |
And there exists a project "manage me" for user "testuser"
And I have logged in as "testuser" with password "secret"
@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
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 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
@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 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 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"
And I have a todo "now is a good time"
When I go to the tickler page
Then I should see "not yet now"
And I should not see "now is a good time"