From 52f312a8a83eb24fdae41eed7923a64f816f70d3 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 11 Jun 2013 13:54:58 +0300 Subject: [PATCH] fix group:people tests after prev commit --- features/group/group.feature | 1 + features/steps/group/group.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/features/group/group.feature b/features/group/group.feature index a48affe..64424f4 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 8b5a4ed..102bc44 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" -- libgit2 0.21.2