Commit 52f312a8 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fix group:people tests after prev commit

parent c38a6fe1
......@@ -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
......
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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment