diff options
author | Phil Hughes <me@iamphill.com> | 2017-02-16 12:34:13 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-02-16 12:40:38 +0300 |
commit | 3894ae3bd07550bef632068f6d5296144099f619 (patch) | |
tree | 9ed20600dac7f7ccbe4e41dcacb63a0f3e9f1391 /spec/features/groups | |
parent | 93ae3063ad0455a0bd6b9994f718d20357a31e28 (diff) |
Added ability to change user permissions in group to owner
Closes #28233
Diffstat (limited to 'spec/features/groups')
-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 |