Mini project end to end automation testing on web https://magento.softwaretestingboard.com, with implementation Continous Integration on Github Action.
- Node.js: Cypress requires Node.js, so make sure you have it installed on your system. You can download Node.js from the official website: https://nodejs.org/
npm install cypress --save-dev
npx cypress open
- Cypress will launch its test runner in interactive mode, and you can running tests right away.
- After following the prompts until the cypress setup is finished
npm install -D cypress-xpath
Cypress automatically finds your tests located in the cypress/e2e directory and running headless on electron browser (default cypress). To run the tests, use the following command:
- Running code using default web (electron)
npx cypress run
- Running code using web (chrome)
npx cypress run --browser chrome