diff options
author | Fatih Acet <acetfatih@gmail.com> | 2019-05-06 22:12:04 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-05-06 22:12:04 +0300 |
commit | adc83d25a7ebf636941f72881a8828e6ebb5ad64 (patch) | |
tree | 98231955cd3f59b27ffd1ed7a08655ff903e224a | |
parent | 0a7c9660e61ad7af24fd3cb93097bf283e5c9b34 (diff) | |
parent | ecc2527032f4e8d6caa66d51fcea22437dd88ab8 (diff) |
Merge branch 'ce-11194-fix-approvals-groups-all-available' into 'master'
Add close_select2 method to select2_helper
See merge request gitlab-org/gitlab-ce!27981
-rw-r--r-- | spec/support/helpers/select2_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/helpers/select2_helper.rb b/spec/support/helpers/select2_helper.rb index f4f0415985c..87672c8896d 100644 --- a/spec/support/helpers/select2_helper.rb +++ b/spec/support/helpers/select2_helper.rb @@ -35,6 +35,10 @@ module Select2Helper execute_script("$('#{selector}').select2('open');") end + def close_select2(selector) + execute_script("$('#{selector}').select2('close');") + end + def scroll_select2_to_bottom(selector) evaluate_script "$('#{selector}').scrollTop($('#{selector}')[0].scrollHeight); $('#{selector}');" end |