~/talk

Lessons from E2E Testing Web Applications with Avindra Fernando

Talkat DjangoCon US 2024 · 2024-09-22..09-27· [testing]
slides:none on file

Hands-on lessons about end-to-end testing with Cypress and Playwright: avoid fixed sleeps and use network-aware waits like intercept/waitForRequest, prefer API login and session caching over repeated UI logins, use aliases or async/await correctly (Cypress commands are not regular async), keep tests isolated (use beforeEach for shared setup), mock slow endpoints with fixtures or stubs but hit live endpoints for critical smoke flows, favor accessible selectors/testing-library patterns, and keep dependencies current.

AI-written summary · about

  1. 0:00E2E testing challenges
  2. 5:23Why testing matters
  3. 8:54Cypress & Playwright lessons
  4. 17:08JavaScript async nature
  5. 24:00Custom commands for efficiency
  6. 26:09Avoid UI-only testing
  7. 28:56Reliable test selectors
  8. 33:49Isolating tests
  9. 37:24Mocking network issues
  10. 40:18Real vs mocked APIs
  11. 41:02Happy and error paths
  12. 41:46Keep tools updated
  13. 42:08Closing & Q&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.