Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
c3f93d8e
Commit
c3f93d8e
authored
Jun 03, 2019
by
Mikaël Salson
Browse files
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
browser/test/functional/vidjil_browser.rb
View file @
c3f93d8e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment