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

9 lines
246 B
Ruby

# frozen_string_literal: true
# see app/assets/javascripts/test_utils/simulate_input.js
module InputHelper
def simulate_input(selector, input = '')
evaluate_script("window.simulateInput(#{selector.to_json}, #{input.to_json});")
end
end