- Open a new Terminal window
- Run:
mkdir cypress-axe-project
- cd into that folder
cd cypress-axe-project
- Run:
npm init -y
- Run
npm i cypress cypress-axe
- Open the folder (step 2) on VSCode
- Start a terminal inside that folder (ctrl + `)
- Add the cypress-axe dependecy to the index.js file
Location: (../cypress/suppport/index.js)
import "cypress-axe";
- Run
npx cypress open
- Run
npm i -D @applitools/eyes-cypress
- Run
npx eyes-setup
- Run
export APPLITOOLS_API_KEY={yourApiKey}
- Run
npx cypress open