Skip to content

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/Accessibility-Automation

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
  5. Install Cypress-Axe from here

🛠️ Running the project:

  1. Download the project from GitHub
    • Option 1: git clone https://github.com/fugazi/Accessibility-Automation
    • Option 2: Download it as a Zip file and extract it
  2. CD into the Accessibility-Automation 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.cy.js into folder cypress\e2e
  • Cypress project Checkpoint Hook: accessibility-test-hook.cy.js into folder cypress\e2e
  • Cypress project Checkpoint Rules: accessibility-test-rules.cy.js into folder cypress\e2e
  • 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