kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.7 KiB
67 lines
2.7 KiB
12 years ago
|
#-- copyright
|
||
|
# OpenProject is a project management system.
|
||
|
#
|
||
|
# Copyright (C) 2012-2013 the OpenProject Team
|
||
|
#
|
||
|
# This program is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of the GNU General Public License version 3.
|
||
|
#
|
||
|
# See doc/COPYRIGHT.rdoc for more details.
|
||
|
#++
|
||
|
|
||
11 years ago
|
Feature: Copying an work package can copy over the watchers
|
||
12 years ago
|
Background:
|
||
|
Given there is 1 project with the following:
|
||
|
| identifier | omicronpersei8 |
|
||
12 years ago
|
| name | omicronpersei8 |
|
||
|
And I am working in project "omicronpersei8"
|
||
11 years ago
|
And there is a role "CanCopyPackages"
|
||
|
And the role "CanCopyPackages" may have the following rights:
|
||
|
| add_work_packages |
|
||
11 years ago
|
| view_work_packages |
|
||
|
| view_view_package_watchers |
|
||
12 years ago
|
And there is a role "CanAddWatchers"
|
||
|
And the role "CanAddWatchers" may have the following rights:
|
||
11 years ago
|
| add_work_packages |
|
||
11 years ago
|
| view_work_packages |
|
||
|
| view_view_package_watchers |
|
||
|
| add_work_package_watchers |
|
||
12 years ago
|
And there is 1 user with the following:
|
||
|
| login | ndnd |
|
||
11 years ago
|
And the user "ndnd" is a "CanCopyPackages" in the project "omicronpersei8"
|
||
12 years ago
|
And there is 1 user with the following:
|
||
|
| login | lrrr |
|
||
|
And the user "lrrr" is a "CanAddWatchers" in the project "omicronpersei8"
|
||
|
And there are the following issue status:
|
||
|
| name | is_default |
|
||
|
| New | true |
|
||
12 years ago
|
And there is a default issuepriority with:
|
||
|
| name | Normal |
|
||
11 years ago
|
And the project "omicronpersei8" has the following types:
|
||
12 years ago
|
| name | position |
|
||
|
| Bug | 1 |
|
||
12 years ago
|
And the user "lrrr" has 1 issue with the following:
|
||
12 years ago
|
| subject | Improve drive |
|
||
11 years ago
|
| description | Acquire horn |
|
||
12 years ago
|
And the issue "Improve drive" is watched by:
|
||
12 years ago
|
| lrrr |
|
||
|
| ndnd |
|
||
|
|
||
|
Scenario: Watchers shouldn't be copied when the user doesn't have the permission to
|
||
11 years ago
|
Given I am already logged in as "ndnd"
|
||
11 years ago
|
When I go to the copy page for the work package "Improve drive"
|
||
12 years ago
|
Then I should not see "Watchers"
|
||
11 years ago
|
When I fill in "Subject" with "Improve drive even more"
|
||
|
And I submit the form by the "Create" button
|
||
12 years ago
|
Then I should not see "Watchers"
|
||
12 years ago
|
And the issue "Improve drive even more" should have 0 watchers
|
||
12 years ago
|
|
||
|
Scenario: Watchers should be copied when the user has the permission to
|
||
11 years ago
|
Given I am already logged in as "lrrr"
|
||
11 years ago
|
When I go to the copy page for the work package "Improve drive"
|
||
12 years ago
|
Then I should see "Watchers" within "p#watchers_form"
|
||
11 years ago
|
When I fill in "Subject" with "Improve drive even more"
|
||
|
And I submit the form by the "Create" button
|
||
12 years ago
|
Then I should see "Watchers (2)"
|
||
12 years ago
|
And the issue "Improve drive even more" should have 2 watchers
|