From d9bda79385897c1e5544790c3c1c5915c89ffa85 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 27 Apr 2020 14:16:02 +0200 Subject: [PATCH] Maintenance: Make login clue check Capybara system tests more robust in local environments. --- spec/support/capybara/custom_extensions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/capybara/custom_extensions.rb b/spec/support/capybara/custom_extensions.rb index 65dca76a9..a607d66e2 100644 --- a/spec/support/capybara/custom_extensions.rb +++ b/spec/support/capybara/custom_extensions.rb @@ -23,7 +23,7 @@ class Capybara::Node::Element raise "Element still moving after #{checks} checks" if check == checks current = native.location - sleep 0.2 if ENV['CI'] + sleep 0.2 break if previous == current previous = current