mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-27 19:26:12 +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
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ Feature: Show done
|
|||
When I follow "Show all"
|
||||
Then I should see the page selector
|
||||
And I should see "40 (1-20)"
|
||||
When I follow "2"
|
||||
When I select the second page
|
||||
Then I should be on the done projects page
|
||||
And the page should be "2"
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ Feature: Show done
|
|||
And I follow "Show all"
|
||||
Then I should see the page selector
|
||||
And I should see "40 (1-20)"
|
||||
When I follow "2"
|
||||
When I select the second page
|
||||
Then I should be on the done recurring todos page
|
||||
And the page should be "2"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue