parent
a853f7e84a
commit
0ec425a8b9
@ -0,0 +1,78 @@ |
|||||||
|
#-- copyright |
||||||
|
# OpenProject Backlogs Plugin |
||||||
|
# |
||||||
|
# Copyright (C)2013 the OpenProject Foundation (OPF) |
||||||
|
# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda |
||||||
|
# Copyright (C)2010-2011 friflaj |
||||||
|
# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns |
||||||
|
# Copyright (C)2009-2010 Mark Maglana |
||||||
|
# Copyright (C)2009 Joe Heck, Nate Lowrie |
||||||
|
# |
||||||
|
# This program is free software; you can redistribute it and/or modify it under |
||||||
|
# the terms of the GNU General Public License version 3. |
||||||
|
# |
||||||
|
# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. |
||||||
|
# The copyright follows: |
||||||
|
# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj |
||||||
|
# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany |
||||||
|
# |
||||||
|
# This program is free software; you can redistribute it and/or |
||||||
|
# modify it under the terms of the GNU General Public License |
||||||
|
# as published by the Free Software Foundation; either version 2 |
||||||
|
# of the License, or (at your option) any later version. |
||||||
|
# |
||||||
|
# This program is distributed in the hope that it will be useful, |
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||||
|
# GNU General Public License for more details. |
||||||
|
# |
||||||
|
# You should have received a copy of the GNU General Public License |
||||||
|
# along with this program; if not, write to the Free Software |
||||||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||||||
|
# |
||||||
|
# See doc/COPYRIGHT.rdoc for more details. |
||||||
|
#++ |
||||||
|
|
||||||
|
Feature: Version Settings |
||||||
|
As a Project Admin |
||||||
|
I want to configure the backlogs plugin |
||||||
|
So that my team and I can work effectively |
||||||
|
|
||||||
|
Background: |
||||||
|
Given there is 1 project with: |
||||||
|
| name | ecookbook | |
||||||
|
And I am working in project "ecookbook" |
||||||
|
And the project uses the following modules: |
||||||
|
| backlogs | |
||||||
|
And the backlogs module is initialized |
||||||
|
And there is 1 user with: |
||||||
|
| login | padme | |
||||||
|
And there is a role "project admin" |
||||||
|
And the role "project admin" may have the following rights: |
||||||
|
| manage_versions | |
||||||
|
| view_master_backlog | |
||||||
|
And the user "padme" is a "project admin" |
||||||
|
And there is a default status with: |
||||||
|
| name | new | |
||||||
|
And the project has the following sprints: |
||||||
|
| name | start_date | effective_date | |
||||||
|
| Sprint 001 | 2010-01-01 | 2010-01-31 | |
||||||
|
And I am already logged in as "padme" |
||||||
|
|
||||||
|
@javascript |
||||||
|
Scenario: Moving the backlog via the menu |
||||||
|
Given I am on the master backlog |
||||||
|
|
||||||
|
When I open the "Sprint 001" backlogs menu |
||||||
|
When I click on "Properties" |
||||||
|
|
||||||
|
Then I should be on the edit page of the version "Sprint 001" |
||||||
|
|
||||||
|
When I select "right" from "Column in backlog" |
||||||
|
And I submit the form by the "Save" button |
||||||
|
|
||||||
|
Then I should be on the master backlog |
||||||
|
And the sprint "Sprint 001" should be displayed to the right |
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,47 @@ |
|||||||
|
#-- copyright |
||||||
|
# OpenProject Backlogs Plugin |
||||||
|
# |
||||||
|
# Copyright (C)2013 the OpenProject Foundation (OPF) |
||||||
|
# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda |
||||||
|
# Copyright (C)2010-2011 friflaj |
||||||
|
# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns |
||||||
|
# Copyright (C)2009-2010 Mark Maglana |
||||||
|
# Copyright (C)2009 Joe Heck, Nate Lowrie |
||||||
|
# |
||||||
|
# This program is free software; you can redistribute it and/or modify it under |
||||||
|
# the terms of the GNU General Public License version 3. |
||||||
|
# |
||||||
|
# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. |
||||||
|
# The copyright follows: |
||||||
|
# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj |
||||||
|
# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany |
||||||
|
# |
||||||
|
# This program is free software; you can redistribute it and/or |
||||||
|
# modify it under the terms of the GNU General Public License |
||||||
|
# as published by the Free Software Foundation; either version 2 |
||||||
|
# of the License, or (at your option) any later version. |
||||||
|
# |
||||||
|
# This program is distributed in the hope that it will be useful, |
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||||
|
# GNU General Public License for more details. |
||||||
|
# |
||||||
|
# You should have received a copy of the GNU General Public License |
||||||
|
# along with this program; if not, write to the Free Software |
||||||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||||||
|
# |
||||||
|
# See doc/COPYRIGHT.rdoc for more details. |
||||||
|
#++ |
||||||
|
Then /^the sprint "(.+?)" should be displayed to the (right|left)$/ do |sprint_name, orientation| |
||||||
|
|
||||||
|
selector = case orientation |
||||||
|
when "right" |
||||||
|
"#owner_backlogs_container" |
||||||
|
when "left" |
||||||
|
"#sprint_backlogs_container" |
||||||
|
else |
||||||
|
raise "Only right and left are supported" |
||||||
|
end |
||||||
|
|
||||||
|
step %{I should see "#{sprint_name}" within "#{selector} .name"} |
||||||
|
end |
Loading…
Reference in new issue