Add search_helpers changes from security-33712

This commit is contained in:
Dylan Griffith 2019-11-15 19:21:08 +11:00 committed by Mark Chao
parent fd4d850b68
commit 8ed43e7469
1 changed files with 6 additions and 0 deletions

View File

@ -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