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" @selenium 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"