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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
e19c560d
Commit
e19c560d
authored
Aug 27, 2017
by
Hiroyuki Sato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a simple spec that checks filtered search works at group merge request page
parent
05147e20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
spec/features/groups/merge_requests_spec.rb
spec/features/groups/merge_requests_spec.rb
+15
-0
No files found.
spec/features/groups/merge_requests_spec.rb
View file @
e19c560d
require
'spec_helper'
require
'spec_helper'
feature
'Group merge requests page'
do
feature
'Group merge requests page'
do
include
FilteredSearchHelpers
let
(
:path
)
{
merge_requests_group_path
(
group
)
}
let
(
:path
)
{
merge_requests_group_path
(
group
)
}
let
(
:issuable
)
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
,
title:
'this is my created issuable'
)
}
let
(
:issuable
)
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
,
title:
'this is my created issuable'
)
}
...
@@ -33,4 +35,17 @@ feature 'Group merge requests page' do
...
@@ -33,4 +35,17 @@ feature 'Group merge requests page' do
expect
(
page
.
find
(
'#state-all span.badge'
).
text
).
to
eq
(
"1"
)
expect
(
page
.
find
(
'#state-all span.badge'
).
text
).
to
eq
(
"1"
)
end
end
end
end
context
'group filtered search'
,
:js
do
let
(
:access_level
)
{
ProjectFeature
::
ENABLED
}
let
(
:user
)
{
user_in_group
}
let
(
:user2
)
{
user_outside_group
}
it
'filters by assignee only group users'
do
filtered_search
.
set
(
'assignee:'
)
expect
(
find
(
'#js-dropdown-assignee .filter-dropdown'
)).
to
have_content
(
user
.
name
)
expect
(
find
(
'#js-dropdown-assignee .filter-dropdown'
)).
not_to
have_content
(
user2
.
name
)
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