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