mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-23 15:44:09 +01:00
get some wip cucumber tests running
This commit is contained in:
parent
1372bb110e
commit
c0115eacd7
11 changed files with 273 additions and 179 deletions
|
|
@ -20,11 +20,44 @@ Feature: Edit a next action from every page
|
|||
When I delete the action "delete me"
|
||||
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
|
||||
@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"
|
||||
|
||||
Scenario: Deleting the last todo in container will show empty message # only project, context, tag, not todo
|
||||
Given this is a pending scenario
|
||||
@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 |
|
||||
|
||||
@selenium
|
||||
Scenario Outline: I can mark an active todo complete and it will update empty messages
|
||||
|
|
@ -46,23 +79,23 @@ Feature: Edit a next action from every page
|
|||
| tag page for "starred" | No actions found |
|
||||
| context page for "visible context" | Currently there are no incomplete actions in this context |
|
||||
|
||||
@selenium @wip
|
||||
@selenium
|
||||
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
|
||||
Given I have a context called "visible context"
|
||||
And I have a project called "visible project"
|
||||
When I go to the <page> # not for home page or context 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"
|
||||
When I submit a new deferred action with description "visible todo" to project "visible project" with tags "starred" in the context "visible context"
|
||||
Then I should see "visible todo"
|
||||
And I should not see "<empty message>"
|
||||
When I mark "visible todo" complete
|
||||
Then I should not see "visible context"
|
||||
When I mark "visible todo" as complete
|
||||
And I should see "<empty message>"
|
||||
And I should see "visible todo" in the completed todos container
|
||||
And I should see "visible todo" in the completed container
|
||||
|
||||
Scenarios:
|
||||
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 |
|
||||
| "visible project" project | Currently there are no deferred or pending actions |
|
||||
|
||||
@selenium @wip
|
||||
Scenario Outline: I can mark a completed todo active and it will update empty messages
|
||||
|
|
@ -74,7 +107,7 @@ Feature: Edit a next action from every page
|
|||
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 see "visible todo" in the context container for "visible context"
|
||||
And I should not see "<empty message>"
|
||||
|
||||
Scenarios:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue