From c0704c38e0f1064be63dda158f6c174f51145a23 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Tue, 27 Nov 2018 09:32:08 -0800 Subject: [PATCH] Adjust click retry test timing --- lib/capybara/spec/session/node_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/capybara/spec/session/node_spec.rb b/lib/capybara/spec/session/node_spec.rb index 298d64c54..1abd5d7b7 100644 --- a/lib/capybara/spec/session/node_spec.rb +++ b/lib/capybara/spec/session/node_spec.rb @@ -423,7 +423,7 @@ @session.visit('/obscured') obscured = @session.find(:css, '#obscured') @session.execute_script <<~JS - setTimeout(function(){ $('#cover').hide(); }, 1000) + setTimeout(function(){ $('#cover').hide(); }, 700) JS expect { obscured.click }.not_to raise_error end @@ -475,7 +475,7 @@ @session.visit('/obscured') obscured = @session.find(:css, '#obscured') @session.execute_script <<~JS - setTimeout(function(){ $('#cover').hide(); }, 1000) + setTimeout(function(){ $('#cover').hide(); }, 700) JS expect { obscured.double_click }.not_to raise_error end @@ -509,7 +509,7 @@ @session.visit('/obscured') obscured = @session.find(:css, '#obscured') @session.execute_script <<~JS - setTimeout(function(){ $('#cover').hide(); }, 1000) + setTimeout(function(){ $('#cover').hide(); }, 700) JS expect { obscured.right_click }.not_to raise_error end