summaryrefslogtreecommitdiff
path: root/spec/support/helpers/search_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/search_helpers.rb')
-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