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:
parent
f4af487a3f
commit
addecfadd0
3 changed files with 4 additions and 2 deletions
|
@ -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 @@ 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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue