Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james.lopez@vodafone.com>2015-10-29 19:10:27 +0300
committerJames Lopez <james.lopez@vodafone.com>2015-10-29 19:10:27 +0300
commitde990aa15829d0ab182ad5a55b4c527846c0d39c (patch)
tree8a4feb62b5f4b6f03d5fe03a0ff3ee9e99815f17 /features/steps/groups.rb
parent0ea38dc519b86d2bd2e14f1df1baf0fffc043af6 (diff)
fixed last group owner issue and added test
Diffstat (limited to 'features/steps/groups.rb')
-rw-r--r--features/steps/groups.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/features/steps/groups.rb b/features/steps/groups.rb
index 69ddfa42c06..5fd4dea5cd6 100644
--- a/features/steps/groups.rb
+++ b/features/steps/groups.rb
@@ -48,6 +48,17 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
click_button "Add users 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 users to group"
+ end
+
step 'I should see "Mike" in team list as "Reporter"' do
page.within '.well-list' do
expect(page).to have_content('Mike')
@@ -55,6 +66,13 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
end
end
+ step 'I should see "Mike" in team list as "Owner"' do
+ page.within '.well-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)