Skip to content

Latest commit

 

History

History
 
 

cypress

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Start The Runner

Cypress opens a small app called "Cypress" and Chrome. You start this with the command npm run test:e2e. This is separate app then the Chrome you normally use, which is confusing.

In the Cypress app, you should se a list of tests, you can click one to launch it in Chrome or you can click the "Run All Specs" button to run all of the tests.

Run Tests Individually With Test Runner

  • Start local dev environment.
    • See main readme
  • Start test runner
    • See main readme
    • TL;DR composer wp:start
  • Choose a test suite to run from Cypress menu

Performing A Test Run

A test run in Cypress records -- using video and screenshots -- a run of all test specs. You can watch the videos, they are in cypress/videos. The videos and screenshots directories should be git ignored. We use the Cypress.io service to record these in CI.

Runner Not Working?

  • Cypress gets 404s for all pages?
    • Did you start the development environment? composer wp:start
    • Are you trying to use your own URL? You need to modify cypress.json's env, but then you will break it for everyone, please use the provided environment.
  • Error in Cypress' Chrome Whoops, we can't run your tests. This browser was not launched through Cypress. Tests cannot run.

How To Add A Test