Maintenance: Ensure Chrome requests en-US translated UI in Capybara context.
This commit is contained in:
parent
518230e6cf
commit
2161d624f2
1 changed files with 6 additions and 1 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue