summaryrefslogtreecommitdiff
path: root/spec/javascripts/search_autocomplete_spec.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-13 10:30:40 -0500
committerPhil Hughes <me@iamphill.com>2017-01-13 10:30:40 -0500
commit639bca436297e65f16499c5b76a9e5ffb2b798c8 (patch)
tree832636f41824529da2796dedc7888effd42940c9 /spec/javascripts/search_autocomplete_spec.js
parentbdcb81be95b3287e14cf23b2f1d0849b24077360 (diff)
parent4b43126d08972c201551fbd1fe42e85847d5e03f (diff)
downloadgitlab-ce-639bca436297e65f16499c5b76a9e5ffb2b798c8.tar.gz
Merge branch 'master' into go-go-gadget-webpack
Diffstat (limited to 'spec/javascripts/search_autocomplete_spec.js')
-rw-r--r--spec/javascripts/search_autocomplete_spec.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/javascripts/search_autocomplete_spec.js b/spec/javascripts/search_autocomplete_spec.js
index d564a49517b..3be8f88f87b 100644
--- a/spec/javascripts/search_autocomplete_spec.js
+++ b/spec/javascripts/search_autocomplete_spec.js
@@ -8,6 +8,7 @@ require('vendor/fuzzaldrin-plus');
(function() {
var addBodyAttributes, assertLinks, dashboardIssuesPath, dashboardMRsPath, groupIssuesPath, groupMRsPath, groupName, mockDashboardOptions, mockGroupOptions, mockProjectOptions, projectIssuesPath, projectMRsPath, projectName, userId, widget;
+ var userName = 'root';
widget = null;
@@ -16,6 +17,7 @@ require('vendor/fuzzaldrin-plus');
window.gon || (window.gon = {});
window.gon.current_user_id = userId;
+ window.gon.current_username = userName;
dashboardIssuesPath = '/dashboard/issues';
@@ -90,8 +92,8 @@ require('vendor/fuzzaldrin-plus');
assertLinks = function(list, issuesPath, mrsPath) {
var a1, a2, a3, a4, issuesAssignedToMeLink, issuesIHaveCreatedLink, mrsAssignedToMeLink, mrsIHaveCreatedLink;
- issuesAssignedToMeLink = issuesPath + "/?assignee_id=" + userId;
- issuesIHaveCreatedLink = issuesPath + "/?author_id=" + userId;
+ issuesAssignedToMeLink = issuesPath + "/?assignee_username=" + userName;
+ issuesIHaveCreatedLink = issuesPath + "/?author_username=" + userName;
mrsAssignedToMeLink = mrsPath + "/?assignee_id=" + userId;
mrsIHaveCreatedLink = mrsPath + "/?author_id=" + userId;
a1 = "a[href='" + issuesAssignedToMeLink + "']";