diff options
Diffstat (limited to 'qa/qa/runtime/browser.rb')
-rw-r--r-- | qa/qa/runtime/browser.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/qa/runtime/browser.rb b/qa/qa/runtime/browser.rb index 2bd0c6ae00e..a3fce8bff88 100644 --- a/qa/qa/runtime/browser.rb +++ b/qa/qa/runtime/browser.rb @@ -98,6 +98,10 @@ module QA # Disable /dev/shm use in CI. See https://gitlab.com/gitlab-org/gitlab/issues/4252 options.add_argument("disable-dev-shm-usage") if QA::Runtime::Env.running_in_ci? + + # Specify the user-agent to allow challenges to be bypassed + # See https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/11938 + options.add_argument("user-agent=#{QA::Runtime::Env.user_agent}") if QA::Runtime::Env.user_agent end # Use the same profile on QA runs if CHROME_REUSE_PROFILE is true. |