Skip to content

jaxfellow/automatic-A11y

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

automatic-A11y

Code used in Cecilie's Course Automatic Accessibility Testing for All Slides: https://docs.google.com/presentation/d/1-KI2xtE9_PpKIKh-YOoZbppbQQsGfOll2AKm0WtTlUI/edit?usp=sharing

Resources

  • Git Windows: Git for Windows Mac or Unix: do nothing, git’s already installed

  • Code editor. I will use Visual Studio Code, feel free to use what https://code.visualstudio.com/

Getting started

  • Download and install Node.js. Instructions here: https://nodejs.org/
  • Clone project from Github: git clone https://github.com/anneceh/automatic-A11y/
  • cd into the project catalog: cd automatic-A11y
  • cd into the app catalog: cd a11y-app
  • Install dependencies with npm install

Part 1 - Semi-automatic testing with Google lighthouse

  • Open Chrome or Edge and go to a web page of choice
  • Open developer tools Windows: Ctrl + Shift + I Mac: Command + Option + I
  • Select Accessibility and generate report
  • Answer the following:
  • What is the accessibility score?
  • What kind of errors did the audit find?
  • What kind of errors did the audit not find?

Part 2 - Unit Testing with Jest-Axe

If you’re unable to get the project up and running, use the code pen instead: https://codepen.io/anneceh/pen/LJzbry

Exercise 2.1 - Run the example

  • cd into the app catalog: cd a11y-app
  • start the app with npm start
  • Run the tests with npm test
  • How many errors are found?

Exercise 2.2 - Change the configuration

Exercise 2.3 - Fix the errors

  • Change the configuration back and fix the errors instead of ignoring them

Part 3 - Integration Tests with Cypress

Exercise 3.1 - Run the example

  • cd into the app catalog: cd a11y-app
  • Open cypress with npx cypress open

Exercise 3.2 - Change the configuration

Exercise 3.3 Write your own test

  • Write your own test where you check accessibility, add a couple of todos and then check accessibility again

About

Code used in Cecilie's Course Automatic Accessibility Testing for All

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 72.0%
  • HTML 18.2%
  • CSS 9.8%