In a World Full of Bugs, Be a Deadpool: Cypress & Design Principles Unleashed
summary
Hands-on recipe for making Cypress end-to-end suites less flaky: a downloadable repo (GSanchezM/CypressConf2025) shows proxy-based locators that pick desktop vs responsive selectors, a tiny action registry to register one-action-per-class, strategy objects for menu selection, a facade to enforce the Law of Demeter, and Pino logger instead of console.log. Claims: fewer duplicate locators, easier CI runs, and clearer tests; demo shows reusable common libraries, screenplay-style tasks/validations, and gradual adoption works in legacy projects.
AI-written summary · about
chapters (20)
- 0:00Introduction and speaker intro
- 1:16Design principles overview
- 2:00SOLID principles deep dive
- 5:14Single responsibility principle
- 6:59Open close principle
- 9:27Liskov substitution principle
- 11:56Interface segregation principle
- 14:09Dependency inversion principle
- 16:15DRY and KISS principles
- 19:08YAGNI principle
- 23:09Law of Demeter
- 25:42Cypress project structure
- 28:57Locator patterns in Cypress
- 31:44Common classes and reusable code
- 33:12Action classes and Open Close
- 34:18Strategy pattern with Liskov
- 36:06Tasks and validations separation
- 38:36Test case simplicity and JAGNI
- 40:23Facade pattern and Law of Demeter
- 41:49Q&A session
