mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-30 22:08:49 +01:00
add some sleep timers to hopefully fix the travis failures
This commit is contained in:
parent
37f5ca01fa
commit
420c80911b
2 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ When /^I drag "(.*)" to "(.*)"$/ do |dragged, target|
|
|||
drop_elem = page.find(:xpath, "//div[@id='line_todo_#{drop_id}']")
|
||||
|
||||
drag_elem.drag_to(drop_elem)
|
||||
sleep 0.2 # wait for the resulting events to be handled in the browser
|
||||
end
|
||||
|
||||
When /^I expand the dependencies of "([^\"]*)"$/ do |todo_name|
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ module TracksStepHelper
|
|||
expect(page).to have_css(submenu_arrow, :visible=>true)
|
||||
arrow = page.find(submenu_arrow, :match => :first)
|
||||
arrow.click
|
||||
sleep 0.2 # wait for the event to be handled by the browser
|
||||
|
||||
submenu_css = "div#line_todo_#{todo.id} ul#ultodo_#{todo.id}"
|
||||
submenu = page.find(submenu_css)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue