Testing as a Story: The Legend of Mark
summary
Tests become executable documentation: clear titles that read like requirements, explicit inputs (e.g., a free user with usage count 100 instead of seed index 4), and direct assertions that prove why a result happens. Use Cypress intercepts to mock a 401 expired token during checkout, verify cart preservation and redirect, and prefer meaningful selectors like data-cy over “grid item 3.” Hidden setup costs teams ~45 minutes per mystery to reverse engineer; explicit state and readable selectors stop that.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 3:09The legend of Mark
- 6:00Black box tests are terrible
- 8:52Tests should read like a story
- 9:34Clear initial state in tests
- 13:11Documenting network interactions
- 15:58Direct assertions and selectors
- 17:22Recap of narrative testing
- 18:30Tests as living documentation
- 19:57Summary and takeaways
- 20:18Q&A session
