summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-11-15 19:25:03 +1100
committerDylan Griffith <dyl.griffith@gmail.com>2019-11-15 20:58:42 +1100
commit3674f7a7786b3d1660af1fb89bfb3c40284f035f (patch)
tree56c366fd8131a6abd8843de0d208c5fdab942eb0
parent5aa228a117e0dbe2944d8b15c4b86f0c504e8502 (diff)
downloadgitlab-ce-3674f7a7786b3d1660af1fb89bfb3c40284f035f.tar.gz
Add search_helpers changes from security-33712
-rw-r--r--spec/support/helpers/search_helpers.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/helpers/search_helpers.rb b/spec/support/helpers/search_helpers.rb
index d1d25fbabcd..db6e47459e9 100644
--- a/spec/support/helpers/search_helpers.rb
+++ b/spec/support/helpers/search_helpers.rb
@@ -20,6 +20,12 @@ module SearchHelpers
end
end
+ def has_search_scope?(scope)
+ page.within '.search-filter' do
+ has_link?(scope)
+ end
+ end
+
def max_limited_count
Gitlab::SearchResults::COUNT_LIMIT_MESSAGE
end