diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-06 15:08:38 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-06 15:08:38 +0300 |
commit | 6ab9cdec264a9caf7e4eb5519fcae5ac65a18b15 (patch) | |
tree | 28afca02f01c1b9d22a5e4227521a575fae57bea /spec/support/capybara.rb | |
parent | 497d517e130ac88cbdee69c4c9e88938e164fc52 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/capybara.rb')
-rw-r--r-- | spec/support/capybara.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 27c360ee39a..ab55cf97ab4 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -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 |