Commit 84b425c5 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'force-capybara-browser-scale-factor' into 'master'

Force Capybara browser's scale factor

See merge request gitlab-org/gitlab!44033
parents 2bc020a1 889ad1c7
......@@ -50,6 +50,10 @@ Capybara.register_driver :chrome do |app|
)
options = Selenium::WebDriver::Chrome::Options.new
# Force the browser's scale factor to prevent inconsistencies on high-res devices
options.add_argument('--force-device-scale-factor=1')
options.add_argument("window-size=#{CAPYBARA_WINDOW_SIZE.join(',')}")
# Chrome won't work properly in a Docker container in sandbox mode
......
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