Permalink
Browse files

use no-sandbox option for chrome and adjust permissions for /dev/shm …

…for travis build
  • Loading branch information...
1 parent f4af487 commit addecfadd081bda9384fcf92ddf25327378ffe4a @twalpole committed Nov 18, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −0 .travis.yml
  2. +1 −1 lib/capybara/spec/session/fill_in_spec.rb
  3. +2 −1 spec/selenium_spec_chrome.rb
View
@@ -26,6 +26,7 @@ before_install:
- sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get install google-chrome-stable
+ - sudo chmod 1777 /dev/shm
before_script:
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
@@ -57,7 +57,7 @@
extract_results(@session)['description'].should == 'is <strong>very</strong> secret!'
end
- it "should handle newlines in a textarea", tw: true do
+ it "should handle newlines in a textarea" do
@session.fill_in('form_description', :with => "\nSome text\n")
@session.click_button('awesome')
extract_results(@session)['description'].should == "\r\nSome text\r\n"
@@ -1,7 +1,8 @@
require 'spec_helper'
Capybara.register_driver :selenium_chrome do |app|
- Capybara::Selenium::Driver.new(app, :browser => :chrome)
+ args = ENV['TRAVIS'] ? ['no-sandbox' ] : []
+ Capybara::Selenium::Driver.new(app, :browser => :chrome, :args => args)
end
class ChromeTestApp < TestApp

0 comments on commit addecfa

Please sign in to comment.