Prerequisite: Install Node.js (only once)
git clone [repository-url]cd [project-folder]npm installCreate a cypress.env.json file in the root folder with the following structure:
{
"standardUserName": "",
"lockedUserName": "",
"problemUserName": "",
"performanceGlitchUserName": "",
"errorUserName": "",
"visualUserName": "",
"password": "",
"invalid_password": "",
"invalid_username": "",
"dev": {
"url": "",
"base_page": ""
}
}npm run test:chromeNote: Passing
:headlesswill force the browser to be hidden. To see more flags to run automation with, check the official Cypress CLI documentation.
npm run test:debugConfiguration options can be set in:
- cypress.config.js - Main configuration file
- cypress.env.json - Environment variables (create from point 4)