forked from backlogs/redmine_backlogs
/
team_member.feature
executable file
·121 lines (107 loc) · 5.16 KB
/
team_member.feature
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Feature: Team Member
As a team member
I want to manage update stories and tasks
So that I can update everyone on the status of the project
Background:
Given the ecookbook project has the backlogs plugin enabled
And I am a team member of the project
And the project has the following sprints:
| name | sprint_start_date | effective_date |
| Sprint 001 | 2010-01-01 | 2010-01-31 |
| Sprint 002 | 2010-02-01 | 2010-02-28 |
| Sprint 003 | 2010-03-01 | 2010-03-31 |
| Sprint 004 | 2010-03-01 | 2010-03-31 |
And the project has the following stories in the following sprints:
| position | subject | sprint |
| 1 | Story 1 | Sprint 001 |
| 2 | Story 2 | Sprint 001 |
| 3 | Story 3 | Sprint 001 |
| 4 | Story 4 | Sprint 002 |
And the project has the following tasks:
| subject | parent |
| Task 1 | Story 1 |
And the project has the following impediments:
| subject | sprint | blocks |
| Impediment 1 | Sprint 001 | Story 1 |
| Impediment 2 | Sprint 001 | Story 2 |
Scenario: Create a task for a story
Given I am viewing the taskboard for Sprint 001
And I want to create a task for Story 1
And I set the subject of the task to A Whole New Task
When I create the task
Then the request should complete successfully
And the 1st task for Story 1 should be A Whole New Task
Scenario: Update a task for a story
Given I am viewing the taskboard for Sprint 001
And I want to edit the task named Task 1
And I set the subject of the task to Whoa there, Sparky
When I update the task
Then the request should complete successfully
And the story named Story 1 should have 1 task named Whoa there, Sparky
Scenario: View a taskboard
Given I am viewing the taskboard for Sprint 001
Then I should see the taskboard
Scenario: View the burndown chart
Given I am viewing the burndown for Sprint 002
Then I should see the burndown chart
Scenario: View sprint stories in the issues tab
Given I am viewing the master backlog
When I view the stories of Sprint 001 in the issues tab
Then I should see the Issues page
Scenario: View the project stories in the issues tab
Given I am viewing the master backlog
When I view the stories in the issues tab
Then I should see the Issues page
Scenario: Fetch the updated stories
Given I am viewing the master backlog
When the browser fetches stories updated since 1 week ago
Then the request should complete successfully
And the server should return 4 updated stories
Scenario: Fetch the updated tasks
Given I am viewing the taskboard for Sprint 001
When the browser fetches tasks updated since 1 week ago
Then the request should complete successfully
And the server should return 1 updated task
Scenario: Fetch the updated impediments
Given I am viewing the taskboard for Sprint 001
When the browser fetches impediments updated since 1 week ago
Then the request should complete successfully
And the server should return 2 updated impediments
Scenario: Fetch zero updated impediments
Given I am viewing the taskboard for Sprint 001
When the browser fetches impediments updated since 1 week from now
Then the request should complete successfully
And the server should return 0 updated impediments
Scenario: Copy estimate to remaining
Given I am viewing the taskboard for Sprint 001
And I want to create a task for Story 1
And I set the subject of the task to A Whole New Task
And I set the estimated_hours of the task to 3
When I create the task
Then the request should complete successfully
And task A Whole New Task should have remaining_hours set to 3
Scenario: Copy remaining to estimate
Given I am viewing the taskboard for Sprint 001
And I want to create a task for Story 1
And I set the subject of the task to A Whole New Task
And I set the remaining_hours of the task to 3
When I create the task
Then the request should complete successfully
And task A Whole New Task should have estimated_hours set to 3
Scenario: Set both estimate and remaining
Given I am viewing the taskboard for Sprint 001
And I want to create a task for Story 1
And I set the subject of the task to A Whole New Task
And I set the remaining_hours of the task to 3
And I set the estimated_hours of the task to 8
When I create the task
And I want to create a task for Story 1
And I set the subject of the task to A Second New Task
And I set the remaining_hours of the task to 1
And I set the estimated_hours of the task to 2
When I create the task
Then the request should complete successfully
And task A Whole New Task should have remaining_hours set to 3
And task A Whole New Task should have estimated_hours set to 8
And story Story 1 should have remaining_hours set to 4
And story Story 1 should have estimated_hours set to 10