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
Boxiang Sun
gitlab-ce
Commits
7b16c01d
Commit
7b16c01d
authored
Feb 07, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests
parent
9659f7bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
app/assets/javascripts/filtered_search/filtered_search_manager.js.es6
...avascripts/filtered_search/filtered_search_manager.js.es6
+1
-1
spec/features/issues/filtered_search/filter_issues_spec.rb
spec/features/issues/filtered_search/filter_issues_spec.rb
+24
-0
No files found.
app/assets/javascripts/filtered_search/filtered_search_manager.js.es6
View file @
7b16c01d
...
...
@@ -6,7 +6,7 @@
if (this.filteredSearchInput) {
this.tokenizer = gl.FilteredSearchTokenizer;
this.dropdownManager = new gl.FilteredSearchDropdownManager(this.filteredSearchInput.getAttribute('data-base-endpoint'));
this.dropdownManager = new gl.FilteredSearchDropdownManager(this.filteredSearchInput.getAttribute('data-base-endpoint')
|| ''
);
this.bindEvents();
this.loadSearchParamsFromURL();
...
...
spec/features/issues/filtered_search/filter_issues_spec.rb
View file @
7b16c01d
...
...
@@ -801,4 +801,28 @@ describe 'Filter issues', js: true, feature: true do
expect
(
auto_discovery_params
).
to
include
(
'assignee_id'
=>
[
user
.
id
.
to_s
])
end
end
context
'URL has a trailing slash'
do
before
do
visit
"
#{
namespace_project_issues_path
(
project
.
namespace
,
project
)
}
/"
end
it
'milestone dropdown loads milestones'
do
input_filtered_search
(
"milestone:"
,
submit:
false
)
sleep
1
within
(
'#js-dropdown-milestone'
)
do
expect
(
page
).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
count:
2
)
end
end
it
'label dropdown load labels'
do
input_filtered_search
(
"label:"
,
submit:
false
)
sleep
1
within
(
'#js-dropdown-label'
)
do
expect
(
page
).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
count:
5
)
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