Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Looking to Test Decoupled Sites? Get Ready to Be Impressed with Cypress!

Looking to Test Decoupled Sites? Get Ready to Be Impressed with Cypress!

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:

* https://github.com/mediacurrent/gatsby-drupal-rain
* https://bitbucket.org/mediacurrent/ci-tests

Presented at Concord Software Developers

Mark Shropshire

May 11, 2023
Tweet

More Decks by Mark Shropshire

Other Decks in Technology

Transcript

  1. Looking to Test Decoupled Sites? Get Ready to Be Impressed

    with Cypress! 05/11/2023 PREPARED FOR: Concord Software Developers Meetup Concord Software Developers
  2. Your Presenter ABOUT US – 2 Mark Shropshire Senior Technical

    Director Mediacurrent Mark Shropshire “shrop” is an active public speaker, podcaster, and local tech meetup organizer focusing on web and application development. As a Senior Technical Director at Mediacurrent, he supports team success through coaching, mentorship, and technical leadership. Shrop is a creative leader who has a heart for helping individuals be their best while working with teams delivering best-in-class software projects built with open source technologies.
  3. 5 Decoupled Architecture Example 5 API User-Facing Website Images Campus

    Alerts Files Send Emails for News Publications, etc.
  4. 7 “Fast, easy and reliable testing for anything that runs

    in a browser.” WHAT’S CYPRESS? – • Open Source + optional SaaS products • Fast End-to-end testing solution for browsers • All-in-one solution • For any frontend framework • Includes modern testing features you expect and more • Designed for developer and QA teams • Not Selenium-based • All tests written in JavaScript 7
  5. 8 Features WHAT’S CYPRESS? – 8 • Time Travel •

    Debuggability • Automatic Waiting • Spies, Stubs, and Clocks • Network Traffic Control • Consistent Results • Screenshots and Videos • Cross browser Testing Image credit: Cypress documentation