increase test timing allowance and prevent contextmenu in click test

This commit is contained in:
Thomas Walpole 2018-11-25 10:55:11 -08:00
parent 545ce2edbc
commit 127999fec2
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -3,6 +3,9 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>with_animation</title>
<script src="/jquery.js" type="text/javascript" charset="utf-8"></script>
<script>
$(document).on('contextmenu', function(e){ e.preventDefault(); })
</script>
<style>
div {
width: 400px;