diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-08-23 10:44:40 +0200 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-08-23 11:16:44 +0200 |
commit | 4bc063bbe376226ede32945928af62a6b77f1e5c (patch) | |
tree | 228fa86416a8e3753bdf49949e1a9efa1d08b2fe | |
parent | ce99a593b730bb71a535e5558c3d642964e545b6 (diff) | |
download | gitlab-ce-winh-deduplicate-board-headers.tar.gz |
Remove jQuery from DragTo helperwinh-deduplicate-board-headers
-rw-r--r-- | spec/support/helpers/drag_to_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/helpers/drag_to_helper.rb b/spec/support/helpers/drag_to_helper.rb index 19c7c4dcde1..2e9932f2e8a 100644 --- a/spec/support/helpers/drag_to_helper.rb +++ b/spec/support/helpers/drag_to_helper.rb @@ -4,14 +4,14 @@ module DragTo def drag_to(list_from_index: 0, from_index: 0, to_index: 0, list_to_index: 0, selector: '', scrollable: 'body', duration: 1000, perform_drop: true) js = <<~JS simulateDrag({ - scrollable: $('#{scrollable}').get(0), + scrollable: document.querySelector('#{scrollable}'), duration: #{duration}, from: { - el: $('#{selector}').eq(#{list_from_index}).get(0), + el: document.querySelectorAll('#{selector}')[#{list_from_index}], index: #{from_index} }, to: { - el: $('#{selector}').eq(#{list_to_index}).get(0), + el: document.querySelectorAll('#{selector}')[#{list_to_index}], index: #{to_index} }, performDrop: #{perform_drop} |