diff options
| author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-05-15 20:42:10 +0000 |
|---|---|---|
| committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-05-15 20:42:10 +0000 |
| commit | cae0803313938e787437f305ebc05a4197c430fa (patch) | |
| tree | 7321ba83c80a279f61a5a527a5f6fb78f059a9ee /spec/support | |
| parent | fd210c20571182d0e6a3ea2fdd7a7af465a7b440 (diff) | |
| parent | cae2274fad39ae0933114cfcde1313e1f1ec4209 (diff) | |
| download | gitlab-ce-cae0803313938e787437f305ebc05a4197c430fa.tar.gz | |
Merge branch '31902-namespace-recent-searches-to-project' into 'master'
Scope recent searches to project
Closes #31902
See merge request !11142
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/filtered_search_helpers.rb | 6 |
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) |
