Maintenance: Ensure Chrome requests en-US translated UI in Capybara context.

This commit is contained in:
Thorsten Eckel 2020-09-02 15:17:45 +02:00
parent 518230e6cf
commit 2161d624f2

View file

@ -6,9 +6,14 @@ Capybara.register_driver(:zammad_chrome) do |app|
# Turn on browser logs # Turn on browser logs
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
loggingPrefs: { loggingPrefs: {
browser: 'ALL' browser: 'ALL'
}, },
chromeOptions: {
prefs: {
'intl.accept_languages' => 'en-US'
},
},
) )
options = { options = {