team_management.feature 1.31 KB
Newer Older
randx's avatar
randx committed
1
Feature: Project Team management
2 3
  Background:
    Given I sign in as a user
randx's avatar
randx committed
4
    And I own project "Shop"
5 6
    And gitlab user "Mike"
    And gitlab user "Sam"
randx's avatar
randx committed
7
    And "Sam" is "Shop" developer
8
    And I visit project "Shop" team page
randx's avatar
randx committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22

  Scenario: See all team members
    Then I should be able to see myself in team
    And I should see "Sam" in team list

  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"
23
    Then I visit project "Shop" team page
randx's avatar
randx committed
24 25 26 27 28 29 30 31 32
    And I should see "Sam" in team list as "Reporter"

  Scenario: View team member profile
    Given I click link "Sam"
    Then I should see "Sam" team profile

  Scenario: Cancel team member
    Given I click link "Sam"
    And I click link "Remove from team"
33
    Then I visit project "Shop" team page
randx's avatar
randx committed
34
    And I should not see "Sam" in team list
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
35 36 37 38 39 40 41

  Scenario: Import team from another project
    Given I own project "Website"
    And "Mike" is "Website" reporter
    And I click link "Import team from another project"
    When I submit "Website" project for import team
    Then I should see "Mike" in team list as "Reporter"