debian-mirror-gitlab/spec/support/helpers/input_helper.rb

10 lines
246 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
# 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