OSDN Git Service

Merge branch 'feature/project_in_mr_emails' of /home/git/repositories/gitlab/gitlabhq
[wvm/gitlab.git] / features / project / team_management.feature
1 Feature: Project Team management
2   Background:
3     Given I sign in as a user
4     And I own project "Shop"
5     And gitlab user "Mike"
6     And gitlab user "Sam"
7     And "Sam" is "Shop" developer
8     And I visit project "Shop" team page
9
10   Scenario: See all team members
11     Then I should be able to see myself in team
12     And I should see "Sam" in team list
13
14   @javascript
15   Scenario: Add user to project
16     Given I click link "New Team Member"
17     And I select "Mike" as "Reporter"
18     Then I should see "Mike" in team list as "Reporter"
19
20   @javascript
21   Scenario: Update user access
22     Given I should see "Sam" in team list as "Developer"
23     And I change "Sam" role to "Reporter"
24     And I should see "Sam" in team list as "Reporter"
25
26   Scenario: Cancel team member
27     Given I click cancel link for "Sam"
28     Then I visit project "Shop" team page
29     And I should not see "Sam" in team list
30
31   Scenario: Import team from another project
32     Given I own project "Website"
33     And "Mike" is "Website" reporter
34     When I visit project "Shop" team page
35     And I click link "Import team from another project"
36     And I submit "Website" project for import team
37     Then I should see "Mike" in team list as "Reporter"