Commit 8e112040 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'qa-add-remote-tunnel-capability' into 'master'

Add remote tunnel variable for e2e tests

See merge request gitlab-org/gitlab!66656
parents 0fad83a2 35bf3555
......@@ -143,6 +143,7 @@ module QA
if QA::Runtime::Env.remote_grid
selenium_options[:url] = QA::Runtime::Env.remote_grid
capabilities[:browserVersion] = 'latest'
capabilities['sauce:options'] = { tunnelIdentifier: QA::Runtime::Env.remote_tunnel_id }
end
Capybara::Selenium::Driver.new(
......
......@@ -142,6 +142,10 @@ module QA
ENV['QA_REMOTE_GRID_PROTOCOL'] || 'http'
end
def remote_tunnel_id
ENV['QA_REMOTE_TUNNEL_ID'] || 'gitlab-sl_tunnel_id'
end
def browser
ENV['QA_BROWSER'].nil? ? :chrome : ENV['QA_BROWSER'].to_sym
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