OpenProject is the leading open source project management software.
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.
openproject/features/projects/copy_project.feature

79 lines
3.6 KiB

Feature: Project Settings
Background:
Given there is 1 project with the following:
| name | project1 |
| identifier | project1 |
And there is 1 user with the following:
| login | bob |
| firstname | Bob |
| Lastname | Bobbit |
And there is 1 user with the following:
| login | alice |
| firstname | Alice |
| Lastname | Alison |
And there is a role "alpha"
And there is a role "beta"
And the role "alpha" may have the following rights:
| copy_projects |
| edit_project |
And the role "beta" may have the following rights:
| edit_project |
And the user "alice" is a "alpha" in the project "project1"
And the user "bob" is a "beta" in the project "project1"
Scenario: Check for the existence of a copy button
When I am already admin
And I go to the settings page of the project "project1"
Then I should see "Copy" within "#content"
Scenario: Permission test for copy button with authorized role
When I am already logged in as "alice"
And I go to the settings page of the project "project1"
Then I should see "Copy" within "#content"
Scenario: Permission test for copy button without authorized role
When I am already logged in as "bob"
And I go to the members tab of the settings page of the project "project1"
Then I should not see "Copy" within "#content"
Scenario: Check for differences in admin's and settings' copy
When I am already admin
And I go to the admin page
And I follow "Projects" within "#main-menu"
#just one project, so we should be fine
And I click on "Copy" within "#content"
Then I should see "Modules" within "#content"
When I go to the settings page of the project "project1"
And I follow "Copy" within "#content"
Then I should not see "Modules" within "#content"
Scenario: Check for presence and default status of the copying parameters
When I am already admin
When I go to the settings page of the project "project1"
And I follow "Copy" within "#content"
Then I should see "Custom queries" within "#content"
And the "Custom queries" checkbox should be checked within "#content"
And I should see "Forums" within "#content"
And the "Forums" checkbox should not be checked within "#content"
And I should see "Members" within "#content"
And the "Members" checkbox should be checked within "#content"
And I should see "Reportings" within "#content"
And the "Reportings" checkbox should be checked within "#content"
And I should see "Timeline reports" within "#content"
And the "Timeline reports" checkbox should be checked within "#content"
And I should see "Versions" within "#content"
And the "Versions" checkbox should be checked within "#content"
And I should see "Wiki" within "#content"
And the "Wiki" checkbox should be checked within "#content"
And I should see "Work packages" within "#content"
And the "Work packages" checkbox should not be checked within "#content"
And I should see "Work package categories" within "#content"
And the "Work package categories" checkbox should be checked within "#content"
Scenario: Check for presence and default status of the copying parameters
When I am already admin
When I go to the settings page of the project "project1"
And I follow "Copy" within "#content"
Then the "Identifier" field should not contain "project1" within "#content"
And the "Name" field should not contain "project1" within "#content"