diff options
-rw-r--r-- | features/group/group.feature | 1 | ||||
-rw-r--r-- | features/steps/group/group.rb | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/features/group/group.feature b/features/group/group.feature index a48affe8e02..64424f47236 100644 --- a/features/group/group.feature +++ b/features/group/group.feature @@ -19,6 +19,7 @@ Feature: Groups When I visit group merge requests page Then I should see merge requests from this group assigned to me + @javascript Scenario: I should add user to projects in Group Given I have new user "John" When I visit group people page diff --git a/features/steps/group/group.rb b/features/steps/group/group.rb index 8b5a4ed44df..102bc440d82 100644 --- a/features/steps/group/group.rb +++ b/features/steps/group/group.rb @@ -1,6 +1,7 @@ class Groups < Spinach::FeatureSteps include SharedAuthentication include SharedPaths + include Select2Helper Then 'I should see projects list' do current_user.authorized_projects.each do |project| @@ -39,7 +40,7 @@ class Groups < Spinach::FeatureSteps And 'I select user "John" from list with role "Reporter"' do user = User.find_by_name("John") within "#new_team_member" do - select user.name, from: "user_ids" + select2(user.id, from: "#user_ids", multiple: true) select "Reporter", from: "project_access" end click_button "Add" |