2014-10-02 12:42:54 -04:00
|
|
|
Feature: Project Team Management
|
2012-09-10 09:35:23 -04:00
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
2012-06-18 12:34:09 -04:00
|
|
|
And I own project "Shop"
|
2012-09-10 09:35:23 -04:00
|
|
|
And gitlab user "Mike"
|
2015-04-23 18:53:07 -04:00
|
|
|
And gitlab user "Dmitriy"
|
|
|
|
And "Dmitriy" is "Shop" developer
|
2012-09-10 09:35:23 -04:00
|
|
|
And I visit project "Shop" team page
|
2012-06-18 12:34:09 -04:00
|
|
|
|
|
|
|
Scenario: See all team members
|
|
|
|
Then I should be able to see myself in team
|
2015-04-23 18:53:07 -04:00
|
|
|
And I should see "Dmitriy" in team list
|
2012-06-18 12:34:09 -04:00
|
|
|
|
2013-03-14 04:16:27 -04:00
|
|
|
@javascript
|
2012-06-18 12:34:09 -04:00
|
|
|
Scenario: Add user to project
|
2015-11-24 16:27:01 -05:00
|
|
|
When I select "Mike" as "Reporter"
|
2012-06-18 12:34:09 -04:00
|
|
|
Then I should see "Mike" in team list as "Reporter"
|
|
|
|
|
2015-04-10 09:40:23 -04:00
|
|
|
@javascript
|
|
|
|
Scenario: Invite user to project
|
2015-11-24 16:27:01 -05:00
|
|
|
When I select "sjobs@apple.com" as "Reporter"
|
2015-04-10 09:40:23 -04:00
|
|
|
Then I should see "sjobs@apple.com" in team list as invited "Reporter"
|
|
|
|
|
2012-06-18 12:34:09 -04:00
|
|
|
@javascript
|
|
|
|
Scenario: Update user access
|
2015-04-23 18:53:07 -04:00
|
|
|
Given I should see "Dmitriy" in team list as "Developer"
|
|
|
|
And I change "Dmitriy" role to "Reporter"
|
|
|
|
And I should see "Dmitriy" in team list as "Reporter"
|
2012-06-18 12:34:09 -04:00
|
|
|
|
|
|
|
Scenario: Cancel team member
|
2015-04-23 18:53:07 -04:00
|
|
|
Given I click cancel link for "Dmitriy"
|
2012-09-10 09:35:23 -04:00
|
|
|
Then I visit project "Shop" team page
|
2015-04-23 18:53:07 -04:00
|
|
|
And I should not see "Dmitriy" in team list
|
2012-10-24 08:23:04 -04:00
|
|
|
|
|
|
|
Scenario: Import team from another project
|
|
|
|
Given I own project "Website"
|
|
|
|
And "Mike" is "Website" reporter
|
2013-06-22 16:57:29 -04:00
|
|
|
When I visit project "Shop" team page
|
2012-10-24 08:23:04 -04:00
|
|
|
And I click link "Import team from another project"
|
2013-06-22 16:57:29 -04:00
|
|
|
And I submit "Website" project for import team
|
2012-10-24 08:23:04 -04:00
|
|
|
Then I should see "Mike" in team list as "Reporter"
|
2016-03-12 08:45:14 -05:00
|
|
|
|
|
|
|
Scenario: See all members of projects shared group
|
|
|
|
Given I share project with group "OpenSource"
|
|
|
|
And I visit project "Shop" team page
|
|
|
|
Then I should see "Opensource" group user listing
|