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