2010-12-25 16:28:53 +01:00
|
|
|
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"
|
|
|
|
|
|
2013-03-17 15:41:36 +01:00
|
|
|
@javascript
|
2011-01-10 17:20:40 +01:00
|
|
|
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
|
2011-05-08 22:09:27 +02:00
|
|
|
Given I have a context called "test"
|
|
|
|
|
When I go to the tickler page
|
2011-01-10 17:20:40 +01:00
|
|
|
Then I should see the empty tickler message
|
2011-05-08 22:09:27 +02:00
|
|
|
When I submit a new deferred action with description "a new next action"
|
2011-01-10 17:20:40 +01:00
|
|
|
Then I should see "a new next action"
|
|
|
|
|
And I should not see the empty tickler message
|
|
|
|
|
|
2012-03-12 22:52:45 +01:00
|
|
|
@javascript
|
2011-05-08 22:09:27 +02:00
|
|
|
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"
|
2010-12-25 16:28:53 +01:00
|
|
|
|
2012-03-12 22:52:45 +01:00
|
|
|
@javascript
|
2010-12-25 16:28:53 +01:00
|
|
|
Scenario: Editing the context of a todo moves it to the new context
|
2011-05-08 22:09:27 +02:00
|
|
|
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"
|
2010-12-25 16:28:53 +01:00
|
|
|
|
2012-03-12 22:52:45 +01:00
|
|
|
@javascript
|
2010-12-25 16:28:53 +01:00
|
|
|
Scenario: Removing the show from date from a todo removes it from the tickler
|
2011-05-08 22:09:27 +02:00
|
|
|
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"
|
2011-01-08 09:12:37 +01:00
|
|
|
|
|
|
|
|
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"
|
2011-08-18 17:15:00 +02:00
|
|
|
|
2012-03-12 22:52:45 +01:00
|
|
|
@javascript
|
2011-08-18 17:15:00 +02:00
|
|
|
Scenario: I can mark an action complete from the tickler
|
|
|
|
|
Given I have a deferred todo "not yet now"
|
|
|
|
|
When I go to the tickler page
|
|
|
|
|
And I mark "not yet now" as complete
|
|
|
|
|
Then I should not see "not yet now"
|
|
|
|
|
When I go to the done page
|
|
|
|
|
Then I should see "not yet now"
|