diff options
Diffstat (limited to 'spec/features/groups/members')
9 files changed, 20 insertions, 0 deletions
diff --git a/spec/features/groups/members/filter_members_spec.rb b/spec/features/groups/members/filter_members_spec.rb index 643c8407578..d667690af29 100644 --- a/spec/features/groups/members/filter_members_spec.rb +++ b/spec/features/groups/members/filter_members_spec.rb @@ -10,6 +10,8 @@ RSpec.describe 'Groups > Members > Filter members' do let(:nested_group) { create(:group, parent: group) } before do + stub_feature_flags(vue_group_members_list: false) + group.add_owner(user) group.add_maintainer(user_with_2fa) nested_group.add_maintainer(nested_group_user) diff --git a/spec/features/groups/members/leave_group_spec.rb b/spec/features/groups/members/leave_group_spec.rb index fecc90f20c7..9eb5cc15c5e 100644 --- a/spec/features/groups/members/leave_group_spec.rb +++ b/spec/features/groups/members/leave_group_spec.rb @@ -8,6 +8,8 @@ RSpec.describe 'Groups > Members > Leave group' do let(:group) { create(:group) } before do + stub_feature_flags(vue_group_members_list: false) + gitlab_sign_in(user) end diff --git a/spec/features/groups/members/list_members_spec.rb b/spec/features/groups/members/list_members_spec.rb index 415c6927320..bcec2b50a24 100644 --- a/spec/features/groups/members/list_members_spec.rb +++ b/spec/features/groups/members/list_members_spec.rb @@ -12,6 +12,8 @@ RSpec.describe 'Groups > Members > List members' do let(:nested_group) { create(:group, parent: group) } before do + stub_feature_flags(vue_group_members_list: false) + sign_in(user1) end diff --git a/spec/features/groups/members/manage_groups_spec.rb b/spec/features/groups/members/manage_groups_spec.rb index faf455e4ed9..e3bbbd4d73b 100644 --- a/spec/features/groups/members/manage_groups_spec.rb +++ b/spec/features/groups/members/manage_groups_spec.rb @@ -11,6 +11,8 @@ RSpec.describe 'Groups > Members > Manage groups', :js do let(:shared_group) { create(:group) } before do + stub_feature_flags(vue_group_members_list: false) + shared_group.add_owner(user) sign_in(user) end diff --git a/spec/features/groups/members/manage_members_spec.rb b/spec/features/groups/members/manage_members_spec.rb index 0267bea2f53..aedb7c170f8 100644 --- a/spec/features/groups/members/manage_members_spec.rb +++ b/spec/features/groups/members/manage_members_spec.rb @@ -11,6 +11,8 @@ RSpec.describe 'Groups > Members > Manage members' do let(:group) { create(:group) } before do + stub_feature_flags(vue_group_members_list: false) + sign_in(user1) end diff --git a/spec/features/groups/members/master_adds_member_with_expiration_date_spec.rb b/spec/features/groups/members/master_adds_member_with_expiration_date_spec.rb index f80925186ed..d94cc85f411 100644 --- a/spec/features/groups/members/master_adds_member_with_expiration_date_spec.rb +++ b/spec/features/groups/members/master_adds_member_with_expiration_date_spec.rb @@ -11,6 +11,8 @@ RSpec.describe 'Groups > Members > Owner adds member with expiration date', :js let(:group) { create(:group) } before do + stub_feature_flags(vue_group_members_list: false) + group.add_owner(user1) sign_in(user1) end diff --git a/spec/features/groups/members/master_manages_access_requests_spec.rb b/spec/features/groups/members/master_manages_access_requests_spec.rb index 71c9b280ebe..44fd7380b79 100644 --- a/spec/features/groups/members/master_manages_access_requests_spec.rb +++ b/spec/features/groups/members/master_manages_access_requests_spec.rb @@ -3,6 +3,10 @@ require 'spec_helper' RSpec.describe 'Groups > Members > Maintainer manages access requests' do + before do + stub_feature_flags(vue_group_members_list: false) + end + it_behaves_like 'Maintainer manages access requests' do let(:has_tabs) { true } let(:entity) { create(:group, :public) } diff --git a/spec/features/groups/members/search_members_spec.rb b/spec/features/groups/members/search_members_spec.rb index ad4f5c0b579..a95b59cece1 100644 --- a/spec/features/groups/members/search_members_spec.rb +++ b/spec/features/groups/members/search_members_spec.rb @@ -14,6 +14,8 @@ RSpec.describe 'Search group member' do end before do + stub_feature_flags(vue_group_members_list: false) + sign_in(user) visit group_group_members_path(guest_group) end diff --git a/spec/features/groups/members/sort_members_spec.rb b/spec/features/groups/members/sort_members_spec.rb index cfc0e421aeb..d940550b18a 100644 --- a/spec/features/groups/members/sort_members_spec.rb +++ b/spec/features/groups/members/sort_members_spec.rb @@ -8,6 +8,8 @@ RSpec.describe 'Groups > Members > Sort members' do let(:group) { create(:group) } before do + stub_feature_flags(vue_group_members_list: false) + create(:group_member, :owner, user: owner, group: group, created_at: 5.days.ago) create(:group_member, :developer, user: developer, group: group, created_at: 3.days.ago) |