Decoupled Drupal is the realization of Drupal as a content hub for frontend websites and web applications. Automated testing is critical to the success of decoupled systems due to the complexities of the overall architecture. In addition, the coverage provided by automated testing allows teams to focus on developing and releasing new features rather than fixing bugs that have made it into production.
This session will introduce attendees to the beautiful world of Cypress, a robust JavaScript end-to-end testing framework. Below are some of the advantages you can expect to benefit from when using Cypress to test your Decoupled solutions:
* End-to-end testing for Drupal and decoupled frontends
* Leverage JavaScript for all testing development
* Excellent developer experience
* Automate testing with continuous integration
While all attendees are guaranteed to learn something during this session, it is helpful for attendees to have some basic understanding of decoupled Drupal architecture and development.
At the end of this session, attendees will be able to:
* Get started with Cypress, integrating it into their existing and new applications.
* Summarize the benefits of leveraging Cypress for automated testing in decoupled architectures.
* Focus efforts on the most essential tests.
Demo code repos:
* Daggerhart: https://github.com/daggerhartlab/cypress-drupal
* Shrop: https://github.com/shrop/gatsby-drupal-rain
* Mediacurrent: https://bitbucket.org/mediacurrent/ci-tests/pull-requests/45
Additional resources:
* https://docs.cypress.io/guides/overview/why-cypress
* https://github.com/cypress-io/cypress-example-recipes
* https://github.com/cypress-io/cypress-realworld-app
Presented at Florida Drupalcamp 2023 with Jonathan Daggerhart