-
Notifications
You must be signed in to change notification settings - Fork 459
/
Copy pathshared-versions-pblpage.feature
311 lines (294 loc) · 17 KB
/
shared-versions-pblpage.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
Feature: Shared versions
As a project manager
I want to use shared versions
So that I can manage release over projects
Background:
Given the ecookbook project has the backlogs plugin enabled
And sharing is enabled
And I have defined the following projects:
| name |
| p1 |
| p1s1 |
| p1s1s1 |
| p1s2 |
| p2 |
And the p1 project has the backlogs plugin enabled
And the p2 project has the backlogs plugin enabled
And the p1s1 project has the backlogs plugin enabled
And the p1s1 project is subproject of the p1 project
And the p1s1s1 project has the backlogs plugin enabled
And the p1s1s1 project is subproject of the p1s1 project
And the p1s2 project has the backlogs plugin enabled
And the p1s2 project is subproject of the p1 project
And no versions or issues exist
And I am a product owner of the project
And I have defined the following sprints:
| name | sprint_start_date | effective_date | sharing | project_id | status |
| Sp001 | 2010-01-01 | 2010-01-31 | none | p1 | |
| Sp002 | 2010-01-01 | 2010-01-31 | tree | p1 | |
| Sp002c | 2010-01-01 | 2010-01-31 | tree | p1 | closed |
| Sp003 | 2010-01-01 | 2010-01-31 | none | p1s1 | |
| Sp004 | 2010-01-01 | 2010-01-31 | hierarchy | p1s1 | |
| Sp004c | 2009-08-08 | 2009-09-08 | hierarchy | p1s1 | closed |
| Sp005 | 2010-01-01 | 2010-01-31 | tree | p1s1 | |
| Sp006 | 2010-01-01 | 2010-01-31 | descendants | p1s1 | |
| Sp007 | 2010-01-01 | 2010-01-31 | none | p1s2 | |
| Sp009 | 2010-01-01 | 2010-01-31 | none | p1s1s1 | |
| Sp010 | 2010-01-01 | 2010-01-31 | hierarchy | p1s1s1 | |
| Sp011 | 2010-01-01 | 2010-01-31 | none | p2 | |
| Sp012 | 2010-01-01 | 2010-01-31 | system | p2 | |
| Sp013 | 2010-01-01 | 2010-01-31 | none | p1 | |
And I have defined the following stories in the following sprints:
| subject | sprint | project_id |
| Story 1 | Sp001 | p1 |
| Story 2 | Sp002 | p1 |
| Story 3 | Sp003 | p1s1 |
| Story 4 | Sp004 | p1s1 |
| Story 5 | Sp005 | p1s1 |
| Story 6 | Sp006 | p1s1 |
| Story 7 | Sp007 | p1s2 |
| Story 9 | Sp009 | p1s1s1 |
| Story10 | Sp010 | p1s1s1 |
| Story11 | Sp011 | p2 |
| Story12 | Sp012 | p2 |
| Story13 | Sp013 | p1 |
And I have defined the following stories in the product backlog:
| subject | project_id |
| Story a | ecookbook |
| Story b | p1 |
| Story c | p2 |
| Story d | p1s1 |
| Story e | p1s2 |
| Story f | p1s1s1 |
And I have defined the following impediments:
| subject | sprint | blocks |
| Impediment 1 | Sp001 | Story 1 |
| Impediment 2 | Sp002 | Story 2 |
Scenario: View the toplevel backlog page without sharing
Given I have selected the p1 project
And sharing is not enabled
And I am viewing the master backlog
Then I should see the product backlog
And I should see 3 sprint backlogs
And I should see 1 stories in the product backlog
Scenario: View the toplevel backlog page with subprojects excluded
Given I have selected the p1 project
And the project selected not to include subprojects in the product backlog
And I am viewing the master backlog
Then I should see the product backlog
And I should see 1 stories in the product backlog
@javascript
Scenario: View the toplevel backlog page with sharing defaults
Given I have selected the p1 project
And I am viewing the master backlog
Then I should see the product backlog
And I should see 4 stories in the product backlog
And I should see 7 sprint backlogs
And I should see the backlog of Sprint Sp001
And I should see the backlog of Sprint Sp002
And I should not see the backlog of Sprint Sp003
And I should see the backlog of Sprint Sp004
And I should see the backlog of Sprint Sp005
And I should not see the backlog of Sprint Sp006
And I should not see the backlog of Sprint Sp007
And I should not see the backlog of Sprint Sp009
And I should see the backlog of Sprint Sp010
And I should not see the backlog of Sprint Sp011
And I should see the backlog of Sprint Sp012
And I should see the backlog of Sprint Sp013
And I should see 1 stories in the sprint backlog of Sp001
And I should see 1 stories in the sprint backlog of Sp002
And I should see 1 stories in the sprint backlog of Sp013
And I should see 1 stories in the sprint backlog of Sp004
And I should see 1 stories in the sprint backlog of Sp005
And I should see 1 stories in the sprint backlog of Sp010
And I should see 1 stories in the sprint backlog of Sp012
# When I drag story Story 2 to the product backlog before the story Story d
# Then the 2nd story in the product backlog should be Story 2
# When I drag story Story12 to the product backlog before the story Story d
# Then story Story12 is unchanged
# And the 1st story in Sp012 should be Story12
# When I drag story Story10 to the product backlog before the story Story d
# Then the 3rd story in the product backlog should be Story10
# When I drag story Story 4 to the product backlog before the story Story d
# Then the 4th story in the product backlog should be Story 4
# When I drag story Story 5 to the product backlog before the story Story d
# Then the 5th story in the product backlog should be Story 5
@javascript @optional
Scenario: View the subjproject backlog page in the middle
Given I have selected the p1s1 project
And I am viewing the master backlog
Then I should see the product backlog
And I should see 2 stories in the product backlog
And I should see 7 sprint backlogs
And I should not see the backlog of Sprint Sp001
And I should see the backlog of Sprint Sp002
And I should see the backlog of Sprint Sp003
And I should see the backlog of Sprint Sp004
And I should see the backlog of Sprint Sp005
And I should see the backlog of Sprint Sp006
And I should not see the backlog of Sprint Sp007
And I should not see the backlog of Sprint Sp009
And I should see the backlog of Sprint Sp010
And I should not see the backlog of Sprint Sp011
And I should see the backlog of Sprint Sp012
And I should not see the backlog of Sprint Sp013
Then The menu of the product backlog should not allow to create a new Story in project p1
And The menu of the product backlog should not allow to create a new Story in project p2
And The menu of the product backlog should allow to create a new Story in project p1s1
And The menu of the product backlog should allow to create a new Story in project p1s1s1
And The menu of the sprint backlog of Sp002 should allow to create a new Story in project p1
And The menu of the sprint backlog of Sp002 should allow to create a new Story in project p1s1
And The menu of the sprint backlog of Sp002 should allow to create a new Story in project p1s1s1
And The menu of the sprint backlog of Sp002 should allow to create a new Story in project p1s2
And The menu of the sprint backlog of Sp002 should not allow to create a new Story in project p2
And The menu of the sprint backlog of Sp003 should allow to create a new Story in project p1s1
And The menu of the sprint backlog of Sp003 should not allow to create a new Story in project p1
And The menu of the sprint backlog of Sp003 should not allow to create a new Story in project p1s1s1
And The menu of the sprint backlog of Sp003 should not allow to create a new Story in project p2
And The menu of the sprint backlog of Sp004 should allow to create a new Story in project p1
And The menu of the sprint backlog of Sp004 should allow to create a new Story in project p1s1
And The menu of the sprint backlog of Sp004 should allow to create a new Story in project p1s1s1
And The menu of the sprint backlog of Sp004 should not allow to create a new Story in project p2
And The menu of the sprint backlog of Sp005 should allow to create a new Story in project p1
And The menu of the sprint backlog of Sp005 should allow to create a new Story in project p1s1
And The menu of the sprint backlog of Sp005 should allow to create a new Story in project p1s1s1
And The menu of the sprint backlog of Sp005 should allow to create a new Story in project p1s2
And The menu of the sprint backlog of Sp005 should not allow to create a new Story in project p2
And The menu of the sprint backlog of Sp006 should allow to create a new Story in project p1s1
And The menu of the sprint backlog of Sp006 should allow to create a new Story in project p1s1s1
And The menu of the sprint backlog of Sp006 should not allow to create a new Story in project p1
And The menu of the sprint backlog of Sp006 should not allow to create a new Story in project p1s2
And The menu of the sprint backlog of Sp006 should not allow to create a new Story in project p2
And The menu of the sprint backlog of Sp010 should allow to create a new Story in project p1
And The menu of the sprint backlog of Sp010 should allow to create a new Story in project p1s1
And The menu of the sprint backlog of Sp010 should allow to create a new Story in project p1s1s1
And The menu of the sprint backlog of Sp010 should not allow to create a new Story in project p1s2
And The menu of the sprint backlog of Sp010 should not allow to create a new Story in project p2
And The menu of the sprint backlog of Sp012 should allow to create a new Story in project p1
And The menu of the sprint backlog of Sp012 should allow to create a new Story in project p1s1
And The menu of the sprint backlog of Sp012 should allow to create a new Story in project p1s1s1
And The menu of the sprint backlog of Sp012 should allow to create a new Story in project p1s2
And The menu of the sprint backlog of Sp012 should allow to create a new Story in project p2
# When I drag story Story 3 to the product backlog
# Then the 3rd story in the product backlog should be Story 3
# When I drag story Story10 to the product backlog
# Then the 4th story in the product backlog should be Story10
# When I drag story Story 2 to the sprint backlog of Sp004
# Then the 2nd story in Sp004 should be Story 2
# When I drag story Story 2 to the sprint backlog of Sp005
# Then the 2nd story in Sp005 should be Story 2
# When I drag story Story 2 to the sprint backlog of Sp012 before the story Story12
# Then the 1st story in Sp012 should be Story 2
# When I drag story Story12 to the product backlog
# Then story Story12 is unchanged
# And the 2nd story in Sp012 should be Story12
# When I drag story Story12 to the product backlog
# Then story Story12 is unchanged
# And the 2nd story in Sp012 should be Story12
# When I drag story Story 2 to the sprint backlog of Sp003
# Then story Story 2 is unchanged
# And the 1st story in Sp012 should be Story 2
# When I drag story Story 2 to the sprint backlog of Sp006
# Then story Story 2 is unchanged
# And the 1st story in Sp012 should be Story 2
# When I drag story Story12 to the sprint backlog of Sp002
# Then story Story12 is unchanged
# And the 2nd story in Sp012 should be Story12
# When I drag story Story12 to the sprint backlog of Sp003
# Then story Story12 is unchanged
# And the 2nd story in Sp012 should be Story12
# When I drag story Story12 to the sprint backlog of Sp004
# Then story Story12 is unchanged
# And the 2nd story in Sp012 should be Story12
# When I drag story Story12 to the sprint backlog of Sp005
# Then story Story12 is unchanged
# And the 2nd story in Sp012 should be Story12
# When I drag story Story12 to the sprint backlog of Sp006
# Then story Story12 is unchanged
# And the 2nd story in Sp012 should be Story12
# When I drag story Story12 to the sprint backlog of Sp010
# Then story Story12 is unchanged
# And the 2nd story in Sp012 should be Story12
# When I drag story Story12 to the sprint backlog of Sp012 before the story Story 2
# Then the 1st story in Sp012 should be Story12
# When I drag story Story f to the sprint backlog of Sp003
# Then story Story f is unchanged
# And the 2nd story in the product backlog should be Story f
@optional
Scenario: View the subjproject backlog page at a leaf project
Given I have selected the p1s1s1 project
And I am viewing the master backlog
Then I should see the product backlog
And I should see 1 stories in the product backlog
And I should see 7 sprint backlogs
And I should not see the backlog of Sprint Sp001
And I should see the backlog of Sprint Sp002
And I should not see the backlog of Sprint Sp003
And I should see the backlog of Sprint Sp004
And I should see the backlog of Sprint Sp005
And I should see the backlog of Sprint Sp006
And I should not see the backlog of Sprint Sp007
And I should see the backlog of Sprint Sp009
And I should see the backlog of Sprint Sp010
And I should not see the backlog of Sprint Sp011
And I should see the backlog of Sprint Sp012
And I should not see the backlog of Sprint Sp013
@optional
Scenario: View the subjproject backlog page at a middle leaf project
Given I have selected the p1s2 project
And I am viewing the master backlog
Then I should see the product backlog
And I should see 1 stories in the product backlog
And I should see 4 sprint backlogs
And I should not see the backlog of Sprint Sp001
And I should see the backlog of Sprint Sp002
And I should not see the backlog of Sprint Sp003
And I should not see the backlog of Sprint Sp004
And I should see the backlog of Sprint Sp005
And I should not see the backlog of Sprint Sp006
And I should see the backlog of Sprint Sp007
And I should not see the backlog of Sprint Sp009
And I should not see the backlog of Sprint Sp010
And I should not see the backlog of Sprint Sp011
And I should see the backlog of Sprint Sp012
And I should not see the backlog of Sprint Sp013
@optional
Scenario: View the subjproject backlog page of a separate project
Given I have selected the p2 project
And I am viewing the master backlog
Then I should see the product backlog
And I should see 1 stories in the product backlog
And I should see 2 sprint backlogs
And I should not see the backlog of Sprint Sp001
And I should not see the backlog of Sprint Sp002
And I should not see the backlog of Sprint Sp003
And I should not see the backlog of Sprint Sp004
And I should not see the backlog of Sprint Sp005
And I should not see the backlog of Sprint Sp006
And I should not see the backlog of Sprint Sp007
And I should not see the backlog of Sprint Sp009
And I should not see the backlog of Sprint Sp010
And I should see the backlog of Sprint Sp011
And I should see the backlog of Sprint Sp012
And I should not see the backlog of Sprint Sp013
@javascript
Scenario: View closed sprints on toplevel project
Given I have selected the p1 project
And I am viewing the master backlog
Then I should see the product backlog
And I should not see the backlog of Sprint Sp002c
And I should not see the backlog of Sprint Sp004c
When I request the completed sprints
Then I should see the backlog of Sprint Sp002c
And I should see the backlog of Sprint Sp004c
@javascript @optional
Scenario: View closed sprints on the middle project
Given I have selected the p1s1 project
And I am viewing the master backlog
Then I should see the product backlog
And I should not see the backlog of Sprint Sp002c
And I should not see the backlog of Sprint Sp004c
When I request the completed sprints
Then I should see the backlog of Sprint Sp002c
And I should see the backlog of Sprint Sp004c