diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2019-11-15 19:25:03 +1100 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2019-11-15 20:58:42 +1100 |
commit | 3674f7a7786b3d1660af1fb89bfb3c40284f035f (patch) | |
tree | 56c366fd8131a6abd8843de0d208c5fdab942eb0 | |
parent | 5aa228a117e0dbe2944d8b15c4b86f0c504e8502 (diff) | |
download | gitlab-ce-3674f7a7786b3d1660af1fb89bfb3c40284f035f.tar.gz |
Add search_helpers changes from security-33712
-rw-r--r-- | spec/support/helpers/search_helpers.rb | 6 |
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 |