Skip to content

Instantly share code, notes, and snippets.

@juno
Created November 13, 2017 12:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save juno/676188c362c6d585479d1f05718be555 to your computer and use it in GitHub Desktop.
Save juno/676188c362c6d585479d1f05718be555 to your computer and use it in GitHub Desktop.
Rails 5.1 System Test driven by headless chrome.
driven_by(
:selenium,
using: :chrome,
screen_size: [1400, 900],
options: {
desired_capabilities: {
chromeOptions: {
args: %w[headless disable-gpu],
prefs: {
'modifyheaders.headers.name' => 'Accept-Language',
'modifyheaders.headers.value' => 'ja,en',
},
},
},
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment