Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-11-15 11:21:08 +0300
committerMark Chao <mchao@gitlab.com>2019-11-25 04:06:22 +0300
commit8ed43e7469b056befecef5d27ee50ff996d4d4ea (patch)
treee554b365042092f92755aa1af0b9c5a7f1dc11b5
parentfd4d850b68c479e6fae118a7fa6a568b265423b3 (diff)
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