Skip to content

Commit

Permalink
Adjust click retry test timing
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Nov 27, 2018
1 parent 49bf421 commit c0704c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/capybara/spec/session/node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c0704c3

Please sign in to comment.