tracks/features/calendar.feature

59 lines
2.4 KiB
Gherkin
Raw Normal View History

2011-02-27 00:35:19 +01:00
Feature: Show all due actions in a calendar view
2010-12-20 18:20:37 +01:00
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"
2011-02-27 00:35:19 +01:00
And I have a context called "@calendar"
2010-12-20 18:20:37 +01:00
2012-01-30 03:42:47 +01:00
@javascript
2010-12-20 18:20:37 +01:00
Scenario: Setting due date of a todo will show it in the calendar
2012-01-30 03:42:47 +01:00
When I submit a new action with description "something new" in the context "@calendar"
2011-02-27 00:35:19 +01:00
And I go to the calendar page
Then the badge should show 0
And I should not see the todo "something new"
2011-02-27 00:35:19 +01:00
When I go to the home page
Then I should see the todo "something new"
2012-01-30 03:42:47 +01:00
When I edit the due date of "something new" to tomorrow
2011-02-27 00:35:19 +01:00
And I go to the calendar page
Then I should see the todo "something new"
2012-01-30 03:42:47 +01:00
And the badge should show 1
2010-12-20 18:20:37 +01:00
@javascript @wip
2010-12-20 18:20:37 +01:00
Scenario: Clearing the due date of a todo will remove it from the calendar
2011-03-02 08:44:34 +01:00
When I go to the home page
2012-01-30 03:42:47 +01:00
And I submit a new action with description "something new" in the context "@calendar"
And I edit the due date of "something new" to tomorrow
2011-02-27 00:35:19 +01:00
And I go to the calendar page
Then I should see the todo "something new"
2012-01-30 03:42:47 +01:00
When I clear the due date of "something new"
Then I should not see the todo "something new"
2010-12-20 18:20:37 +01:00
@javascript @wip
2011-03-10 16:50:19 +01:00
Scenario: Marking a todo complete will remove it from the calendar
2012-01-30 03:42:47 +01:00
Given I have a todo "something new" in the context "@calendar" which is due tomorrow
2011-03-10 16:50:19 +01:00
When I go to the calendar page
Then I should see the todo "something new"
2012-01-30 03:42:47 +01:00
When I clear the due date of "something new"
Then I should not see the todo "something new"
2011-03-10 16:50:19 +01:00
2014-01-09 11:18:33 +01:00
@javascript
2011-08-18 09:38:48 +02:00
Scenario: Deleting a todo will remove it from the calendar
2012-01-30 03:42:47 +01:00
Given I have a todo "something new" in the context "@calendar" which is due tomorrow
2011-03-10 16:50:19 +01:00
When I go to the calendar page
Then I should see the todo "something new"
2012-01-30 03:42:47 +01:00
When I delete the action "something new"
Then I should not see the todo "something new"
2011-03-10 16:50:19 +01:00
2012-01-30 03:42:47 +01:00
@javascript
2010-12-20 18:20:37 +01:00
Scenario: Changing due date of a todo will move it in the calendar
2012-01-30 03:42:47 +01:00
Given I have a todo "something new" in the context "@calendar" which is due tomorrow
2011-03-10 16:50:19 +01:00
When I go to the calendar page
Then I should see the todo "something new"
2012-01-30 03:42:47 +01:00
When I edit the due date of "something new" to next month
Then I should see "something new" in the due next month container