diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-04-20 17:36:21 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-04-20 17:36:21 +0300 |
commit | d39bcf8c7ed2f6391952a8aec984c9d13752a059 (patch) | |
tree | 97732b431fbc80b0afbb2c05da5167ca3f27730a /features/steps/group | |
parent | cc9e92a07646a2e8a193d58c1c24e837195d5a98 (diff) | |
parent | 5f087604826229af1dbd79a9a549d5e7da9c2908 (diff) |
Merge branch 'dz-refactor-create-members' into 'master'
Refactor code that creates and destroys project/group members
See merge request !10735
Diffstat (limited to 'features/steps/group')
-rw-r--r-- | features/steps/group/members.rb | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/features/steps/group/members.rb b/features/steps/group/members.rb index dcbf36df656..b04a7015d4e 100644 --- a/features/steps/group/members.rb +++ b/features/steps/group/members.rb @@ -4,71 +4,6 @@ class Spinach::Features::GroupMembers < Spinach::FeatureSteps include SharedPaths include SharedGroup include SharedUser - include Select2Helper - - step 'I select "Mike" as "Reporter"' do - user = User.find_by(name: "Mike") - - page.within ".users-group-form" do - select2(user.id, from: "#user_ids", multiple: true) - select "Reporter", from: "access_level" - end - - click_button "Add to group" - end - - step 'I select "Mike" as "Master"' do - user = User.find_by(name: "Mike") - - page.within ".users-group-form" do - select2(user.id, from: "#user_ids", multiple: true) - select "Master", from: "access_level" - end - - click_button "Add to group" - end - - step 'I should see "Mike" in team list as "Reporter"' do - page.within '.content-list' do - expect(page).to have_content('Mike') - expect(page).to have_content('Reporter') - end - end - - step 'I should see "Mike" in team list as "Owner"' do - page.within '.content-list' do - expect(page).to have_content('Mike') - expect(page).to have_content('Owner') - end - end - - step 'I select "sjobs@apple.com" as "Reporter"' do - page.within ".users-group-form" do - select2("sjobs@apple.com", from: "#user_ids", multiple: true) - select "Reporter", from: "access_level" - end - - click_button "Add to group" - end - - step 'I should see "sjobs@apple.com" in team list as invited "Reporter"' do - page.within '.content-list' do - expect(page).to have_content('sjobs@apple.com') - expect(page).to have_content('Invited') - expect(page).to have_content('Reporter') - end - end - - step 'I select user "Mary Jane" from list with role "Reporter"' do - user = User.find_by(name: "Mary Jane") || create(:user, name: "Mary Jane") - - page.within ".users-group-form" do - select2(user.id, from: "#user_ids", multiple: true) - select "Reporter", from: "access_level" - end - - click_button "Add to group" - end step 'I should see user "John Doe" in team list' do expect(group_members_list).to have_content("John Doe") |