~/talk

End-2-end testing without the pain

Talkat Øredev 2023 · 2023-11-08..11-10· [testing, developer-experience]
slides:none on file

Claims writing write end-to-end tests first as TDD yields a testable system, using Cypress and Playwright to stub external APIs and control the browser, yields far fewer recurring regressions, and survives big rewrites. Example: a codebase with ~6,000 unit tests but only seven end-to-end checks kept critical flows green. Built small, single-purpose UI specs, used single-purpose data attributes for selectors, reduced test size and flakiness, and reports that the approach works reliably during large refactorings.

AI-written summary · about

  1. 0:00Introduction
  2. 1:47E2E testing journey
  3. 5:01Regression problem
  4. 7:28Features vs implementation
  5. 8:54Testing pyramid
  6. 10:21Painful E2E tests
  7. 11:04TDD for design
  8. 13:32Top-down vs bottom-up
  9. 14:39Write E2E tests first
  10. 16:46Test-driven E2E benefits
  11. 17:50State management
  12. 19:33E2E tests as specs
  13. 21:45Fragile and flaky tests
  14. 26:42Choosing E2E tools
  15. 28:31Mocking external deps
  16. 29:11Test size and readability
  17. 31:23Breaking large tests
  18. 33:38Best selectors
  19. 38:24E2E in testing pyramid
  20. 39:51Summary
  21. 40:56Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.