summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-05-05 21:33:21 -0500
committerEric Eastwood <contact@ericeastwood.com>2017-05-15 12:52:31 -0500
commitcae2274fad39ae0933114cfcde1313e1f1ec4209 (patch)
treeec0dd7a18252a056375e7b9e63e48bc4e0ee6be0 /spec/support
parent1ccf101eef7db401317838a453795fa1c28ec036 (diff)
downloadgitlab-ce-cae2274fad39ae0933114cfcde1313e1f1ec4209.tar.gz
Scope recent searches to project
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/31902
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/filtered_search_helpers.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/filtered_search_helpers.rb b/spec/support/filtered_search_helpers.rb
index 36be0bb6bf8..37cc308e613 100644
--- a/spec/support/filtered_search_helpers.rb
+++ b/spec/support/filtered_search_helpers.rb
@@ -73,11 +73,11 @@ module FilteredSearchHelpers
end
def remove_recent_searches
- execute_script('window.localStorage.removeItem(\'issue-recent-searches\');')
+ execute_script('window.localStorage.clear();')
end
- def set_recent_searches(input)
- execute_script("window.localStorage.setItem('issue-recent-searches', '#{input}');")
+ def set_recent_searches(key, input)
+ execute_script("window.localStorage.setItem('#{key}', '#{input}');")
end
def wait_for_filtered_search(text)