diff options
Diffstat (limited to 'spec/features/groups/members/leave_group_spec.rb')
-rw-r--r-- | spec/features/groups/members/leave_group_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/groups/members/leave_group_spec.rb b/spec/features/groups/members/leave_group_spec.rb index 32acf7edd2a..b73313745e9 100644 --- a/spec/features/groups/members/leave_group_spec.rb +++ b/spec/features/groups/members/leave_group_spec.rb @@ -3,14 +3,14 @@ require 'spec_helper' RSpec.describe 'Groups > Members > Leave group' do + include Spec::Support::Helpers::Features::MembersHelpers + let(:user) { create(:user) } let(:other_user) { create(:user) } let(:group) { create(:group) } before do - stub_feature_flags(vue_group_members_list: false) - - gitlab_sign_in(user) + sign_in(user) end it 'guest leaves the group' do @@ -61,7 +61,7 @@ RSpec.describe 'Groups > Members > Leave group' do expect(group.users).not_to include(user) end - it 'owner can not leave the group if they are the last owner' do + it 'owner can not leave the group if they are the last owner', :js do group.add_owner(user) visit group_path(group) @@ -70,7 +70,7 @@ RSpec.describe 'Groups > Members > Leave group' do visit group_group_members_path(group) - expect(find(:css, '.project-members-page li', text: user.name)).to have_no_selector(:css, 'a.btn-danger') + expect(members_table).not_to have_selector 'button[title="Leave"]' end it 'owner can not leave the group by url param if they are the last owner', :js do |