diff --git a/Gemfile b/Gemfile index 488b49b1c3..16a21da489 100644 --- a/Gemfile +++ b/Gemfile @@ -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' diff --git a/Gemfile.lock b/Gemfile.lock index e2eac476fc..cd193e2ec1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -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 @@ -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) @@ -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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e6b4bf45c5..ffd6c3567e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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'] @@ -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]) @@ -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