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

tests/functional: More robust chrome detection

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