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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
246 B
Ruby
Raw Normal View History

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