2015-04-26 12:48:37 +05:30
|
|
|
Feature: Project Team Management
|
2014-09-02 18:07:02 +05:30
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
|
|
|
And I own project "Shop"
|
|
|
|
And gitlab user "Mike"
|
|
|
|
And gitlab user "Sam"
|
|
|
|
And "Sam" is "Shop" developer
|
|
|
|
And I visit project "Shop" team page
|
|
|
|
|
|
|
|
Scenario: See all team members
|
|
|
|
Then I should be able to see myself in team
|
|
|
|
And I should see "Sam" in team list
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: Add user to project
|
2015-04-26 12:48:37 +05:30
|
|
|
Given I click link "Add members"
|
2014-09-02 18:07:02 +05:30
|
|
|
And I select "Mike" as "Reporter"
|
|
|
|
Then I should see "Mike" in team list as "Reporter"
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
@javascript
|
|
|
|
Scenario: Invite user to project
|
|
|
|
Given I click link "Add members"
|
|
|
|
And I select "sjobs@apple.com" as "Reporter"
|
|
|
|
Then I should see "sjobs@apple.com" in team list as invited "Reporter"
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
@javascript
|
|
|
|
Scenario: Update user access
|
|
|
|
Given I should see "Sam" in team list as "Developer"
|
|
|
|
And I change "Sam" role to "Reporter"
|
|
|
|
And I should see "Sam" in team list as "Reporter"
|
|
|
|
|
|
|
|
Scenario: Cancel team member
|
|
|
|
Given I click cancel link for "Sam"
|
|
|
|
Then I visit project "Shop" team page
|
|
|
|
And I should not see "Sam" in team list
|
|
|
|
|
|
|
|
Scenario: Import team from another project
|
|
|
|
Given I own project "Website"
|
|
|
|
And "Mike" is "Website" reporter
|
|
|
|
When I visit project "Shop" team page
|
|
|
|
And I click link "Import team from another project"
|
|
|
|
And I submit "Website" project for import team
|
|
|
|
Then I should see "Mike" in team list as "Reporter"
|