gitlab-org--gitlab-foss/spec/support/helpers/search_helpers.rb
2019-07-25 17:33:34 +12:00

7 lines
180 B
Ruby

# frozen_string_literal: true
module SearchHelpers
def select_filter(name)
find(:xpath, "//ul[contains(@class, 'search-filter')]//a[contains(.,'#{name}')]").click
end
end