Commit 4d0af292 authored by Michael Kozono's avatar Michael Kozono

Reduce default wait interval

Because if reload is true, then we spend a lot of time waiting for page load and yielding (to has_css? etc, which already waits for the default Capybara time) anyway. And if reload is false, there’s no reason not to check what’s on the page at all times.

There doesn’t seem to be a downside.
parent 700e15a8
......@@ -13,7 +13,7 @@ module QA
visit current_url
end
def wait(max: 60, time: 1, reload: true)
def wait(max: 60, time: 0.1, reload: true)
start = Time.now
while Time.now - start < max
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment