Commit 3f9bec2e authored by Mikaël Salson's avatar Mikaël Salson

browser_test.rb: Doesn't close in headless mode otherwise, with Chrome

parent 22f38c36
......@@ -97,10 +97,10 @@ class BrowserTest < MiniTest::Test
def close_everything
if defined? $b
print "\nTests finished, closing browser.\n"
$b.close
if ENV['HEADLESS']
$headless.destroy
else
$b.close
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment