diff --git a/features/project/team_management.feature b/features/project/team_management.feature index e153978e043f38d1e792a13ae47409bc91d717a2..9bdce042ed72bfc5b9071eccf2be5512c0a9b1a0 100644 --- a/features/project/team_management.feature +++ b/features/project/team_management.feature @@ -35,3 +35,8 @@ Feature: Project Team management 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" + + 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 diff --git a/features/steps/project/team_management.rb b/features/steps/project/team_management.rb index ffc5016529f1efdd8a1f56b7b19324b0ddf86521..534721cc4f5b7b676d4735bda45a7ce153f9f43a 100644 --- a/features/steps/project/team_management.rb +++ b/features/steps/project/team_management.rb @@ -104,4 +104,23 @@ class ProjectTeamManagement < Spinach::FeatureSteps click_link('Remove user from team') end end + + step 'I share project with group "OpenSource"' do + project = Project.find_by(name: 'Shop') + os_group = create(:group, name: 'OpenSource') + os_project = create(:project, group: os_group) + @os_user1 = create(:user) + @os_user2 = create(:user) + os_group.add_owner(@os_user1) + os_group.add_user(@os_user2, Gitlab::Access::DEVELOPER) + share_link = project.project_group_links.new(group_access: Gitlab::Access::MASTER) + share_link.group_id = os_group.id + share_link.save! + end + + step 'I should see "Opensource" group user listing' do + page.should have_content("Shared with OpenSource group, members with Master role (2)") + page.should have_content(@os_user1.name) + page.should have_content(@os_user2.name) + end end