Skip to content

Commit

Permalink
✅ Silence selenium warning coming from Capybara (#184)
Browse files Browse the repository at this point in the history
According to this issue the fix has been merged into capybara but hasn't been
released yet. teamcapybara/capybara#2511
  • Loading branch information
Robdel12 authored Apr 11, 2022
1 parent a00d058 commit d36dbab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions percy-capybara.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency 'capybara', '>= 3'

spec.add_development_dependency 'selenium-webdriver', '>= 4.0.0.beta1'
spec.add_development_dependency 'selenium-webdriver', '>= 4.0.0'
spec.add_development_dependency 'geckodriver-bin', '~> 0.28.0'
spec.add_development_dependency 'bundler', '>= 2.0'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.5'
spec.add_development_dependency 'capybara', '~> 3.31'
spec.add_development_dependency 'capybara', '~> 3.36.0'
spec.add_development_dependency 'percy-style', '~> 0.7.0'
end
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
require 'capybara/rspec'
require 'webmock/rspec'
require 'percy/capybara'
require 'selenium-webdriver'

RSpec.configure do |config|
config.expect_with :rspec do |expectations|
Expand Down Expand Up @@ -40,6 +41,9 @@
Capybara.server_port = 3003
Capybara.server = :puma, { Silent: true }
Capybara.app = Rack::File.new(File.join(File.dirname(__FILE__), 'fixture'))

# Ignore warning until Capybara releases an update solving their warning
Selenium::WebDriver.logger.ignore(:browser_options)
end

## Add cache clearing methods for tests
Expand Down

0 comments on commit d36dbab

Please sign in to comment.