diff options
author | Stan Hu <stanhu@gmail.com> | 2015-08-21 07:33:00 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-08-21 23:47:56 +0300 |
commit | 3715a0f29b6758b3075abb6f28ee24c4eb8ed427 (patch) | |
tree | 96675d33d770fd308c535a11bde4dad40cefadb0 /features/steps/admin | |
parent | 55fc58bda4a5592f2f8deaecec9526fbe4eecd6f (diff) |
Fix bug preventing invite by e-mail
This was broken in 70f5291808 as a result of introducing the ability to filter by current user.
Closes #2320
Diffstat (limited to 'features/steps/admin')
-rw-r--r-- | features/steps/admin/groups.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/features/steps/admin/groups.rb b/features/steps/admin/groups.rb index 83a3f48abe3..d27634858a2 100644 --- a/features/steps/admin/groups.rb +++ b/features/steps/admin/groups.rb @@ -44,6 +44,14 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps click_button "Add users to group" end + When 'I select user "johndoe@gitlab.com" from user list as "Reporter"' do + select2('johndoe@gitlab.com', from: "#user_ids", multiple: true) + page.within "#new_project_member" do + select "Reporter", from: "access_level" + end + click_button "Add users to group" + end + step 'I should see "John Doe" in team list in every project as "Reporter"' do page.within ".group-users-list" do expect(page).to have_content "John Doe" @@ -51,6 +59,13 @@ class Spinach::Features::AdminGroups < Spinach::FeatureSteps end end + step 'I should see "johndoe@gitlab.com" in team list in every project as "Reporter"' do + page.within ".group-users-list" do + expect(page).to have_content "johndoe@gitlab.com (invited)" + expect(page).to have_content "Reporter" + end + end + step 'I should be all groups' do Group.all.each do |group| expect(page).to have_content group.name |