From 2c06ba255447a2686682a236a3b4317980d88b38 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 3 Sep 2024 07:44:02 -0400 Subject: [PATCH 1/2] Run Axe scan against all WCAG 2.0-2.2 A & AA changelog: Internal, Accessibility Tests, Run Axe scan against all WCAG 2.0-2.2 A & AA --- Gemfile.lock | 6 +++--- spec/support/matchers/accessibility.rb | 10 +++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 3173e2b63f0..7eeaf41a00a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -197,11 +197,11 @@ GEM aws-sigv4 (~> 1.1) aws-sigv4 (1.9.1) aws-eventstream (~> 1, >= 1.0.2) - axe-core-api (4.9.1) + axe-core-api (4.10.0) dumb_delegator virtus - axe-core-rspec (4.9.1) - axe-core-api (= 4.9.1) + axe-core-rspec (4.10.0) + axe-core-api (= 4.10.0) dumb_delegator virtus axiom-types (0.1.1) diff --git a/spec/support/matchers/accessibility.rb b/spec/support/matchers/accessibility.rb index 00a34431f46..d418498184e 100644 --- a/spec/support/matchers/accessibility.rb +++ b/spec/support/matchers/accessibility.rb @@ -337,7 +337,15 @@ def fieldset_legend_name(element) end def expect_page_to_have_no_accessibility_violations(page, validate_markup: true) - expect(page).to be_axe_clean.according_to(:wcag22aa, :"best-practice") + expect(page).to be_axe_clean.according_to( + :wcag2a, + :wcag2aa, + :wcag21a, + :wcag21aa, + :wcag22a, + :wcag22aa, + :"best-practice", + ) expect(page).to have_unique_ids expect(page).to have_valid_idrefs expect(page).to label_required_fields From 45c8934e921e87b8d2e2c1906667c4663d5eed62 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 3 Sep 2024 14:17:22 -0400 Subject: [PATCH 2/2] Exclude intl-tel-input from accessibility test --- spec/support/matchers/accessibility.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/support/matchers/accessibility.rb b/spec/support/matchers/accessibility.rb index d418498184e..49d6a0dd681 100644 --- a/spec/support/matchers/accessibility.rb +++ b/spec/support/matchers/accessibility.rb @@ -345,6 +345,8 @@ def expect_page_to_have_no_accessibility_violations(page, validate_markup: true) :wcag22a, :wcag22aa, :"best-practice", + ).excluding( + '.iti__selected-flag', # See: LG-14382 ) expect(page).to have_unique_ids expect(page).to have_valid_idrefs