2010-12-20 18:20:37 +01:00
|
|
|
Feature: Edit a next action from every page
|
|
|
|
|
In order to manage a next action
|
|
|
|
|
As a Tracks user
|
|
|
|
|
I want to to be able to change the next action from every page
|
|
|
|
|
|
|
|
|
|
Background:
|
|
|
|
|
Given the following user record
|
|
|
|
|
| login | password | is_admin |
|
|
|
|
|
| testuser | secret | false |
|
|
|
|
|
And I have logged in as "testuser" with password "secret"
|
|
|
|
|
|
2011-04-21 16:54:35 +02:00
|
|
|
@selenium
|
2010-12-20 18:20:37 +01:00
|
|
|
Scenario: I can toggle the star of a todo
|
2011-04-21 16:54:35 +02:00
|
|
|
Given I have a todo "star me" in the context "@home"
|
|
|
|
|
When I go to the home page
|
|
|
|
|
And I star the action "star me"
|
|
|
|
|
Then I should see a starred "star me"
|
|
|
|
|
When I go to the tag page for "starred"
|
|
|
|
|
Then I should see "star me"
|
2010-12-20 18:20:37 +01:00
|
|
|
|
2011-03-09 10:53:54 +01:00
|
|
|
@selenium
|
2010-12-20 18:20:37 +01:00
|
|
|
Scenario: I can delete a todo
|
2011-03-09 10:53:54 +01:00
|
|
|
Given I have a todo "delete me" in the context "@home"
|
2011-02-09 20:41:34 +01:00
|
|
|
When I go to the home page
|
|
|
|
|
Then I should see "delete me"
|
2011-03-09 10:53:54 +01:00
|
|
|
When I delete the action "delete me"
|
2011-02-09 20:41:34 +01:00
|
|
|
Then I should not see "delete me"
|
2010-12-20 18:20:37 +01:00
|
|
|
|
2011-04-14 16:26:16 +02:00
|
|
|
@selenium
|
|
|
|
|
Scenario: Removing the last todo in context will hide context
|
|
|
|
|
Given I have a todo "delete me" in the context "@home"
|
|
|
|
|
And I have a context called "@pc"
|
|
|
|
|
When I go to the home page
|
|
|
|
|
Then I should see the container for context "@home"
|
|
|
|
|
And I should see "delete me" in the context container for "@home"
|
|
|
|
|
When I mark "delete me" as complete
|
|
|
|
|
Then I should not see the container for context "@home"
|
|
|
|
|
When I mark "delete me" as uncompleted
|
|
|
|
|
Then I should see the container for context "@home"
|
|
|
|
|
When I edit the context of "delete me" to "@pc"
|
|
|
|
|
Then I should not see the container for context "@home"
|
|
|
|
|
When I delete the todo "delete me"
|
|
|
|
|
Then I should not see "delete me"
|
|
|
|
|
And I should not see the container for context "@home"
|
|
|
|
|
And I should not see the container for context "@pc"
|
2010-12-20 18:20:37 +01:00
|
|
|
|
2011-04-14 16:26:16 +02:00
|
|
|
@selenium
|
|
|
|
|
Scenario Outline: Deleting the last todo in container will show empty message # only project, context, tag, not todo
|
|
|
|
|
Given I have a context called "@home"
|
|
|
|
|
And I have a project "my project" that has the following todos
|
|
|
|
|
| context | description | tags |
|
|
|
|
|
| @home | first action | test, bla |
|
|
|
|
|
| @home | second action | bla |
|
|
|
|
|
When I go to the <page>
|
|
|
|
|
Then I should not see "<empty message>"
|
|
|
|
|
And I should see "first action"
|
|
|
|
|
When I delete the todo "first action"
|
|
|
|
|
Then I should not see "<empty message>"
|
|
|
|
|
When I delete the todo "second action"
|
|
|
|
|
Then I should see "<empty message>"
|
|
|
|
|
|
|
|
|
|
Scenarios:
|
|
|
|
|
| page | empty message |
|
|
|
|
|
| "my project" project | Currently there are no incomplete actions in this project |
|
|
|
|
|
| context page for "@home" | Currently there are no incomplete actions in this context |
|
|
|
|
|
| tag page for "bla" | No actions found |
|
2010-12-20 18:20:37 +01:00
|
|
|
|
2011-03-09 10:53:54 +01:00
|
|
|
@selenium
|
2011-01-11 02:47:29 +01:00
|
|
|
Scenario Outline: I can mark an active todo complete and it will update empty messages
|
2011-03-09 10:53:54 +01:00
|
|
|
Given I have a context called "visible context"
|
|
|
|
|
And I have a project called "visible project"
|
2011-01-11 02:47:29 +01:00
|
|
|
When I go to the <page>
|
|
|
|
|
Then I should see "<empty message>"
|
2011-03-09 10:53:54 +01:00
|
|
|
When I submit a new action with description "visible todo" to project "visible project" with tags "starred" in the context "visible context"
|
2011-01-11 02:47:29 +01:00
|
|
|
Then I should see "visible todo"
|
|
|
|
|
And I should not see "<empty message>"
|
2011-03-09 10:53:54 +01:00
|
|
|
When I mark "visible todo" as complete
|
2011-01-11 02:47:29 +01:00
|
|
|
And I should see "<empty message>"
|
2011-03-09 10:53:54 +01:00
|
|
|
And I should see "visible todo" in the completed container
|
2011-01-11 02:47:29 +01:00
|
|
|
|
|
|
|
|
Scenarios:
|
2011-03-09 10:53:54 +01:00
|
|
|
| page | empty message |
|
|
|
|
|
| "visible project" project | Currently there are no incomplete actions in this project |
|
|
|
|
|
| home page | Currently there are no incomplete actions |
|
|
|
|
|
| tag page for "starred" | No actions found |
|
|
|
|
|
| context page for "visible context" | Currently there are no incomplete actions in this context |
|
2011-01-11 02:47:29 +01:00
|
|
|
|
2011-04-14 16:26:16 +02:00
|
|
|
@selenium
|
2011-01-11 02:47:29 +01:00
|
|
|
Scenario Outline: I can mark a deferred todo complete and it will update empty messages
|
2011-04-14 16:26:16 +02:00
|
|
|
Given I have a context called "visible context"
|
|
|
|
|
And I have a project called "visible project"
|
2011-04-21 16:54:35 +02:00
|
|
|
When I go to the <page>
|
2011-01-11 02:47:29 +01:00
|
|
|
Then I should see "<empty message>"
|
2011-04-14 16:26:16 +02:00
|
|
|
When I submit a new deferred action with description "visible todo" to project "visible project" with tags "starred" in the context "visible context"
|
2011-01-11 02:47:29 +01:00
|
|
|
Then I should see "visible todo"
|
|
|
|
|
And I should not see "<empty message>"
|
2011-04-14 16:26:16 +02:00
|
|
|
When I mark "visible todo" as complete
|
2011-01-11 02:47:29 +01:00
|
|
|
And I should see "<empty message>"
|
2011-04-14 16:26:16 +02:00
|
|
|
And I should see "visible todo" in the completed container
|
2010-12-20 18:20:37 +01:00
|
|
|
|
2011-04-14 16:26:16 +02:00
|
|
|
Scenarios:
|
2011-04-21 16:54:35 +02:00
|
|
|
| page | empty message |
|
|
|
|
|
| tag page for "starred" | Currently there are no deferred or pending actions |
|
|
|
|
|
| "visible project" project | Currently there are no deferred or pending actions |
|
2011-01-11 02:47:29 +01:00
|
|
|
|
2011-04-21 16:54:35 +02:00
|
|
|
@selenium
|
|
|
|
|
Scenario Outline: I can mark a completed todo active and it will update empty messages and context containers
|
|
|
|
|
Given I have a completed todo with description "visible todo" in project "visible project" with tags "starred" in the context "visible context"
|
2011-01-11 02:47:29 +01:00
|
|
|
When I go to the <page>
|
|
|
|
|
Then I should see "<empty message>"
|
2011-04-21 16:54:35 +02:00
|
|
|
And I should not see the container for context "visible context"
|
|
|
|
|
And I should not see "<empty completed message>"
|
2011-01-11 02:47:29 +01:00
|
|
|
When I mark the complete todo "visible todo" active
|
2011-04-21 16:54:35 +02:00
|
|
|
Then I should see the container for context "visible context"
|
2011-01-11 02:47:29 +01:00
|
|
|
And I should see "<empty completed message>"
|
2011-04-14 16:26:16 +02:00
|
|
|
And I should see "visible todo" in the context container for "visible context"
|
2011-01-11 02:47:29 +01:00
|
|
|
And I should not see "<empty message>"
|
|
|
|
|
|
|
|
|
|
Scenarios:
|
2011-04-21 16:54:35 +02:00
|
|
|
| page | empty message | empty completed message |
|
|
|
|
|
| tag page for "starred" | No actions found | Currently there are no completed actions |
|
|
|
|
|
| home page | No actions found | Currently there are no completed actions |
|
2011-01-11 02:47:29 +01:00
|
|
|
|
2011-04-21 16:54:35 +02:00
|
|
|
@selenium
|
|
|
|
|
Scenario Outline: I can mark a completed todo active and it will update empty messages for pages without context containers
|
|
|
|
|
Given I have a completed todo with description "visible todo" in project "visible project" with tags "starred" in the context "visible context"
|
|
|
|
|
When I go to the <page>
|
|
|
|
|
Then I should see "<empty message>"
|
|
|
|
|
And I should not see "<empty completed message>"
|
|
|
|
|
When I mark the complete todo "visible todo" active
|
|
|
|
|
And I should see "<empty completed message>"
|
|
|
|
|
And I should not see "<empty message>"
|
|
|
|
|
|
|
|
|
|
Scenarios:
|
|
|
|
|
| page | empty message | empty completed message |
|
|
|
|
|
| context page for "visible context" | Currently there are no incomplete actions in this context | Currently there are no completed actions |
|
|
|
|
|
| "visible project" project | Currently there are no incomplete actions in this project | Currently there are no completed actions |
|
|
|
|
|
|
|
|
|
|
@selenium
|
|
|
|
|
Scenario Outline: I can edit a todo to change its description
|
|
|
|
|
# do for more pages, see #1094
|
|
|
|
|
Given I have a todo with description "visible todo" in project "visible project" with tags "starred" in the context "visible context" that is due next week
|
|
|
|
|
When I go to the <page>
|
|
|
|
|
And I edit the description of "visible todo" to "changed todo"
|
|
|
|
|
Then I should not see "visible todo"
|
|
|
|
|
And I should see "changed todo"
|
|
|
|
|
|
|
|
|
|
Scenarios:
|
|
|
|
|
| page |
|
|
|
|
|
| home page |
|
|
|
|
|
| context page for "visible context" |
|
|
|
|
|
| "visible project" project |
|
|
|
|
|
| tag page for "starred" |
|
|
|
|
|
| calendar page |
|
2010-12-25 16:28:53 +01:00
|
|
|
|
2011-08-11 17:13:01 +02:00
|
|
|
@selenium
|
|
|
|
|
Scenario Outline: I can edit a todo to move it to another context
|
|
|
|
|
Given I have a context called "@pc"
|
|
|
|
|
And I have a context called "@laptop"
|
|
|
|
|
And I have a project "my project" that has the following todos
|
|
|
|
|
| context | description | tags |
|
|
|
|
|
| @pc | first action | bla |
|
|
|
|
|
| @laptop | second action | bla |
|
|
|
|
|
When I go to the <page>
|
|
|
|
|
Then I should see "first action" in the context container for "@pc"
|
|
|
|
|
When I edit the context of "first action" to "@laptop"
|
|
|
|
|
Then I should not see "first action" in the context container for "@pc"
|
|
|
|
|
Then I should see "first action" in the context container for "@laptop"
|
|
|
|
|
|
|
|
|
|
Scenarios:
|
|
|
|
|
| page |
|
|
|
|
|
| home page |
|
|
|
|
|
| tag page for "bla" |
|
|
|
|
|
|
|
|
|
|
@selenium
|
|
|
|
|
Scenario: I can edit a todo to move it to another context in tickler page
|
|
|
|
|
Given I have a context called "@pc"
|
|
|
|
|
And I have a context called "@laptop"
|
|
|
|
|
And I have a project "my project" that has the following deferred todos
|
|
|
|
|
| context | description |
|
|
|
|
|
| @pc | first action |
|
|
|
|
|
| @laptop | second action |
|
|
|
|
|
When I go to the tickler page
|
|
|
|
|
Then I should see "first action" in the context container for "@pc"
|
|
|
|
|
When I edit the context of "first action" to "@laptop"
|
|
|
|
|
Then I should not see "first action" in the context container for "@pc"
|
|
|
|
|
Then I should see "first action" in the context container for "@laptop"
|
2010-12-20 18:20:37 +01:00
|
|
|
|
|
|
|
|
Scenario: I can edit a todo to move it to another project
|
|
|
|
|
Given this is a pending scenario
|
|
|
|
|
|
|
|
|
|
Scenario: I can edit a todo to move it to the tickler
|
|
|
|
|
Given this is a pending scenario
|
|
|
|
|
|
|
|
|
|
Scenario: I can defer a todo
|
|
|
|
|
Given this is a pending scenario
|
|
|
|
|
|
|
|
|
|
Scenario: I can make a project from a todo
|
|
|
|
|
Given this is a pending scenario
|
|
|
|
|
|
|
|
|
|
Scenario: I can show the notes of a todo
|
|
|
|
|
Given this is a pending scenario
|
|
|
|
|
|
|
|
|
|
Scenario: I can tag a todo
|
|
|
|
|
Given this is a pending scenario
|
|
|
|
|
|
|
|
|
|
Scenario: Clicking a tag of a todo will go to that tag page
|
|
|
|
|
Given this is a pending scenario
|
|
|
|
|
|
|
|
|
|
Scenario: I can edit the tags of a todo
|
|
|
|
|
Given this is a pending scenario
|
2010-12-25 16:28:53 +01:00
|
|
|
|
|
|
|
|
Scenario: Editing the context of a todo to a new context will show new context
|
2011-01-08 09:12:37 +01:00
|
|
|
Given this is a pending scenario # for home and tickler and tag
|
2010-12-25 16:28:53 +01:00
|
|
|
|
|
|
|
|
Scenario: Making an error when editing a todo will show error message
|
2011-01-08 09:12:37 +01:00
|
|
|
Given this is a pending scenario
|