|
|
|
@ -84,164 +84,6 @@ Feature: Project Settings |
|
|
|
|
Then the "Identifier" field should not contain "project1" within "#content" |
|
|
|
|
And the "Name" field should not contain "project1" within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copy a project with some queries |
|
|
|
|
When I am already admin |
|
|
|
|
And the project "project1" has 10 work package queries with the following: |
|
|
|
|
| is_public | true | |
|
|
|
|
When I go to the settings page of the project "project1" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I fill in "Identifier" with "cp" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
When I go to the work package index page for the project "Copied Project" |
|
|
|
|
Then I should see "Query 1" within "#sidebar" |
|
|
|
|
Then I should see "Query 2" within "#sidebar" |
|
|
|
|
Then I should see "Query 3" within "#sidebar" |
|
|
|
|
Then I should see "Query 4" within "#sidebar" |
|
|
|
|
Then I should see "Query 5" within "#sidebar" |
|
|
|
|
Then I should see "Query 6" within "#sidebar" |
|
|
|
|
Then I should see "Query 7" within "#sidebar" |
|
|
|
|
Then I should see "Query 8" within "#sidebar" |
|
|
|
|
Then I should see "Query 9" within "#sidebar" |
|
|
|
|
Then I should see "Query 10" within "#sidebar" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copy a project with some members (Users) |
|
|
|
|
When I am already admin |
|
|
|
|
And I go to the settings page of the project "project1" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
When I go to the members tab of the settings page of the project "copied-project" |
|
|
|
|
Then I should see the principal "Alice Alison" as a member with the roles: |
|
|
|
|
| alpha | |
|
|
|
|
And I should see the principal "Bob Bobbit" as a member with the roles: |
|
|
|
|
| beta | |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copy a project with some members (Groups) |
|
|
|
|
Given there is 1 group with the following: |
|
|
|
|
| name | group1 | |
|
|
|
|
And there is 1 group with the following: |
|
|
|
|
| name | group2 | |
|
|
|
|
And the group "group1" is a "alpha" in the project "project1" |
|
|
|
|
And the group "group2" is a "alpha" in the project "project1" |
|
|
|
|
When I am already admin |
|
|
|
|
And I go to the settings page of the project "project1" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
When I go to the members tab of the settings page of the project "copied-project" |
|
|
|
|
Then I should see the principal "group1" as a member with the roles: |
|
|
|
|
| alpha | |
|
|
|
|
Then I should see the principal "group2" as a member with the roles: |
|
|
|
|
| alpha | |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copy a project with some boards |
|
|
|
|
When I am already admin |
|
|
|
|
And there is a board "Board 1" for project "project1" |
|
|
|
|
And there is a board "Board 2" for project "project1" |
|
|
|
|
When I go to the settings page of the project "project1" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I fill in "Identifier" with "cp" |
|
|
|
|
And I check "Forums" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
And I go to the overview page for the project "Copied Project" |
|
|
|
|
And I follow "Forums" within "#main-menu" |
|
|
|
|
Then I should see "Board 1" within "#content" |
|
|
|
|
Then I should see "Board 2" within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copy a project with project_a_associations |
|
|
|
|
Given there are the following projects of type "Copy Project": |
|
|
|
|
| project2 | |
|
|
|
|
And there are the following project associations: |
|
|
|
|
| Project A | Project B | |
|
|
|
|
| project1 | project2 | |
|
|
|
|
When I am already admin |
|
|
|
|
And I go to the settings page of the project "project1" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I fill in "Identifier" with "cp" |
|
|
|
|
And I check "Dependencies" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
And I go to the overview page for the project "Copied Project" |
|
|
|
|
And I toggle the "Timelines" submenu |
|
|
|
|
And I follow "Dependencies" |
|
|
|
|
Then I should see "project2" within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copy a project with project_b_associations |
|
|
|
|
Given there are the following projects of type "Copy Project": |
|
|
|
|
| project2 | |
|
|
|
|
And there are the following project associations: |
|
|
|
|
| Project A | Project B | |
|
|
|
|
| project2 | project1 | |
|
|
|
|
When I am already admin |
|
|
|
|
And I go to the settings page of the project "project1" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I fill in "Identifier" with "cp" |
|
|
|
|
And I check "Dependencies" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
And I go to the overview page for the project "Copied Project" |
|
|
|
|
And I toggle the "Timelines" submenu |
|
|
|
|
And I follow "Dependencies" |
|
|
|
|
Then I should see "project2" within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copy a project with versions |
|
|
|
|
Given the project "project1" has 1 version with: |
|
|
|
|
| name | version1 | |
|
|
|
|
| description | yeah, boy | |
|
|
|
|
| start_date | 2001-08-02 | |
|
|
|
|
| effective_date | 2002-08-02 | |
|
|
|
|
| status | closed | |
|
|
|
|
When I am already admin |
|
|
|
|
And I go to the settings page of the project "project1" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I fill in "Identifier" with "cp" |
|
|
|
|
And I check "Versions" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
And I go to the versions tab of the settings page for the project "cp" |
|
|
|
|
Then I should see "version1" within "#content" |
|
|
|
|
And I should see "yeah, boy" within "#content" |
|
|
|
|
And I should see "08/02/2001" within "#content" |
|
|
|
|
And I should see "08/02/2002" within "#content" |
|
|
|
|
And I should see "closed" within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copy a project with categories |
|
|
|
|
Given there is 1 user with the following: |
|
|
|
|
| login | carl | |
|
|
|
|
| firstname | Carl | |
|
|
|
|
| Lastname | Carlson | |
|
|
|
|
And the user "carl" is a "alpha" in the project "project1" |
|
|
|
|
And the project "project1" has 2 categories with: |
|
|
|
|
| assigned_to | Carl | |
|
|
|
|
When I am already admin |
|
|
|
|
And I go to the settings page of the project "project1" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I fill in "Identifier" with "cp" |
|
|
|
|
And I check "Work package categories" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
And I go to the categories tab of the settings page for the project "cp" |
|
|
|
|
Then I should see "Issue category 1" within "#content" |
|
|
|
|
And I should see "Issue category 2" within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copy a project with parent |
|
|
|
|
Given there are the following projects of type "Copy Project": |
|
|
|
@ -293,52 +135,6 @@ Feature: Project Settings |
|
|
|
|
And I go to the settings page of the project "cp" |
|
|
|
|
Then the "cfBug" checkbox should be checked |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copying a non-public project |
|
|
|
|
Given I am already admin |
|
|
|
|
And I go to the settings page of the project "project1" |
|
|
|
|
And I uncheck "Public" within "#content" |
|
|
|
|
And I press "Save" within "#content" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I fill in "Identifier" with "cp" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
And I go to the settings page of the project "cp" |
|
|
|
|
Then the "Public" checkbox should not be checked within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copying a public project |
|
|
|
|
Given I am already admin |
|
|
|
|
And I go to the settings page of the project "project1" |
|
|
|
|
And I check "Public" within "#content" |
|
|
|
|
And I press "Save" within "#content" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I fill in "Identifier" with "cp" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
And I go to the settings page of the project "cp" |
|
|
|
|
Then the "Public" checkbox should be checked within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copying a project with a wiki |
|
|
|
|
Given the wiki page "Projektwiki" of the project "project1" has the following contents: |
|
|
|
|
| yeah boy! | |
|
|
|
|
And I am already admin |
|
|
|
|
And I go to the settings page of the project "project1" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I fill in "Identifier" with "cp" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
And I go to the overview page for the project "Copied Project" |
|
|
|
|
And I toggle the "Wiki" submenu |
|
|
|
|
And I follow "Table of Contents" within "#main-menu" |
|
|
|
|
Then I should see "Projektwiki" within "#content" |
|
|
|
|
And I follow "Projektwiki" within "#content" |
|
|
|
|
Then I should see "yeah boy!" within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copying a project with some issues |
|
|
|
|
Given the project "project1" has 1 issue with the following: |
|
|
|
@ -378,20 +174,6 @@ Feature: Project Settings |
|
|
|
|
And I go to the page of the planning element "pe2" of the project called "Copied Project" |
|
|
|
|
Then I should see "pe2" within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copying a project with a timeline |
|
|
|
|
Given there is a timeline "Testline" for project "project1" |
|
|
|
|
When I am already admin |
|
|
|
|
And I go to the settings page of the project "project1" |
|
|
|
|
And I follow "Copy" within "#content" |
|
|
|
|
And I fill in "Name" with "Copied Project" |
|
|
|
|
And I fill in "Identifier" with "cp" |
|
|
|
|
And I check "Timeline reports" |
|
|
|
|
And I click on "Copy" |
|
|
|
|
Then I should see "Successful creation." |
|
|
|
|
And I go to the page of the timeline "Testline" of the project called "Copied Project" |
|
|
|
|
Then I should see "Testline" within "#content" |
|
|
|
|
|
|
|
|
|
@javascript |
|
|
|
|
Scenario: Copying a project with a complex issue |
|
|
|
|
Given the project "project1" has 1 version with: |
|
|
|
|