End2End and Component Testing with Cypress
Cypress is added as a docker component cypress/inculded 10.2.0 (more info on images here).
There are two modes of running test:
-
ddev cypress-open
: opens the interactive exploratory app -
ddev cypress-run
: runs headless browser tests
Run ddev cypress-run
for all tests.
To choose specific suite of test run ddev cypress-run --spec 'test/suite/folder/*'
To choose a specific browser run ddev cypress-run --browser electron
Reference to full list of commands
Note: Before running test for a site, please make sure the ddev is started for the site (ddev start).