mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 07:21:48 +01:00
Update and add scenario's for testing interaction with new deferred container on context page and fix regressions
This commit is contained in:
parent
dd957f0feb
commit
7435b1ba93
14 changed files with 161 additions and 112 deletions
|
|
@ -10,7 +10,7 @@ Feature: Edit a context
|
|||
And I have logged in as "testuser" with password "secret"
|
||||
And I have a context called "@pc"
|
||||
And I have a project called "test project"
|
||||
And I have 2 todos in project "test project" in context "@pc" with tags "starred"
|
||||
And I have 2 todos in project "test project" in context "@pc" with tags "starred" prefixed by "test_project "
|
||||
|
||||
@javascript
|
||||
Scenario: In place edit of context name
|
||||
|
|
@ -26,48 +26,81 @@ Feature: Edit a context
|
|||
Scenario: Editing the context of a todo will remove the todo
|
||||
When I go to the the context page for "@pc"
|
||||
Then the badge should show 2
|
||||
When I edit the context of "todo 1" to "@laptop"
|
||||
Then I should not see "todo 1"
|
||||
When I edit the context of "test_project todo 1" to "@laptop"
|
||||
Then I should not see the todo "todo 1"
|
||||
And the badge should show 1
|
||||
|
||||
@javascript
|
||||
Scenario: Editing the description of a a todo will update that todo
|
||||
When I go to the the context page for "@pc"
|
||||
And I edit the description of "todo 1" to "changed"
|
||||
Then I should not see "todo 1"
|
||||
And I edit the description of "test_project todo 1" to "changed"
|
||||
Then I should not see "test_project todo 1"
|
||||
And I should see "changed"
|
||||
|
||||
@javascript
|
||||
Scenario: Editing the context of the last todo will remove the todo and show empty message
|
||||
When I go to the the context page for "@pc"
|
||||
And I edit the context of "todo 1" to "@laptop"
|
||||
Then I should not see "todo 1"
|
||||
And I edit the context of "test_project todo 1" to "@laptop"
|
||||
Then I should not see the todo "test_project todo 1"
|
||||
And the badge should show 1
|
||||
When I edit the context of "todo 2" to "@laptop"
|
||||
Then I should not see "todo 2"
|
||||
When I edit the context of "test_project todo 2" to "@laptop"
|
||||
Then I should not see the todo "test_project todo 2"
|
||||
And the badge should show 0
|
||||
And I should see "Currently there are no incomplete actions in this context"
|
||||
And I should see empty message for todos of context
|
||||
|
||||
@javascript
|
||||
Scenario: Adding a todo to a hidden project will not show the todo
|
||||
Given I have a hidden project called "hidden project"
|
||||
When I go to the the context page for "@pc"
|
||||
And I edit the project of "todo 1" to "hidden project"
|
||||
Then I should not see "todo 1"
|
||||
And I edit the project of "test_project todo 1" to "hidden project"
|
||||
Then I should not see the todo "test_project todo 1"
|
||||
When I submit a new action with description "todo X" to project "hidden project" in the context "@pc"
|
||||
Then I should not see "todo X"
|
||||
Then I should not see the todo "todo X"
|
||||
When I go to the "hidden project" project
|
||||
Then I should see "todo 1"
|
||||
And I should see "todo X"
|
||||
Then I should see the todo "test_project todo 1"
|
||||
And I should see the todo "todo X"
|
||||
And the badge should show 2
|
||||
|
||||
@javascript
|
||||
Scenario: Adding a todo to a hidden context will show that todo
|
||||
Given I have a hidden context called "@personal"
|
||||
When I go to the the context page for "@pc"
|
||||
And I edit the context of "todo 1" to "@personal"
|
||||
Then I should not see "todo 1"
|
||||
And I edit the context of "test_project todo 1" to "@personal"
|
||||
Then I should not see the todo "test_project todo 1"
|
||||
When I go to the context page for "@personal"
|
||||
Then I should see "todo 1"
|
||||
Then I should see the todo "test_project todo 1"
|
||||
When I submit a new action with description "todo X" to project "test project" in the context "@personal"
|
||||
Then I should see "todo X"
|
||||
Then I should see the todo "todo X"
|
||||
|
||||
@javascript
|
||||
Scenario: Moving the todo to the tickler will move todo to tickler container and update empty messages
|
||||
Given I have a context "test" with 1 todos
|
||||
When I go to the "test" context
|
||||
Then I should see "todo 1" in the action container
|
||||
And I should see empty message for deferred todos of context
|
||||
And I should see empty message for completed todos of context
|
||||
When I defer "todo 1" for 1 day
|
||||
Then I should see "todo 1" in the deferred container
|
||||
And I should not see empty message for deferred todos of context
|
||||
And I should see empty message for completed todos of context
|
||||
And I should see empty message for todos of context
|
||||
|
||||
@javascript
|
||||
Scenario: Moving the todo out of the tickler will move todo to active container and update empty messages
|
||||
Given I have a context "test" with 1 deferred todos
|
||||
When I go to the "test" context
|
||||
Then I should see "deferred todo 1" in the deferred container
|
||||
And I should see empty message for todos of context
|
||||
And I should not see empty message for deferred todos of context
|
||||
When I clear the show from date of "deferred todo 1"
|
||||
Then I should see "deferred todo 1" in the action container
|
||||
And I should see empty message for deferred todos of context
|
||||
And I should not see empty message for todos of context
|
||||
|
||||
@javascript
|
||||
Scenario: Making all deferred todos inactive will show empty message
|
||||
Given I have a context "test" with 1 deferred todos
|
||||
When I go to the "test" context
|
||||
And I mark "deferred todo 1" as complete
|
||||
Then I should see empty message for todos of context
|
||||
And I should see empty message for deferred todos of context
|
||||
Loading…
Add table
Add a link
Reference in a new issue