mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 09:18:50 +01:00
hopefully fix timing issue in drag-and-drop cucumber step
This commit is contained in:
parent
d5f9f8b240
commit
9bd1f7aae6
1 changed files with 2 additions and 0 deletions
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue