1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

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;