Commit c3f93d8e authored by Mikaël Salson's avatar Mikaël Salson

test/functional/vidjil_browser.rb: Make sure the environment variable exists before accessing it

parent f2b51b2c
Pipeline #81063 passed with stages
in 5 minutes and 53 seconds
......@@ -10,7 +10,7 @@ class VidjilBrowser < Watir::Browser
Selenium::WebDriver::Chrome.path = ENV['WATIR_BROWSER_PATH']
end
# :chrome or :safari
if ENV['WATIR_CHROME'] or ENV['WATIR_BROWSER_PATH'].include? "chrom"
if ENV['WATIR_CHROME'] or (ENV['WATIR_BROWSER_PATH'] and 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