Commit 459ee95b authored by Mikaël Salson's avatar Mikaël Salson Committed by Vidjil Team

tests/functional: More robust chrome detection

parent 0406c9c1
......@@ -219,7 +219,7 @@ class TestMultilocus < BrowserTest
def test_14_export_sample_report
if ENV['WATIR_CHROME']
if $b.driver.capabilities.browser_name == 'chrome'
skip "Issue #3699 must be solved first"
end
......
......@@ -10,7 +10,7 @@ class VidjilBrowser < Watir::Browser
Selenium::WebDriver::Chrome.path = ENV['WATIR_BROWSER_PATH']
end
# :chrome or :safari
if ENV['WATIR_CHROME']
if ENV['WATIR_CHROME'] or ENV['WATIR_BROWSER_PATH'].include? "chrom"
super :chrome
elsif ENV['WATIR_MARIONETTE']
super :firefox
......
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