mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-08 00:34:19 +01:00
migrate calendar feature
This commit is contained in:
parent
75f2afc2e1
commit
de309c8ee8
14 changed files with 87 additions and 224 deletions
|
|
@ -10,48 +10,49 @@ Feature: Show all due actions in a calendar view
|
|||
And I have logged in as "testuser" with password "secret"
|
||||
And I have a context called "@calendar"
|
||||
|
||||
@selenium
|
||||
@javascript
|
||||
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"
|
||||
When I submit a new action with description "something new" 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"
|
||||
And I should not see "something new"
|
||||
When I go to the home page
|
||||
And I edit the due date of "a new next action" to tomorrow
|
||||
Then I should see "something new"
|
||||
When I edit the due date of "something new" to tomorrow
|
||||
And I go to the calendar page
|
||||
Then the badge should show 1
|
||||
And I should see "a new next action"
|
||||
Then I should see "something new"
|
||||
And the badge should show 1
|
||||
|
||||
@selenium
|
||||
@javascript
|
||||
Scenario: Clearing the due date of a todo will remove it from the 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 submit a new action with description "something new" in the context "@calendar"
|
||||
And I edit the due date of "something new" 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"
|
||||
Then I should see "something new"
|
||||
When I clear the due date of "something new"
|
||||
Then I should not see "something new"
|
||||
|
||||
@selenium
|
||||
@javascript
|
||||
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
|
||||
Given I have a todo "something new" 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"
|
||||
Then I should see "something new"
|
||||
When I clear the due date of "something new"
|
||||
Then I should not see "something new"
|
||||
|
||||
@selenium
|
||||
@javascript
|
||||
Scenario: Deleting a todo will remove it from the calendar
|
||||
Given I have a todo "a new next action" in the context "@calendar" which is due tomorrow
|
||||
Given I have a todo "something new" 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"
|
||||
Then I should see "something new"
|
||||
When I delete the action "something new"
|
||||
Then I should not see "something new"
|
||||
|
||||
@selenium
|
||||
@javascript
|
||||
Scenario: Changing due date of a todo will move it in the calendar
|
||||
Given I have a todo "a new next action" in the context "@calendar" which is due tomorrow
|
||||
Given I have a todo "something new" 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
|
||||
Then I should see "something new"
|
||||
When I edit the due date of "something new" to next month
|
||||
Then I should see "something new" in the due next month container
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue