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
8fe3711f
Commit
8fe3711f
authored
May 07, 2020
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combine two tests that use the same setup
parent
2f6397ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
spec/features/projects/members/list_spec.rb
spec/features/projects/members/list_spec.rb
+1
-8
No files found.
spec/features/projects/members/list_spec.rb
View file @
8fe3711f
...
@@ -93,19 +93,12 @@ describe 'Project members list' do
...
@@ -93,19 +93,12 @@ describe 'Project members list' do
project
.
add_maintainer
(
project_bot
)
project
.
add_maintainer
(
project_bot
)
end
end
it
'does not show
member form used to change roles or "Expiration date"
'
do
it
'does not show
form used to change roles and "Expiration date" or the remove user button
'
do
project_member
=
project
.
project_members
.
find_by
(
user_id:
project_bot
.
id
)
project_member
=
project
.
project_members
.
find_by
(
user_id:
project_bot
.
id
)
visit_members_page
visit_members_page
expect
(
page
).
not_to
have_selector
(
"#edit_project_member_
#{
project_member
.
id
}
"
)
expect
(
page
).
not_to
have_selector
(
"#edit_project_member_
#{
project_member
.
id
}
"
)
end
it
'does not show remove user button'
do
project_member
=
project
.
project_members
.
find_by
(
user_id:
project_bot
.
id
)
visit_members_page
expect
(
page
).
not_to
have_selector
(
"#project_member_
#{
project_member
.
id
}
.btn-remove"
)
expect
(
page
).
not_to
have_selector
(
"#project_member_
#{
project_member
.
id
}
.btn-remove"
)
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