Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

This is a example of Test Automation Testing for Accessibility using Cypress-Axe and Axe-Core, developed by Douglas Urrea Ocampo using Cypress as end-to-end framework.

License

Notifications You must be signed in to change notification settings

fugazi/Cypress-Accessibility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👋 Test Automation for Accessibility with Cypress

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

🏠 Tester details

✨ Pre-requisites:

  1. Install Node.js from here
  2. Install npm from here
  3. Install git from here
  4. Install Cypress from here

🛠️ Running the project:

  1. 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
  2. CD into the Cypress Accessibility folder
  3. Set up environment variable APPLITOOLS_API_KEY with 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.js and add the apiKey:''
  4. run npm install
  5. run npx eyes-setup
  6. run npm test

✏️ Step by Step tutorial

Please see Test Automation for Accessibility for all the details.

🚴 Project configuration

  • Cypress project Baseline: accessibility-test.spec.js into folder cypress\integration
  • Cypress project Checkpoint Hook: accessibility-test-hook.spec.js into folder cypress\integration
  • Cypress project Checkpoint Rules: accessibility-test-rules.spec.js into folder cypress\integration
  • batchName: Democart for Accessibility
  • appName: Opencart
  • testName: Cypress Accessibility

About

This is a example of Test Automation Testing for Accessibility using Cypress-Axe and Axe-Core, developed by Douglas Urrea Ocampo using Cypress as end-to-end framework.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published