Fix language in non-headless option

bump/angular13
Oliver Günther 3 years ago
parent eac0cf51fb
commit 0ac949d483
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 1
      spec/support/browsers/chrome.rb

@ -21,6 +21,7 @@ def register_chrome(language, name: :"chrome_#{language}")
options.add_argument('--disable-gpu') options.add_argument('--disable-gpu')
options.add_argument('--disable-popup-blocking') options.add_argument('--disable-popup-blocking')
options.add_argument("--lang=#{language}") options.add_argument("--lang=#{language}")
options.add_preference('intl.accept_languages', language)
# This is REQUIRED for running in a docker container # This is REQUIRED for running in a docker container
# https://github.com/grosser/parallel_tests/issues/658 # https://github.com/grosser/parallel_tests/issues/658
options.add_argument('--disable-dev-shm-usage') options.add_argument('--disable-dev-shm-usage')

Loading…
Cancel
Save