blob: 5136f8e9cb88d2e1cc4c235bec3036999330e2a2 (
plain)
1
2
3
4
5
6
7
8
9
|
# 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
|