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.
73 lines
2.6 KiB
73 lines
2.6 KiB
11 years ago
|
#-- copyright
|
||
11 years ago
|
# OpenProject Global Roles Plugin
|
||
11 years ago
|
#
|
||
11 years ago
|
# Copyright (C) 2010 - 2014 the OpenProject Foundation (OPF)
|
||
11 years ago
|
#
|
||
|
# This program is free software; you can redistribute it and/or
|
||
11 years ago
|
# modify it under the terms of the GNU General Public License
|
||
|
# version 3.
|
||
11 years ago
|
#
|
||
11 years ago
|
# 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.
|
||
11 years ago
|
#++
|
||
|
|
||
14 years ago
|
Feature: Global Create Project
|
||
|
|
||
|
Scenario: Create Project is not a member permission
|
||
|
Given there is a role "Member"
|
||
11 years ago
|
And I am already admin
|
||
14 years ago
|
When I go to the edit page of the role "Member"
|
||
|
Then I should not see "Create project"
|
||
|
|
||
|
Scenario: Create Project is a global permission
|
||
|
Given there is a global role "Global"
|
||
11 years ago
|
And I am already admin
|
||
14 years ago
|
When I go to the edit page of the role "Global"
|
||
14 years ago
|
Then I should see "Create project"
|
||
|
|
||
|
Scenario: Create Project displayed to user
|
||
|
Given there is a global role "Global"
|
||
|
And the global role "Global" may have the following rights:
|
||
|
| add_project |
|
||
|
And there is 1 User with:
|
||
|
| Login | bob |
|
||
|
| Firstname | Bob |
|
||
|
| Lastname | Bobbit |
|
||
|
And the user "bob" has the global role "Global"
|
||
12 years ago
|
When I am already logged in as "bob"
|
||
14 years ago
|
And I go to the overall projects page
|
||
8 years ago
|
Then I should see "Project" within ".toolbar-items"
|
||
14 years ago
|
|
||
12 years ago
|
Scenario: Create Project not displayed to user without global role
|
||
|
Given there is 1 User with:
|
||
|
| Login | bob |
|
||
|
| Firstname | Bob |
|
||
|
| Lastname | Bobbit |
|
||
|
When I am already logged in as "bob"
|
||
|
And I go to the overall projects page
|
||
8 years ago
|
Then I should not see "Project" within ".toolbar-items"
|
||
12 years ago
|
|
||
9 years ago
|
@javascript
|
||
14 years ago
|
Scenario: Create Project displayed to user
|
||
|
Given there is a global role "Global"
|
||
|
And the global role "Global" may have the following rights:
|
||
|
| add_project |
|
||
12 years ago
|
And there is a role "Manager"
|
||
14 years ago
|
And there is 1 User with:
|
||
|
| Login | bob |
|
||
|
| Firstname | Bob |
|
||
|
| Lastname | Bobbit |
|
||
|
And the user "bob" has the global role "Global"
|
||
12 years ago
|
When I am already logged in as "bob"
|
||
14 years ago
|
And I go to the new page of "Project"
|
||
|
And I fill in "project_name" with "ProjectName"
|
||
9 years ago
|
And I press "Create"
|
||
14 years ago
|
Then I should see "Successful creation."
|
||
9 years ago
|
And I should be on the overview page of the project called "ProjectName"
|