From 127999fec24913374311a1b5b2109b21c35b260d Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Sun, 25 Nov 2018 10:55:11 -0800 Subject: [PATCH] increase test timing allowance and prevent contextmenu in click test --- lib/capybara/spec/session/window/window_spec.rb | 4 ++-- lib/capybara/spec/views/obscured.erb | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/capybara/spec/session/window/window_spec.rb b/lib/capybara/spec/session/window/window_spec.rb index 50a53426..e213dcad 100644 --- a/lib/capybara/spec/session/window/window_spec.rb +++ b/lib/capybara/spec/session/window/window_spec.rb @@ -120,7 +120,7 @@ Capybara::SpecHelper.spec Capybara::Window, requires: [:windows] do after do @session.current_window.resize_to(*@initial_size) - sleep 0.5 + sleep 1 end it 'should be able to resize window', requires: %i[windows js] do @@ -194,7 +194,7 @@ Capybara::SpecHelper.spec Capybara::Window, requires: [:windows] do after do @session.current_window.resize_to(*@initial_size) - sleep 0.5 + sleep 1 end it 'should be able to fullscreen the window' do diff --git a/lib/capybara/spec/views/obscured.erb b/lib/capybara/spec/views/obscured.erb index 0a9154f0..2819ae4a 100644 --- a/lib/capybara/spec/views/obscured.erb +++ b/lib/capybara/spec/views/obscured.erb @@ -3,6 +3,9 @@ with_animation +