mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-29 04:06:11 +01:00
fix regressions and use timecop to fix time in tests. Thanks Dan and Hans!
This commit is contained in:
parent
0d169c4a97
commit
e59fa387fa
7 changed files with 78 additions and 79 deletions
|
|
@ -129,7 +129,7 @@ module TracksStepHelper
|
|||
start_time = Time.now
|
||||
page.evaluate_script('jQuery.isReady&&jQuery.active==0').class.should_not eql(String)
|
||||
until(page.evaluate_script('jQuery.isReady&&jQuery.active==0') || (start_time + 5.seconds) < Time.now)
|
||||
sleep 1
|
||||
sleep 0.25
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue