Skip to content

Commit cf8b24f

Browse files
committed
Give Chrome some time to breathe out on CI
1 parent b28b066 commit cf8b24f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rb/spec/integration/selenium/webdriver/target_locator_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ module WebDriver
6363
end
6464

6565
context 'window switching' do
66-
after { quit_driver }
66+
after do
67+
sleep 1 if ENV['TRAVIS']
68+
quit_driver
69+
end
6770

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

0 commit comments

Comments
 (0)