1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

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

This commit is contained in:
Thomas Walpole 2013-11-18 12:47:05 -08:00
parent f4af487a3f
commit addecfadd0
3 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -57,7 +57,7 @@ Capybara::SpecHelper.spec "#fill_in" do
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"

View file

@ -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