This is a example of Test Automation Testing for Accessibility with Cypress using Cypress-Axe and Axe-Core, developed by Douglas Urrea Ocampo using Cypress as framework. Besides I am testing a Democart homepage to practicing writing advanced tests in Cypress
- Name:
Douglas Urrea Ocampo - Country:
Colombia - City:
Medellin - E-mail:
douglas - LinkedIn: https://www.linkedin.com/in/douglasfugazi
- Contact: https://douglasfugazi.co
- Download the project from GitHub
- Option 1:
git clone https://github.com/fugazi/Cypress-Accessibility.git - Option 2: Download it as a Zip file and extract it
- Option 1:
- CD into the
Cypress Accessibilityfolder - Set up environment variable
APPLITOOLS_API_KEYwith your own API key.- Login to Applitools > Click on the Person icon > My API Key
- Option Linux/Mac:
export APPLITOOLS_API_KEY=<your_key> - Option Windows:
set APPLITOOLS_API_KEY=<your_key> - Option Manual: Open the file
applitools.config.jsand add theapiKey:''
- run
npm install - run
npx eyes-setup - run
npm test
Please see Test Automation for Accessibility for all the details.
- Cypress project Baseline:
accessibility-test.spec.jsinto foldercypress\integration - Cypress project Checkpoint Hook:
accessibility-test-hook.spec.jsinto foldercypress\integration - Cypress project Checkpoint Rules:
accessibility-test-rules.spec.jsinto foldercypress\integration - batchName:
Democart for Accessibility - appName:
Opencart - testName:
Cypress Accessibility