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:
parent
545ce2edbc
commit
127999fec2
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue