You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for writing this - we look forward to using it widely to help us with the new Title II regulations.
One thing that would help us move forward is to have the ability to add the gem to all of our projects, but instead of having every system test fail when it encountered an accessibility issue to instead save the failure and instead give us a report of all the accessibility issues. We could then use that for reporting to our management and tracking our progress towards closing accessibility gaps.
Ideally we'd love to have something where we set a configuration setting, like config.capybara_accessibility_audit.reporting_only that, when run would give us output something like
Finished in 5 minutes 5 seconds (files took 2.45 seconds to load)
238 examples, 0 failures, 24 failed accessibility tests
Failed accessibility tests examples:
... detailed breakdown of the accessibility tests that failed...
The text was updated successfully, but these errors were encountered:
isen0011
added a commit
to isen0011/capybara_accessibility_audit
that referenced
this issue
May 8, 2024
Works on thoughtbot#21.
This doesn't completely fix the problem that is identified in thoughtbot#21, but
it is a step in that direction. The idea is that, if the configuration
setting `accessibility_audit_skip_on_error` is set to true, if an `axe`
violation is detected, instead of generating an error it will instead
mark the test as `skipped` with the `axe` output as the message in the
skip output.
There is a problem with this approach, which is the same problem
identified in issue thoughtbot#7 - as soon as a single test is marked skipped or
failed, then the rest of the test is skipped. This means that if a
test has both failing application logic and failing accessibility
validation, the first of those tests to fail will be the one that is
reported. For a system test, since any interaction with the page will
trigger the accessibility tests, it is likely that the test will be
marked as skipped and the application logic failure will be hidden.
This can be solved by running the tests a second time with
`accessibility_audit_enabled = false` and comparing the results, but
that does require two runs through the test suite.
Thanks for writing this - we look forward to using it widely to help us with the new Title II regulations.
One thing that would help us move forward is to have the ability to add the gem to all of our projects, but instead of having every system test fail when it encountered an accessibility issue to instead save the failure and instead give us a report of all the accessibility issues. We could then use that for reporting to our management and tracking our progress towards closing accessibility gaps.
Ideally we'd love to have something where we set a configuration setting, like
config.capybara_accessibility_audit.reporting_only
that, when run would give us output something likeThe text was updated successfully, but these errors were encountered: