Class: AxeMatchers::BeAxeClean
- Inherits:
-
Object
- Object
- AxeMatchers::BeAxeClean
- Defined in:
- lib/decidim/dev/test/rspec_support/accessibility_examples.rb
Instance Method Summary collapse
Instance Method Details
#failure_message ⇒ Object
80 81 82 |
# File 'lib/decidim/dev/test/rspec_support/accessibility_examples.rb', line 80 def ResultFormatter.new(results).format end |
#failure_message_when_negated ⇒ Object
84 85 86 |
# File 'lib/decidim/dev/test/rspec_support/accessibility_examples.rb', line 84 def "Expected to find accessibility violations. None were detected." end |
#matches?(page) ⇒ Boolean
75 76 77 78 |
# File 'lib/decidim/dev/test/rspec_support/accessibility_examples.rb', line 75 def matches?(page) @results = execute_axe(page) results["violations"].count.zero? end |