forked from JumpstartLab/tracks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecurring_todos.feature
More file actions
87 lines (77 loc) · 3.58 KB
/
recurring_todos.feature
File metadata and controls
87 lines (77 loc) · 3.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Feature: Manage recurring todos
In order to manage repeating todos
As a Tracks user
I want to view, edit, add, or remove recurrence patterns of repeating todos
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 "test context"
And I have a repeat pattern called "run tests"
@javascript
Scenario: Being able to select daily, weekly, monthly and yearly pattern
When I go to the repeating todos page
And I follow "Add a new recurring action"
Then I should see the form for "Daily" recurrence pattern
When I select "Weekly" recurrence pattern
Then I should see the form for "Weekly" recurrence pattern
When I select "Monthly" recurrence pattern
Then I should see the form for "Monthly" recurrence pattern
When I select "Yearly" recurrence pattern
Then I should see the form for "Yearly" recurrence pattern
When I select "Daily" recurrence pattern
Then I should see the form for "Daily" recurrence pattern
@javascript
Scenario: I can mark a repeat pattern as starred
When I go to the repeating todos page
And I star the pattern "run tests"
Then the pattern "run tests" should be starred
@javascript
Scenario: I can edit a repeat pattern
When I go to the repeating todos page
And I edit the name of the pattern "run tests" to "report test results"
Then the pattern "report test results" should be in the state list "active"
And I should not see "run tests"
@javascript
Scenario: I can delete a repeat pattern
When I go to the repeating todos page
And I delete the pattern "run tests"
And I should not see "run tests"
@javascript
Scenario: I can mark a repeat pattern as done
When I go to the repeating todos page
Then the pattern "run tests" should be in the state list "active"
And the state list "completed" should be empty
When I mark the pattern "run tests" as complete
Then the pattern "run tests" should be in the state list "completed"
And the state list "active" should be empty
@javascript
Scenario: I can reactivate a repeat pattern
Given I have a completed repeat pattern "I'm done"
When I go to the repeating todos page
Then the pattern "I'm done" should be in the state list "completed"
When I mark the pattern "I'm done" as active
Then the pattern "I'm done" should be in the state list "active"
And the state list "completed" should be empty
@javascript
Scenario: Following the recurring todo link of a todo takes me to the recurring todos page
When I go to the home page
Then I should see the todo "run tests"
When I follow the recurring todo link of "run tests"
Then I should be on the repeating todos page
@javascript
Scenario: Deleting a recurring todo with ending pattern will show message
When I go to the repeating todos page
And I mark the pattern "run tests" as complete
And I go to the home page
Then I should see "run tests"
When I delete the action "run tests"
Then I should see "There is no next action after the recurring action you just deleted. The recurrence is completed"
@javascript
Scenario: Deleting a recurring todo with active pattern will show new todo
When I go to the home page
Then I should see "run tests"
When I delete the action "run tests"
Then I should see "Action was deleted. Because this action is recurring, a new action was added"
And I should see "run tests" in the context container for "test context"