Test your Drupal website with Cypress
If you don’t include tests in your Drupal development, chances are it’s because you think it adds complexity and expense without benefit. Cypress is an open source tool with many benefits:
Reliably tests anything that runs in a web browser
Works on any web platform (it’s great for testing projects using front-end technologies like React)
Highly extensible
Increasingly popular
Easy to learn and implement
Protects against regression as your projects become more complex
Can make your development process more efficient
This article covers three topics to help you start testing your Drupal project using Cypress:
Installing Cypress
Writing and running basic tests using Cypress
Customizing Cypress for Drupal
Install Cypress
For the purposes of this tutorial I’m assuming that you have built a local dev environment for your Drupal project using the `drupal/recommended-project` project.…
Read More