From 9bd1f7aae6fc5b1393892a9938aae5422717b3dc Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Mon, 6 Jan 2014 20:50:19 +0100 Subject: [PATCH] hopefully fix timing issue in drag-and-drop cucumber step --- features/step_definitions/project_list_steps.rb | 2 ++ 1 file changed, 2 insertions(+) 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|