diff options
author | Michael Kozono <mkozono@gmail.com> | 2018-05-03 21:54:21 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2018-06-08 19:05:06 +0300 |
commit | 4d0af292a4a15caa2202f0fdb5608e41d07f41f1 (patch) | |
tree | fd0ab0a0f4401924ec4830f29e83cfe3f22b58ad /qa | |
parent | 700e15a8e79fbb9d53b1a2bf803135a3dfa637ce (diff) |
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.
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/page/base.rb b/qa/qa/page/base.rb index 0a69af88570..30e35bf7abb 100644 --- a/qa/qa/page/base.rb +++ b/qa/qa/page/base.rb @@ -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 |