Basic automated suitcase for practice purposes.
- Clone the project.
npm install
There are different scripts depending on which spec file and which environment you want to run (homepage, member page, stage, production, etc)
npm run cy:prod
npm run cy:member:prod
npm run cy:qa
You can add tests to the "Smoke Test Session" adding a tag into the 'discribe' or 'it' for each one. If the test does not have the tag, will be part of the regression.
{tags: 'smoke'}
Use the following script to run the Smoke tests session:
npm run cy:prod:smoke
npm run cy:qa:smoke
There are custom commands created which are located in support/commands.js Using those commands (functions) allows us to write test in extremely simple way and avoid code duplication.
You can find the report generated on each run into /report folder, opening output.html file.