Skip to content

Commit

Permalink
use chrome headless without sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Jan 19, 2018
1 parent 5ba4123 commit bb2d170
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ matrix:
before_install:
- gem update --system
- gem install bundler
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- google-chrome-stable --headless --disable-gpu --no-sandbox --remote-debugging-port=9222 http://localhost &

env:
- "RAILS_VERSION=5.1.4 "
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

Capybara.register_driver(:headless_chrome) do |app|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
chromeOptions: { args: %w(headless disable-gpu window-size=1280,1024) }
chromeOptions: { args: %w(headless disable-gpu no-sandbox window-size=1280,1024) }
)

Capybara::Selenium::Driver.new(app,
Expand Down

0 comments on commit bb2d170

Please sign in to comment.