diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-10 16:40:23 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-14 13:08:11 +0300 |
commit | 8949af0c9f2aa90b979043a0a6ee264ac0c036b9 (patch) | |
tree | 94f6ef555a86cf242e16119de2a7c1938b39e2a7 /features/steps/groups.rb | |
parent | 405df435587c674dda049868cb2009b00c243dd8 (diff) |
Add feature tests for inviting members.
Diffstat (limited to 'features/steps/groups.rb')
-rw-r--r-- | features/steps/groups.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/features/steps/groups.rb b/features/steps/groups.rb index ec5213e4b93..228b83e5fd0 100644 --- a/features/steps/groups.rb +++ b/features/steps/groups.rb @@ -31,6 +31,23 @@ class Spinach::Features::Groups < Spinach::FeatureSteps end end + step 'I select "sjobs@apple.com" as "Reporter"' do + within ".users-group-form" do + select2("sjobs@apple.com", from: "#user_ids", multiple: true) + select "Reporter", from: "access_level" + end + + click_button "Add users to group" + end + + step 'I should see "sjobs@apple.com" in team list as invited "Reporter"' do + within '.well-list' do + page.should have_content('sjobs@apple.com') + page.should have_content('invited') + page.should have_content('Reporter') + end + end + step 'I should see group "Owned" projects list' do Group.find_by(name: "Owned").projects.each do |project| page.should have_link project.name |