get some corner cases on toggle complete and empty messages working

This commit is contained in:
Reinier Balt 2011-01-11 02:47:29 +01:00
parent 1a821a228f
commit d81e82a135
6 changed files with 136 additions and 31 deletions

View file

@ -21,11 +21,66 @@ Feature: Edit a next action from every page
Scenario: Deleting the last todo in container will show empty message # only project, context, tag, not todo
Given this is a pending scenario
Scenario: I can mark a todo complete
@selenium @wip
Scenario Outline: I can mark an active todo complete and it will update empty messages
When I go to the <page>
Then I should see "<empty message>"
When I submit a new action with description "visible todo" to project "visible project" with tags "test" in the context "visible context"
Then I should see "visible todo"
And I should not see "<empty message>"
When I mark the todo complete
Then I should not see "visible context"
And I should see "<empty message>"
And I should see "visible todo" in the completed todos container
Scenarios:
| page | empty message |
| tag page for "starred" | No actions found |
| home page | No actions found |
| context page for "visible context" | Currently there are no deferred or pending actions |
| project page for "visible project" | Currently there are no deferred or pending actions |
@selenium @wip
Scenario Outline: I can mark a deferred todo complete and it will update empty messages
When I go to the <page> # not for home page because it does not show deferred todos
Then I should see "<empty message>"
When I submit a new deferred action with description "visible todo" to project "visible project" with tags "test" in the context "visible context"
Then I should see "visible todo"
And I should not see "<empty message>"
When I mark the todo complete
Then I should not see "visible context"
And I should see "<empty message>"
And I should see "visible todo" in the completed todos container
Scenarios:
| page | empty message |
| tag page for "starred" | Currently there are no deferred or pending actions |
| context page for "visible context" | Currently there are no deferred or pending actions |
| project page for "visible project" | Currently there are no deferred or pending actions |
@selenium @wip
Scenario: I can mark a deferred todo complete and it will update empty messages
Given this is a pending scenario
Scenario: I can mark a completed todo active
Given this is a pending scenario
@selenium @wip
Scenario Outline: I can mark a completed todo active and it will update empty messages
Given I have a completed todo with description "visible todo" to project "visible project" with tags "test" in the context "visible context"
When I go to the <page>
Then I should see "<empty message>"
And I should not see "visible context"
And I should see "<empty completed message>"
When I mark the complete todo "visible todo" active
Then I should see "visible context"
And I should see "<empty completed message>"
And I should see "visible todo" in context container for "visible context"
And I should not see "<empty message>"
Scenarios:
| page | empty message |
| tag page for "starred" | No actions found |
| home page | No actions found |
| context page for "visible context" | Currently there are no deferred or pending actions |
| project page for "visible project" | Currently there are no deferred or pending actions |
Scenario: I can edit a todo to change its description
Given this is a pending scenario