From 1d3a978c223b19fe3a5536c3650e18f05f021e07 Mon Sep 17 00:00:00 2001 From: Desiree Chevalier Date: Wed, 29 Mar 2023 14:20:00 -0400 Subject: [PATCH] Add browser version and headless env vars --- docs/running_against_remote_grid.md | 1 + lib/gitlab/qa/runtime/env.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/running_against_remote_grid.md b/docs/running_against_remote_grid.md index 07a32ef4..6cb46edb 100644 --- a/docs/running_against_remote_grid.md +++ b/docs/running_against_remote_grid.md @@ -9,6 +9,7 @@ I.e, if you have a Selenium server set up at http://localhost:4444 or if you hav | Variable | Description | Default | Example(s) | |---------------------------|----------------------------------------------------------------|----------|--------------------------------| | QA_BROWSER | Browser to run against | "chrome" | "chrome" "firefox" "safari" | +| QA_BROWSER_VERSION | Version of browser to run against | "latest" | "latest" "111.0" "15.0" | | QA_REMOTE_GRID_PROTOCOL | Protocol to use | "http" | "http" "https" | | QA_REMOTE_GRID | Remote grid to run tests against | | "localhost:3000" "provider:80" | | QA_REMOTE_GRID_USERNAME | Username to specify in the remote grid. "USERNAME@provider:80" | | "gitlab-sl" | diff --git a/lib/gitlab/qa/runtime/env.rb b/lib/gitlab/qa/runtime/env.rb index dabb2b10..50cd8f0a 100644 --- a/lib/gitlab/qa/runtime/env.rb +++ b/lib/gitlab/qa/runtime/env.rb @@ -22,6 +22,7 @@ module Gitlab 'QA_REMOTE_MOBILE_DEVICE_NAME' => :remote_mobile_device_name, 'QA_REMOTE_TUNNEL_ID' => :remote_tunnel_id, 'QA_BROWSER' => :browser, + 'QA_BROWSER_VERSION' => :browser_version, 'QA_ADDITIONAL_REPOSITORY_STORAGE' => :qa_additional_repository_storage, 'QA_PRAEFECT_REPOSITORY_STORAGE' => :qa_praefect_repository_storage, 'QA_GITALY_NON_CLUSTER_STORAGE' => :qa_gitaly_non_cluster_storage, @@ -41,6 +42,7 @@ module Gitlab 'QA_INFLUXDB_TOKEN' => :qa_influxdb_token, 'QA_SKIP_PULL' => :qa_skip_pull, 'QA_VALIDATE_RESOURCE_REUSE' => :qa_validate_resource_reuse, + 'WEBDRIVER_HEADLESS' => :webdriver_headless, 'GITLAB_API_BASE' => :api_base, 'GITLAB_ADMIN_USERNAME' => :admin_username, 'GITLAB_ADMIN_PASSWORD' => :admin_password, -- GitLab