Commit 2533dea9 authored by Dylan Griffith's avatar Dylan Griffith Committed by Mark Chao

Add search_helpers changes from security-33712

parent b6ea76a0
...@@ -20,6 +20,12 @@ module SearchHelpers ...@@ -20,6 +20,12 @@ module SearchHelpers
end end
end end
def has_search_scope?(scope)
page.within '.search-filter' do
has_link?(scope)
end
end
def max_limited_count def max_limited_count
Gitlab::SearchResults::COUNT_LIMIT_MESSAGE Gitlab::SearchResults::COUNT_LIMIT_MESSAGE
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment