2019-07-25 01:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-10-17 22:30:36 -04:00
|
|
|
# see app/assets/javascripts/test_utils/simulate_input.js
|
|
|
|
|
|
|
|
module InputHelper
|
2017-10-20 01:28:38 -04:00
|
|
|
def simulate_input(selector, input = '')
|
2017-10-17 22:30:36 -04:00
|
|
|
evaluate_script("window.simulateInput(#{selector.to_json}, #{input.to_json});")
|
|
|
|
end
|
|
|
|
end
|