gitlab-org--gitlab-foss/spec/support/helpers/input_helper.rb

8 lines
215 B
Ruby
Raw Normal View History

# see app/assets/javascripts/test_utils/simulate_input.js
module InputHelper
2017-10-20 01:28:38 -04:00
def simulate_input(selector, input = '')
evaluate_script("window.simulateInput(#{selector.to_json}, #{input.to_json});")
end
end