Skip to content

BinaryJava/VC-cypress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VC Cypress

Sample Cypress automation suite for VoucherCodes

Prerequisities

  1. Run npm install to install all required packages
  2. Install cucumber json formatter somewhere that is accessible on your path - GitHub - only needed for HTML report generation

Please note

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.

Commands

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

Improvements

  1. Generate device metadata automatically for HTML report
  2. Allow passing of tags into command line
  3. Install JS standard linter
  4. Find a cucumber html reporter that doesn't require an external install
  5. Decide which JS bundler ie. import vs require

About

Sample Cypress automation suite for VoucherCodes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published