diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-10-17 21:30:36 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-10-17 21:30:36 -0500 |
commit | 5e63566bf1fde65de8894f3fd588846853d139d9 (patch) | |
tree | 6e45a94edb47f731915d9b073b15bee22c5012f2 /spec/support | |
parent | 585a2ab577bc5714817f643ce4afd72ae8d832c3 (diff) | |
download | gitlab-ce-5e63566bf1fde65de8894f3fd588846853d139d9.tar.gz |
add InputHelper rspec helper to simulate non-BMP character input
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/input_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/input_helper.rb b/spec/support/input_helper.rb new file mode 100644 index 00000000000..d51c4fa3970 --- /dev/null +++ b/spec/support/input_helper.rb @@ -0,0 +1,8 @@ +# see app/assets/javascripts/test_utils/simulate_input.js + +module InputHelper + def simulateInput(selector, input = '') + evaluate_script("window.simulateInput(#{selector.to_json}, #{input.to_json});") + end +end +
\ No newline at end of file |