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
5b5557c6
Commit
5b5557c6
authored
Feb 11, 2018
by
Semyon Pupkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move feature group members search test to RSpec
https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
parent
0ef19f1c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
27 deletions
+29
-27
features/group/members.feature
features/group/members.feature
+0
-12
features/steps/group/members.rb
features/steps/group/members.rb
+0
-15
spec/features/groups/members/search_members_spec.rb
spec/features/groups/members/search_members_spec.rb
+29
-0
No files found.
features/group/members.feature
deleted
100644 → 0
View file @
0ef19f1c
Feature
:
Group Members
Background
:
Given
I sign in as
"John Doe"
And
"John Doe"
is owner of group
"Owned"
And
"John Doe"
is guest of group
"Guest"
Scenario
:
Search member by name
Given
"Mary Jane"
is guest of group
"Guest"
And
I visit group
"Guest"
members page
When
I search for 'Mary' member
Then
I should see user
"Mary Jane"
in team list
Then
I should not see user
"John Doe"
in team list
features/steps/group/members.rb
View file @
5b5557c6
...
...
@@ -9,14 +9,6 @@ class Spinach::Features::GroupMembers < Spinach::FeatureSteps
expect
(
group_members_list
).
to
have_content
(
"John Doe"
)
end
step
'I should not see user "John Doe" in team list'
do
expect
(
group_members_list
).
not_to
have_content
(
"John Doe"
)
end
step
'I should see user "Mary Jane" in team list'
do
expect
(
group_members_list
).
to
have_content
(
"Mary Jane"
)
end
step
'I should not see user "Mary Jane" in team list'
do
expect
(
group_members_list
).
not_to
have_content
(
"Mary Jane"
)
end
...
...
@@ -41,13 +33,6 @@ class Spinach::Features::GroupMembers < Spinach::FeatureSteps
# poltergeist always confirms popups.
end
step
'I search for \'Mary\' member'
do
page
.
within
'.member-search-form'
do
fill_in
'search'
,
with:
'Mary'
find
(
'.member-search-btn'
).
click
end
end
step
'I change the "Mary Jane" role to "Developer"'
do
member
=
mary_jane_member
...
...
spec/features/groups/members/search_members_spec.rb
0 → 100644
View file @
5b5557c6
require
'spec_helper'
describe
'Search group member'
do
let
(
:user
)
{
create
:user
}
let
(
:member
)
{
create
:user
}
let!
(
:guest_group
)
do
create
(
:group
)
do
|
group
|
group
.
add_guest
(
user
)
group
.
add_guest
(
member
)
end
end
before
do
sign_in
(
user
)
visit
group_group_members_path
(
guest_group
)
end
it
'renders member users'
do
page
.
within
'.member-search-form'
do
fill_in
'search'
,
with:
member
.
name
find
(
'.member-search-btn'
).
click
end
group_members_list
=
find
(
".panel .content-list"
)
expect
(
group_members_list
).
to
have_content
(
member
.
name
)
expect
(
group_members_list
).
not_to
have_content
(
user
.
name
)
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