Commit 35bf3555 authored by Désirée Chevalier's avatar Désirée Chevalier Committed by Mark Lapierre

Add remote tunnel variable for e2e tests

parent ed1f068f
......@@ -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