Skip to content

Latest commit

 

History

History
 
 

blogs__element-coverage

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Element coverage

Code for blog post Element coverage

Shows how to

  • overwrite several built-in Cypress commands in cypress/support/commands.js to keep track of elements the test interacts with
  • draw elements after the tests finish

Elements

Development

To make sure the server starts and builds the app before the tests start on CI, wait-on utility is used to check on local port 3000 before running Cypress tests. See the NPM scripts in the package.json file.