diff --git a/features/step_definitions/project_list_steps.rb b/features/step_definitions/project_list_steps.rb index 27391ad0..0039e3c8 100644 --- a/features/step_definitions/project_list_steps.rb +++ b/features/step_definitions/project_list_steps.rb @@ -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|