Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add accessibility tests #84

Merged
merged 12 commits into from
Apr 14, 2023
Merged

Add accessibility tests #84

merged 12 commits into from
Apr 14, 2023

Conversation

meduzen
Copy link
Owner

@meduzen meduzen commented Apr 11, 2023

The automated accessibility tests can run locally or in a GitHub action.

When running in a GitHub action, their results are available as “artifact” (the file attachment in the summary of a GitHub action): the archive contains a HTML file with all the test suites. By opening the accessibility one in a browser and looking into the “attachment”, you get the HTML report dedicated to accessibility issues (as well as a JSON file).

  • Things are running.
  • WCAG AA violations are in their own test suites instead of being grouped will all other axe-core tags.
  • The explainer paragraph is documented at README.md level (or anywhere appropriate in addition to this PR).

@meduzen meduzen added the ci Continuous integration label Apr 11, 2023
@meduzen meduzen self-assigned this Apr 11, 2023
@meduzen meduzen marked this pull request as ready for review April 13, 2023 19:56
@what-the-diff
Copy link

what-the-diff bot commented Apr 13, 2023

PR Summary

  • Add accessibility tests
    Enhance product by including accessibility tests to ensure a more inclusive user experience.
  • Fix gitignore
    Update the file to ignore test results folder, keeping the working directory clean.
  • Update and add dependencies
    Upgrade existing dependencies (sass, axe-html-reporter) and introduce new ones (@axe-core/playwright) for an improved workflow.
  • Configure Playwright for HTML reports
    Automatic generation of JSON and HTML accessibility reports in the tests/results directory, easily accessible for both humans and machines. The JSON report is attached to GitHub Actions workflow logs, while the HTML report can be viewed locally or uploaded to external hosting if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant