diff options
author | Phil Hughes <me@iamphill.com> | 2016-12-07 15:27:14 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-12-07 15:27:14 +0000 |
commit | 19fb84e3a897f5b251fb3f437fe365c6ec342c34 (patch) | |
tree | cd721dd07a28c4df5e7ba31665acd9a139326437 /features | |
parent | e09c6df0682c499e221a0da41ac263482fbcf568 (diff) | |
download | gitlab-ce-19fb84e3a897f5b251fb3f437fe365c6ec342c34.tar.gz |
Updated members dropdowns
This ports some code over from EE to reduce conflicts
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/group/members.rb | 7 | ||||
-rw-r--r-- | features/steps/project/team_management.rb | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/features/steps/group/members.rb b/features/steps/group/members.rb index cefc55d07ab..adaf375453c 100644 --- a/features/steps/group/members.rb +++ b/features/steps/group/members.rb @@ -117,7 +117,12 @@ class Spinach::Features::GroupMembers < Spinach::FeatureSteps member = mary_jane_member page.within "#group_member_#{member.id}" do - select 'Developer', from: "member_access_level_#{member.id}" + click_button member.human_access + + page.within '.dropdown-menu' do + click_link 'Developer' + end + wait_for_ajax end end diff --git a/features/steps/project/team_management.rb b/features/steps/project/team_management.rb index b21d0849ad1..99b6397ba74 100644 --- a/features/steps/project/team_management.rb +++ b/features/steps/project/team_management.rb @@ -65,7 +65,11 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps user = User.find_by(name: 'Dmitriy') project_member = project.project_members.find_by(user_id: user.id) page.within "#project_member_#{project_member.id}" do - select "Reporter", from: "member_access_level_#{project_member.id}" + click_button project_member.human_access + + page.within '.dropdown-menu' do + click_link 'Reporter' + end end end |