From 2161d624f23d51cba8c31c275d2e8077e6d2b87b Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 2 Sep 2020 15:17:45 +0200 Subject: [PATCH] Maintenance: Ensure Chrome requests en-US translated UI in Capybara context. --- spec/support/capybara/selenium_driver.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spec/support/capybara/selenium_driver.rb b/spec/support/capybara/selenium_driver.rb index 9c91013a0..e6a1a51ee 100644 --- a/spec/support/capybara/selenium_driver.rb +++ b/spec/support/capybara/selenium_driver.rb @@ -6,9 +6,14 @@ Capybara.register_driver(:zammad_chrome) do |app| # Turn on browser logs capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( - loggingPrefs: { + loggingPrefs: { browser: 'ALL' }, + chromeOptions: { + prefs: { + 'intl.accept_languages' => 'en-US' + }, + }, ) options = {