For me, #drag_to really worked, however its powers seem limited.
To move the row of the UI sorting table down, I had to create a table with three rows, and then run this code (in the Cucumber step):
element = find('tbody tr:nth-child(1)') target = find('tbody tr:nth-child(3)') element.drag_to target
This will replace the first with the second line. My interpretation is that Capybara does not stretch far enough, so I gave her a goal that exceeds my real goal.
Note. I configured the UI sort with tolerance: 'pointer '.
codener
source share