Skip to content

Commit

Permalink
Replace deprecated axe-matchers gem with axe-core gems
Browse files Browse the repository at this point in the history
  • Loading branch information
camillevilla committed Dec 26, 2023
1 parent 57c6e6c commit ab72469
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ group :development, :test do
# gem 'sniffybara', git: 'https://github.com/department-of-veterans-affairs/sniffybara.git'
gem 'figaro'
gem 'rspec-retry'
gem 'axe-matchers'
gem 'axe-core-capybara'
gem 'axe-core-rspec'
gem 'webdrivers'

gem 'brakeman', '5.0.2'
Expand Down
22 changes: 14 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,16 @@ GEM
aws-sigv4 (~> 1.4)
aws-sigv4 (1.5.0)
aws-eventstream (~> 1, >= 1.0.2)
axe-matchers (2.6.1)
dumb_delegator (~> 0.8)
virtus (~> 1.0)
axe-core-api (4.8.0)
dumb_delegator
virtus
axe-core-capybara (4.8.0)
axe-core-api
dumb_delegator
axe-core-rspec (4.8.0)
axe-core-api
dumb_delegator
virtus
axiom-types (0.1.1)
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
Expand Down Expand Up @@ -262,8 +269,7 @@ GEM
docile (1.4.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dumb_delegator (0.8.1)
equalizer (0.0.11)
dumb_delegator (1.0.0)
erd (0.8.1)
nokogiri
ruby-graphviz
Expand Down Expand Up @@ -791,11 +797,10 @@ GEM
unf_ext (0.0.8.2-x64-mingw32)
unicode-display_width (2.5.0)
uniform_notifier (1.16.0)
virtus (1.0.5)
virtus (2.0.0)
axiom-types (~> 0.1)
coercible (~> 1.0)
descendants_tracker (~> 0.0, >= 0.0.3)
equalizer (~> 0.0, >= 0.0.9)
warden (1.2.9)
rack (>= 2.0.9)
web-console (4.2.0)
Expand Down Expand Up @@ -840,7 +845,8 @@ DEPENDENCIES
autoprefixer-rails
aws-sdk-rds
aws-sdk-s3
axe-matchers
axe-core-capybara
axe-core-rspec
babel-transpiler
bcrypt (~> 3.1.13)
bootsnap
Expand Down
7 changes: 4 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
require 'capybara'
require 'simplecov'
require 'rspec/retry'
require 'axe/rspec'
require 'axe-capybara'
require 'axe-rspec'
require "rack_session_access/capybara"

if ENV['CIRCLE_ARTIFACTS']
Expand Down Expand Up @@ -152,7 +153,7 @@

# Capybara.javascript_driver = :webkit
# Capybara.default_driver = :sniffybara
# Capybara.default_driver = :selenium_chrome # Uncomment to debug feature tests
Capybara.default_driver = :selenium_chrome # Uncomment to debug feature tests

Capybara.register_driver :selenium_chrome_headless do |app|
options = Selenium::WebDriver::Chrome::Options.new(args: %w[no-sandbox headless=new disable-gpu window-size=1920,1080])
Expand All @@ -166,7 +167,7 @@
Capybara::Selenium::Driver.new(app, browser: :firefox, options: options)
end

Capybara.default_driver = :selenium_chrome_headless
# Capybara.default_driver = :selenium_chrome_headless
Capybara.javascript_driver = :selenium_firefox_headless
Capybara.enable_aria_label = true

Expand Down

0 comments on commit ab72469

Please sign in to comment.