End-to-end Testing with Cypress Series: 06 DRY (Don’t Repeat Yourself) @TestDouble
End-to-end Testing with Cypress Series: 06 DRY (Don’t Repeat Yourself)  @TestDouble
Uploaded March 2022 | Updated September 2026, 2 weeks ago
In this video, learn about the DRY (Don’t Repeat Yourself) principle and how it can affect end-to-end tests. After watching this video, you will be able to create reusable helpers for data setup in your own Cypress end-to-end tests.

Chapters
00:00 Intro
00:09 Recap of previous video
00:20 Learning goals for this video
00:31 What is the DRY principle (Don’t Repeat Yourself)
00:46 Problems with updating duplicated code in multiple places
00:58 Using code abstractions to reduce the amount of duplication
01:09 How does code duplication lead to issues in end-to-end tests
01:28 Reminder instructions for running demo app and Cypress test suite
01:40 How to identify the duplicated code in the current Cypress end-to-end tests
01:55 How to create a reusable helper function for end-to-end test setup code
02:09 How to replace duplicated test setup with the reusable helper function
02:17 Save file to verify Cypress end-to-end tests still pass
02:29 Recapping what you learned
02:46 Conclusion and next video teaser

Find out more about Test Double at link.testdouble.com/more-info
End-to-end Testing with Cypress Series: 06 DRY (Don’t Repeat Yourself)Code you dont touch doesnt really break—what happens when you touch it?Parcel a First Look at Creating Your Production BuildRuby Kaigi 2023 - Aaron Patterson InterviewWhy taste and judgment is important in agentic codingPlease dont mock me (Justin Searls)How to Scratch an Itch (Justin Searls)Surgical Refactors (Justin Searls)When developer tickets become history booksWhy developers should detach from their codeThe Garmin SDK membership sticker shockWhen software test coverage goes wrong
Test Double |

End-to-end Testing with Cypress Series: 06 DRY (Don’t Repeat Yourself)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER