Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 11 additions & 1 deletion spec/support/matchers/accessibility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,17 @@ 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",
).excluding(
'.iti__selected-flag', # See: LG-14382
)
expect(page).to have_unique_ids
expect(page).to have_valid_idrefs
expect(page).to label_required_fields
Expand Down