Commit 52f312a8a83eb24fdae41eed7923a64f816f70d3

Authored by Dmitriy Zaporozhets
1 parent c38a6fe1

fix group:people tests after prev commit

features/group/group.feature
@@ -19,6 +19,7 @@ Feature: Groups @@ -19,6 +19,7 @@ Feature: Groups
19 When I visit group merge requests page 19 When I visit group merge requests page
20 Then I should see merge requests from this group assigned to me 20 Then I should see merge requests from this group assigned to me
21 21
  22 + @javascript
22 Scenario: I should add user to projects in Group 23 Scenario: I should add user to projects in Group
23 Given I have new user "John" 24 Given I have new user "John"
24 When I visit group people page 25 When I visit group people page
features/steps/group/group.rb
1 class Groups < Spinach::FeatureSteps 1 class Groups < Spinach::FeatureSteps
2 include SharedAuthentication 2 include SharedAuthentication
3 include SharedPaths 3 include SharedPaths
  4 + include Select2Helper
4 5
5 Then 'I should see projects list' do 6 Then 'I should see projects list' do
6 current_user.authorized_projects.each do |project| 7 current_user.authorized_projects.each do |project|
@@ -39,7 +40,7 @@ class Groups &lt; Spinach::FeatureSteps @@ -39,7 +40,7 @@ class Groups &lt; Spinach::FeatureSteps
39 And 'I select user "John" from list with role "Reporter"' do 40 And 'I select user "John" from list with role "Reporter"' do
40 user = User.find_by_name("John") 41 user = User.find_by_name("John")
41 within "#new_team_member" do 42 within "#new_team_member" do
42 - select user.name, from: "user_ids" 43 + select2(user.id, from: "#user_ids", multiple: true)
43 select "Reporter", from: "project_access" 44 select "Reporter", from: "project_access"
44 end 45 end
45 click_button "Add" 46 click_button "Add"