You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have been looking for a way to test my jquery sortable functionality, and the consensus is that your solution is the best way to go. I have had success with this up to the point where the browser attempts to move one of the objects, but never completes it due to an unresponsive script. I attempted this line (below) in firebug console, only to hit a dialog box stating there is an unresponsive script.
$("tr td").simulateDragSortable({ move: 1});
My step definition utilizes the example you have on here. Below is what I have for the step definition:
When /^I drag "([^"]*)" (up|down) (\d+) positions?$/ do |pledge_item_title, direction, distance|
pledgeitem = PledgeItem.find_by_name(pledge_item_title)
distance = distance.to_i * -1 if direction == "up"
page.execute_script %{
$("tr td").simulateDragSortable({ move: #{distance.to_i}});
}
sleep 5
end
Thanks for providing this solution, any assistance would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
Unfortunately I have no idea why that wouldn't work. If you provide me with the raw HTML and some Javascript (perhaps in a http://codepen.io/) I can see what I can do, although can't promise anything as I'm pretty busy.
Hi, I have been looking for a way to test my jquery sortable functionality, and the consensus is that your solution is the best way to go. I have had success with this up to the point where the browser attempts to move one of the objects, but never completes it due to an unresponsive script. I attempted this line (below) in firebug console, only to hit a dialog box stating there is an unresponsive script.
My step definition utilizes the example you have on here. Below is what I have for the step definition:
When /^I drag "([^"]*)" (up|down) (\d+) positions?$/ do |pledge_item_title, direction, distance|
pledgeitem = PledgeItem.find_by_name(pledge_item_title)
distance = distance.to_i * -1 if direction == "up"
page.execute_script %{
$("tr td").simulateDragSortable({ move: #{distance.to_i}});
}
sleep 5
end
Thanks for providing this solution, any assistance would be greatly appreciated!
The text was updated successfully, but these errors were encountered: