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/settings.feature

56 lines
2.3 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 user "bob" is a "alpha" in the project "project1"
And the user "alice" is a "beta" in the project "project1"
@javascript
Scenario: Adding a Role to a Member
Given I am logged in as "admin"
When I go to the members tab of the settings page of the project "project1"
When I click on "Edit" within "#member-1"
And I check "beta" within "#member-1-roles-form"
And I click "Change" within "#member-1-roles-form"
Then I should see "alpha" within "#member-1-roles"
And I should see "beta" within "#member-1-roles"
@javascript
Scenario: Removing one Role from while adding another Role to a Member
Given I am logged in as "admin"
When I go to the members tab of the settings page of the project "project1"
When I click on "Edit" within "#member-1"
And I uncheck "alpha" within "#member-1-roles-form"
And I check "beta" within "#member-1-roles-form"
And I click "Change" within "#member-1-roles-form"
Then I should see "beta" within "#member-1-roles"
And I should not see "alpha" within "#member-1-roles"
@javascript
Scenario: Removing the last Role of a Member
Given I am logged in as "admin"
When I go to the members tab of the settings page of the project "project1"
When I click on "Edit" within "#member-1"
And I uncheck "alpha" within "#member-1-roles-form"
And I click "Change" within "#member-1-roles-form"
Then there should be an error message
And I should see "Bob Bobbit" within ".list.members"
@javascript
Scenario: Changing members per page keeps us on the members tab
Given I am logged in as "admin"
When I go to the settings page of the project "project1"
And I follow "Members" within ".tabs"
And I follow "50" within ".per_page_options" within "#tab-content-members"
Then I should be on the members tab of the settings page of the project "project1"