summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2018-05-03 11:54:21 -0700
committerMichael Kozono <mkozono@gmail.com>2018-06-08 09:05:06 -0700
commit4d0af292a4a15caa2202f0fdb5608e41d07f41f1 (patch)
treefd0ab0a0f4401924ec4830f29e83cfe3f22b58ad
parent700e15a8e79fbb9d53b1a2bf803135a3dfa637ce (diff)
downloadgitlab-ce-4d0af292a4a15caa2202f0fdb5608e41d07f41f1.tar.gz
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.
-rw-r--r--qa/qa/page/base.rb2
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