tracks/features/calendar.feature
2011-02-27 00:36:11 +01:00

35 lines
1.4 KiB
Gherkin

Feature: Show all due actions in a calendar view
As a Tracks user
In order to keep overview of my due todos
I want to manage due todos in a calendar view
Background:
Given the following user record
| login | password | is_admin |
| testuser | secret | false |
And I have logged in as "testuser" with password "secret"
And I have a context called "@calendar"
@selenium
Scenario: Setting due date of a todo will show it in the calendar
When I submit a new action with description "a new next action" in the context "@calendar"
And I go to the calendar page
Then the badge should show 0
And I should not see "a new next action"
When I go to the home page
And I edit the due date of "a new next action" to tomorrow
And I go to the calendar page
Then the badge should show 1
And I should see "a new next action"
@selenium @wip
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"
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"
Scenario: Changing due date of a todo will move it in the calendar
Given this is a pending scenario