Commit 52f312a8a83eb24fdae41eed7923a64f816f70d3
1 parent
c38a6fe1
Exists in
master
and in
4 other branches
fix group:people tests after prev commit
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
features/group/group.feature
... | ... | @@ -19,6 +19,7 @@ Feature: Groups |
19 | 19 | When I visit group merge requests page |
20 | 20 | Then I should see merge requests from this group assigned to me |
21 | 21 | |
22 | + @javascript | |
22 | 23 | Scenario: I should add user to projects in Group |
23 | 24 | Given I have new user "John" |
24 | 25 | When I visit group people page | ... | ... |
features/steps/group/group.rb
1 | 1 | class Groups < Spinach::FeatureSteps |
2 | 2 | include SharedAuthentication |
3 | 3 | include SharedPaths |
4 | + include Select2Helper | |
4 | 5 | |
5 | 6 | Then 'I should see projects list' do |
6 | 7 | current_user.authorized_projects.each do |project| |
... | ... | @@ -39,7 +40,7 @@ class Groups < Spinach::FeatureSteps |
39 | 40 | And 'I select user "John" from list with role "Reporter"' do |
40 | 41 | user = User.find_by_name("John") |
41 | 42 | within "#new_team_member" do |
42 | - select user.name, from: "user_ids" | |
43 | + select2(user.id, from: "#user_ids", multiple: true) | |
43 | 44 | select "Reporter", from: "project_access" |
44 | 45 | end |
45 | 46 | click_button "Add" | ... | ... |