diff options
Diffstat (limited to 'qa/qa/specs/features/browser_ui/1_manage/user/user_access_termination_spec.rb')
-rw-r--r-- | qa/qa/specs/features/browser_ui/1_manage/user/user_access_termination_spec.rb | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/qa/qa/specs/features/browser_ui/1_manage/user/user_access_termination_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/user/user_access_termination_spec.rb deleted file mode 100644 index 8462f5db30b..00000000000 --- a/qa/qa/specs/features/browser_ui/1_manage/user/user_access_termination_spec.rb +++ /dev/null @@ -1,63 +0,0 @@ -# frozen_string_literal: true - -module QA - RSpec.describe 'Manage' do - describe 'User', :requires_admin, :reliable do - let(:admin_api_client) { Runtime::API::Client.as_admin } - - let!(:user) do - Resource::User.fabricate_via_api! do |user| - user.api_client = admin_api_client - end - end - - let!(:group) do - group = QA::Resource::Group.fabricate_via_api! do |group| - group.path = "group-to-test-access-termination-#{SecureRandom.hex(8)}" - end - group.sandbox.add_member(user) - group - end - - let!(:project) do - Resource::Project.fabricate_via_api! do |project| - project.group = group - project.name = "project-for-user-access-termination" - project.initialize_with_readme = true - end - end - - context 'after parent group membership termination' do - before do - Flow::Login.while_signed_in_as_admin do - group.sandbox.visit! - - Page::Group::Menu.perform(&:click_group_members_item) - Page::Group::Members.perform do |members_page| - members_page.remove_member(user.username) - end - end - end - - it 'is not allowed to edit the project files', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347866' do - Flow::Login.sign_in(as: user) - project.visit! - - Page::Project::Show.perform do |project| - project.click_file('README.md') - end - - Page::File::Show.perform(&:click_edit) - - expect(page).to have_text("You can’t edit files directly in this project.") - end - - after do - user.remove_via_api! - project.remove_via_api! - group.remove_via_api! - end - end - end - end -end |