2012-06-18 12:34:09 -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"
|
|
|
|
And gitlab user "Sam"
|
2012-06-18 12:34:09 -04:00
|
|
|
And "Sam" 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
|
|
|
|
And I should see "Sam" in team list
|
|
|
|
|
2013-03-14 04:16:27 -04:00
|
|
|
@javascript
|
2012-06-18 12:34:09 -04:00
|
|
|
Scenario: Add user to project
|
|
|
|
Given I click link "New Team Member"
|
|
|
|
And I select "Mike" as "Reporter"
|
|
|
|
Then I should see "Mike" in team list as "Reporter"
|
|
|
|
|
|
|
|
@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
|
2013-03-13 13:16:36 -04:00
|
|
|
Given I click cancel link for "Sam"
|
2012-09-10 09:35:23 -04:00
|
|
|
Then I visit project "Shop" team page
|
2012-06-18 12:34:09 -04:00
|
|
|
And I should not see "Sam" 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"
|