Cypress - The Bad Practices Workshop
summary
Covers concrete anti‑patterns in Cypress: hard waits and cy.wait() overuse, brittle selectors and misplaced page‑object patterns, misuse of lets instead of Cypress aliases, and pipeline hacks that mask flakiness. Shows use of cy.intercept and CI workarounds, and a pragmatic data‑generation build using cy.task to persist test fixtures across runs (works but creates tightly coupled specs and high maintenance). Poll result: 36 votes favor “testing through the UI instead of APIs,” and guidance is to document choices, plan recovery, and prefer APIs or a dedicated test data generator.
AI-written summary · about
chapters (13)
- 0:00Introduction by Fritz and Paul
- 1:05Speaker introductions
- 3:10Favorite bad practices
- 6:01Reasons for bad practices
- 7:49How bad practices emerge
- 9:13Cypress knowledge gaps
- 11:20Context over dogma
- 13:50Legacy code examples
- 15:13Low-code app workaround
- 17:20E-commerce test data generation
- 26:10Audience poll results
- 28:00Key takeaways and advice
- 29:22Importance of communication
