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
path: root/spec
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-22 13:14:15 +0300
commit2533dea98f292882b404625fe1bbf91235cd13b1 (patch)
tree7b5527bfc3a623a1a2d9a4367fb4fa070c54cfc5 /spec
parentb6ea76a00de5d26bce6dc1f221db3395faf110d0 (diff)
Add search_helpers changes from security-33712
Diffstat (limited to 'spec')
-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