diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-02-21 18:32:00 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-02-21 18:32:00 +0300 |
commit | b1da8f0f1ef13d30ba7c5544d43188cfc180f676 (patch) | |
tree | c1b4d087f09e21bb1cbde48c0f5023a8b1fb0a0d /spec | |
parent | 54439315fafa4bd585f9d2256f5bafe4c95e551a (diff) | |
parent | 3894ae3bd07550bef632068f6d5296144099f619 (diff) |
Merge branch 'group-memebrs-owner-level' into 'master'
Added ability to change user permissions in group to owner
Closes #28233
See merge request !9299
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/groups/members/list_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/groups/members/list_spec.rb b/spec/features/groups/members/list_spec.rb index 109de39b2dd..14c193f7450 100644 --- a/spec/features/groups/members/list_spec.rb +++ b/spec/features/groups/members/list_spec.rb @@ -30,6 +30,21 @@ feature 'Groups members list', feature: true do expect(second_row).to be_blank end + it 'updates user to owner level', :js do + group.add_owner(user1) + group.add_developer(user2) + + visit group_group_members_path(group) + + page.within(second_row) do + click_button('Developer') + + click_link('Owner') + + expect(page).to have_button('Owner') + end + end + def first_row page.all('ul.content-list > li')[0] end |