hopefully fix timing issue in drag-and-drop cucumber step

This commit is contained in:
Reinier Balt 2014-01-06 20:50:19 +01:00
parent d5f9f8b240
commit 9bd1f7aae6

View file

@ -20,6 +20,8 @@ When /^I drag the project "([^"]*)" below "([^"]*)"$/ do |project_drag, project_
drop_index = project_list_find_index(project_drop)
page.execute_script "$('#{sortable_css}').simulateDragSortable({move: #{drop_index-drag_index}, handle: '.grip'});"
wait_for_ajax
wait_for_animations_to_end
end
When /^I submit a new project with name "([^"]*)"$/ do |project_name|