107ebb8251
Lowering the limit when performing search from 1001 to 101. This will allow us to speed this process.
26 lines
527 B
Ruby
26 lines
527 B
Ruby
# frozen_string_literal: true
|
|
|
|
module SearchHelpers
|
|
def submit_search(query, scope: nil)
|
|
page.within('.search-form, .search-page-form') do
|
|
field = find_field('search')
|
|
field.fill_in(with: query)
|
|
|
|
if javascript_test?
|
|
field.send_keys(:enter)
|
|
else
|
|
click_button('Search')
|
|
end
|
|
end
|
|
end
|
|
|
|
def select_search_scope(scope)
|
|
page.within '.search-filter' do
|
|
click_link scope
|
|
end
|
|
end
|
|
|
|
def max_limited_count
|
|
Gitlab::SearchResults::COUNT_LIMIT_MESSAGE
|
|
end
|
|
end
|