mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
124 lines
5.5 KiB
Gherkin
124 lines
5.5 KiB
Gherkin
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"
|
|
|
|
Scenario: I can toggle the star of a todo
|
|
Given this is a pending scenario
|
|
|
|
@selenium @wip
|
|
Scenario: I can delete a todo
|
|
Given I have a todo with description "delete me" in the context "@home"
|
|
When I go to the home page
|
|
Then I should see "delete me"
|
|
And I delete the todo
|
|
Then I should not see "delete me"
|
|
|
|
Scenario: Removing the last todo in context will hide context # delete, edit
|
|
Given this is a pending scenario
|
|
|
|
Scenario: Deleting the last todo in container will show empty message # only project, context, tag, not todo
|
|
Given this is a pending scenario
|
|
|
|
@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
|
|
|
|
@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 # do for more pages, see #1094
|
|
Given this is a pending scenario
|
|
|
|
Scenario: I can edit a todo to move it to another context
|
|
Given this is a pending scenario
|
|
|
|
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
|
|
|
|
Scenario: Editing the context of a todo to a new context will show new context
|
|
Given this is a pending scenario # for home and tickler and tag
|
|
|
|
Scenario: Making an error when editing a todo will show error message
|
|
Given this is a pending scenario
|