Asap 178 accessibility audit local #203
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

We'd like to be able to use an accessibility checker on the ASAP app. It seems like directly using the Axe tools is more popular than PA11y these days. We should implement this and get a baseline status of the app.
This PR implements a scanner that must be run locally for now. I also added a rake task to help with creating document inference fixture data.
It felt increasingly weird to have the CI tools hanging out on the surface of the python_components directory, so I moved them into a "CI" folder.
Baseline Accessibility Results
Axe currently reports 22 violations. And 3 incomplete items. The incomplete items indicate places where the scanner could not determine results. For example the scanner cannot determine contrast ratio over a gradient background. These are worth considering because they may mask severe problems. I made a really simple hex to make the results more transparent.
Here is the raw JSON.
baseline_accessibility_scan.json
I will fix as many of these as I can in a follow up ticket. This dataset will give us something to compare against.
Try running the scanner.
rails db:drop ; rails db:migrate ; rails db:setupbin/devpython_components/accessibility_scan/scripts/local_accessibility_scan.shJust running the script.
No