2014-06-04 16:55:27 -04:00
|
|
|
@admin
|
2012-10-22 14:42:06 -04:00
|
|
|
Feature: Admin Groups
|
|
|
|
Background:
|
|
|
|
Given I sign in as an admin
|
2012-12-25 17:52:20 -05:00
|
|
|
And I have group with projects
|
2014-02-07 11:59:55 -05:00
|
|
|
And User "John Doe" exists
|
2012-10-22 14:42:06 -04:00
|
|
|
And I visit admin groups page
|
|
|
|
|
2013-06-26 08:09:17 -04:00
|
|
|
Scenario: See group list
|
|
|
|
Then I should be all groups
|
|
|
|
|
2012-10-22 14:42:06 -04:00
|
|
|
Scenario: Create a group
|
|
|
|
When I click new group link
|
|
|
|
And submit form with new group info
|
|
|
|
Then I should be redirected to group page
|
|
|
|
And I should see newly created group
|
2012-12-25 17:52:20 -05:00
|
|
|
|
2013-06-10 10:09:30 -04:00
|
|
|
@javascript
|
2012-12-25 17:52:20 -05:00
|
|
|
Scenario: Add user into projects in group
|
|
|
|
When I visit admin group page
|
2014-01-27 09:53:59 -05:00
|
|
|
When I select user "John Doe" from user list as "Reporter"
|
|
|
|
Then I should see "John Doe" in team list in every project as "Reporter"
|
2014-10-20 06:18:07 -04:00
|
|
|
|
2016-03-12 08:45:14 -05:00
|
|
|
Scenario: Shared projects
|
|
|
|
Given group has shared projects
|
|
|
|
When I visit group page
|
|
|
|
Then I should see project shared with group
|
|
|
|
|
2014-10-20 06:18:07 -04:00
|
|
|
@javascript
|
|
|
|
Scenario: Remove user from group
|
|
|
|
Given we have user "John Doe" in group
|
|
|
|
When I visit admin group page
|
|
|
|
And I remove user "John Doe" from group
|
|
|
|
Then I should not see "John Doe" in team list
|
2015-08-21 00:33:00 -04:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: Invite user to a group by e-mail
|
|
|
|
When I visit admin group page
|
|
|
|
When I select user "johndoe@gitlab.com" from user list as "Reporter"
|
|
|
|
Then I should see "johndoe@gitlab.com" in team list in every project as "Reporter"
|
2015-12-01 16:45:58 -05:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: Signed in admin should be able to add himself to a group
|
|
|
|
Given "John Doe" is owner of group "Owned"
|
|
|
|
When I visit group "Owned" members page
|
|
|
|
When I select current user as "Developer"
|
|
|
|
Then I should see current user as "Developer"
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: Signed in admin should be able to remove himself from group
|
|
|
|
Given current user is developer of group "Owned"
|
|
|
|
When I visit group "Owned" members page
|
|
|
|
Then I should see current user as "Developer"
|
|
|
|
When I click on the "Remove User From Group" button for current user
|
|
|
|
When I visit group "Owned" members page
|
|
|
|
Then I should not see current user as "Developer"
|