Any ideas on what the problem is? It looked to me like drag_to was just not dragging to the correct location within the page.
I found a few old discussions on this subject. This one is the most useful:
http://groups.google.com/group/ruby-capybara/browse_thread/thread/9b0...
In that post they mention that this is a problem with the selenium-webdriver ruby client. Should we bring this up with them? Are there any other options?
thx!
-karl
On Sep 15, 2011, at 1:19 PM, Jonas Nicklas wrote:
> Afaik, sortable doesn't work with drag_to. Testing sortable lists is
> pretty painful tbh, haven't found a good solution. Use the search,
> there's been at least one discussion about this before, iirc.
> /Jonas
> On Thu, Sep 15, 2011 at 6:27 PM, Karl <karl.b...@gmail.com> wrote:
>> I have been struggling to test sorting of a jquery sortable with both
>> the capybara-webkit and selenium driver. I have reproduced the issue
>> with a small project on github:
>> https://github.com/kbaum/dragdrop
>> To see my test code, take a look at the feature file and step def.
>> Not sure what I am doing wrong. When I run with selenium it looks
>> like the item is not getting dragged to the correct location.
>> https://github.com/kbaum/dragdrop/blob/master/features/drag_drop_list...
>> https://github.com/kbaum/dragdrop/blob/master/features/step_definitio...
>> Does anyone use capybara drag_to to test sorting within jquery?
>> thx!
>> -karl