Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
514fb84e
Commit
514fb84e
authored
Jan 25, 2022
by
Valerie Burton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor admin removes themself from group spec
parent
b7eb0950
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
spec/features/admin/admin_groups_spec.rb
spec/features/admin/admin_groups_spec.rb
+9
-8
No files found.
spec/features/admin/admin_groups_spec.rb
View file @
514fb84e
...
@@ -6,6 +6,7 @@ RSpec.describe 'Admin Groups' do
...
@@ -6,6 +6,7 @@ RSpec.describe 'Admin Groups' do
include
Select2Helper
include
Select2Helper
include
Spec
::
Support
::
Helpers
::
Features
::
MembersHelpers
include
Spec
::
Support
::
Helpers
::
Features
::
MembersHelpers
include
Spec
::
Support
::
Helpers
::
Features
::
InviteMembersModalHelper
include
Spec
::
Support
::
Helpers
::
Features
::
InviteMembersModalHelper
include
Spec
::
Support
::
Helpers
::
ModalHelpers
let
(
:internal
)
{
Gitlab
::
VisibilityLevel
::
INTERNAL
}
let
(
:internal
)
{
Gitlab
::
VisibilityLevel
::
INTERNAL
}
...
@@ -250,26 +251,26 @@ RSpec.describe 'Admin Groups' do
...
@@ -250,26 +251,26 @@ RSpec.describe 'Admin Groups' do
end
end
end
end
describe
'admin remove
themself from a group'
,
:js
,
quarantine:
'https://gitlab.com/gitlab-org/gitlab/-/issues/222342'
do
describe
'admin remove
s themself from a group'
,
:js
do
it
'removes admin from the group'
do
it
'removes admin from the group'
do
stub_feature_flags
(
bootstrap_confirmation_modals:
false
)
group
.
add_user
(
current_user
,
Gitlab
::
Access
::
DEVELOPER
)
group
.
add_user
(
current_user
,
Gitlab
::
Access
::
DEVELOPER
)
visit
group_group_members_path
(
group
)
visit
group_group_members_path
(
group
)
page
.
within
'[data-qa-selector="members_list"]'
do
# rubocop:disable QA/SelectorUsage
page
.
within
members_table
do
expect
(
page
).
to
have_content
(
current_user
.
name
)
expect
(
page
).
to
have_content
(
current_user
.
name
)
expect
(
page
).
to
have_content
(
'Developer'
)
expect
(
page
).
to
have_content
(
'Developer'
)
end
end
accept_confirm
{
find
(
:css
,
'li'
,
text:
current_user
.
name
).
find
(
:css
,
'a.btn-danger'
).
click
}
find_member_row
(
current_user
).
click_button
(
title:
'Leave'
)
accept_gl_confirm
(
button_text:
'Leave'
)
wait_for_all_requests
visit
group_group_members_path
(
group
)
visit
group_group_members_path
(
group
)
page
.
within
'[data-qa-selector="members_list"]'
do
# rubocop:disable QA/SelectorUsage
expect
(
members_table
).
not_to
have_content
(
current_user
.
name
)
expect
(
page
).
not_to
have_content
(
current_user
.
name
)
expect
(
page
).
not_to
have_content
(
'Developer'
)
end
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment