mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-20 16:06:10 +01:00
fix #1121 and add tests for this
This commit is contained in:
parent
3711acb6ab
commit
b02bb3fdde
7 changed files with 70 additions and 13 deletions
|
|
@ -22,14 +22,36 @@ Feature: Show all due actions in a calendar view
|
|||
Then the badge should show 1
|
||||
And I should see "a new next action"
|
||||
|
||||
@selenium @wip
|
||||
@selenium
|
||||
Scenario: Clearing the due date of a todo will remove it from the calendar
|
||||
When I submit a new action with description "a new next action" in the context "@calendar"
|
||||
When I go to the home page
|
||||
And I submit a new action with description "a new next action" in the context "@calendar"
|
||||
And I edit the due date of "a new next action" to tomorrow
|
||||
And I go to the calendar page
|
||||
Then I should see "a new next action"
|
||||
When I clear the due date of "a new next action"
|
||||
Then I should not see "a new next action"
|
||||
|
||||
@selenium
|
||||
Scenario: Marking a todo complete will remove it from the calendar
|
||||
Given I have a todo "a new next action" in the context "@calendar" which is due tomorrow
|
||||
When I go to the calendar page
|
||||
Then I should see "a new next action"
|
||||
When I clear the due date of "a new next action"
|
||||
Then I should not see "a new next action"
|
||||
|
||||
@selenium
|
||||
Scenario: Deleting a todo complete will remove it from the calendar
|
||||
Given I have a todo "a new next action" in the context "@calendar" which is due tomorrow
|
||||
When I go to the calendar page
|
||||
Then I should see "a new next action"
|
||||
When I delete the action "a new next action"
|
||||
Then I should not see "a new next action"
|
||||
|
||||
@selenium
|
||||
Scenario: Changing due date of a todo will move it in the calendar
|
||||
Given this is a pending scenario
|
||||
Given I have a todo "a new next action" in the context "@calendar" which is due tomorrow
|
||||
When I go to the calendar page
|
||||
Then I should see "a new next action"
|
||||
When I edit the due date of "a new next action" to next month
|
||||
Then I should see "a new next action" in the due next month container
|
||||
Loading…
Add table
Add a link
Reference in a new issue