Sample Cypress automation suite for VoucherCodes
- Run
npm install
to install all required packages - Install cucumber json formatter somewhere that is accessible on your path - GitHub - only needed for HTML report generation
Cypress running headless chrome triggers the websites Recaptcha script. I have added a user agent to the script in order to allow headless runs. However, some of the images and elements do not load correctly so headed is the default execution mode.
Command | Description |
---|---|
npm run cypress-open |
Opens the Cypress GUI to configure and run tests |
npm run cypress-run |
Opens a chrome window and executes all available tests |
npm run cypress-pass |
Opens a chrome window and executes passing test |
npm run cypress-fail |
Opens a chrome window and executes delibrate failing test |
- Generate device metadata automatically for HTML report
- Allow passing of tags into command line
- Install JS standard linter
- Find a cucumber html reporter that doesn't require an external install
- Decide which JS bundler ie. import vs require