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

Use Chrome beta on travis for w3c tests

This commit is contained in:
Thomas Walpole 2019-04-18 16:18:04 -07:00
parent 3ec85791fd
commit 6d9aff8ca6
4 changed files with 7 additions and 2 deletions

View file

@ -49,7 +49,7 @@ Gem::Specification.new do |s|
s.add_development_dependency('selenium-webdriver', ['~>3.5'])
s.add_development_dependency('selenium_statistics')
s.add_development_dependency('sinatra', ['>= 1.4.0'])
s.add_development_dependency('webdrivers', ['>=3.6.0']) if ENV['CI']
s.add_development_dependency('webdrivers', ['>=3.6.0']) # if ENV['CI']
s.add_development_dependency('yard', ['>= 0.9.0'])
if RUBY_ENGINE == 'rbx'

View file

@ -4,9 +4,12 @@ require 'spec_helper'
require 'selenium-webdriver'
require 'shared_selenium_session'
require 'rspec/shared_spec_matchers'
require 'webdrivers'
CHROME_DRIVER = :selenium_chrome
Selenium::WebDriver::Chrome.path = '/usr/bin/google-chrome-beta' if ENV['CI'] && ENV['W3C']
browser_options = ::Selenium::WebDriver::Chrome::Options.new
browser_options.headless! if ENV['HEADLESS']
browser_options.add_option(:w3c, !!ENV['W3C'])

View file

@ -43,7 +43,6 @@ end
skipped_tests = %i[response_headers status_code trigger]
if ENV['CI']
service = Selenium::WebDriver::Firefox
service = service::Service if Selenium::WebDriver::Service.respond_to? :driver_path

View file

@ -57,6 +57,9 @@ end
RSpec.configure do |config|
Capybara::SpecHelper.configure(config)
config.expect_with :rspec do |expectations|
expectations.syntax = :expect
end
config.filter_run_including focus_: true unless ENV['CI']
config.run_all_when_everything_filtered = true
config.after(:suite) { SeleniumStatistics.print_results }