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
545cdd7a
Commit
545cdd7a
authored
Feb 12, 2021
by
Serena Fang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add member table username helper
parent
112f9517
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
spec/features/projects/members/list_spec.rb
spec/features/projects/members/list_spec.rb
+1
-1
spec/support/helpers/features/members_table_helpers.rb
spec/support/helpers/features/members_table_helpers.rb
+4
-0
No files found.
spec/features/projects/members/list_spec.rb
View file @
545cdd7a
...
...
@@ -110,7 +110,7 @@ RSpec.describe 'Project members list' do
it
'does not show form used to change roles and "Expiration date" or the remove user button'
do
visit_members_page
page
.
within
find_
member
_row
(
project_bot
)
do
page
.
within
find_
username
_row
(
project_bot
)
do
expect
(
page
).
not_to
have_button
(
'Maintainer'
)
expect
(
page
).
to
have_field
(
'Expiration date'
,
disabled:
true
)
expect
(
page
).
not_to
have_button
(
'Remove member'
)
...
...
spec/support/helpers/features/members_table_helpers.rb
View file @
545cdd7a
...
...
@@ -41,6 +41,10 @@ module Spec
find_row
(
user
.
name
)
end
def
find_username_row
(
user
)
find_row
(
user
.
username
)
end
def
find_invited_member_row
(
email
)
find_row
(
email
)
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