Skip to content

Commit

Permalink
Give Chrome some time to breathe out on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Mar 2, 2018
1 parent b28b066 commit cf8b24f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ module WebDriver
end

context 'window switching' do
after { quit_driver }
after do
sleep 1 if ENV['TRAVIS']
quit_driver
end

it 'should switch to a window and back when given a block' do
driver.navigate.to url_for('xhtmlTest.html')
Expand Down Expand Up @@ -129,6 +132,7 @@ module WebDriver
# Sometimes it's opened in a new window (Firefox 55), sometimes
# in the same window (Firefox 57). In any event, this has nothing
# to do with Selenium test.
sleep 1 if ENV['TRAVIS']
reset_driver!
end

Expand Down

0 comments on commit cf8b24f

Please sign in to comment.