~/talk

Documenting application behaviours with E2E tests

Talkat HolyJS Piter 2019 · 2019-05-24..05-25· [testing, javascript]
slides:none on file

Claims that test behavior not implementation is the guiding principle, and demonstrates using Cypress commands and retries to write reliable E2E specs against a TodoMVC app. Shows concrete steps: reinitialise the backend from the browser, stub XHRs, record DOM snapshots, share class-name constants with the app, and use page objects as executable docs. Tests run inside the Cypress runner with TypeScript, most pass and failures are debuggable, and the suite serves as living documentation rather than brittle implementation checks.

AI-written summary · about

  1. 0:00Intro
  2. 0:47Test behaviour not implementation
  3. 1:34Test purpose
  4. 1:54User interface
  5. 2:31Cypress
  6. 3:57Demo
  7. 10:44Example application
  8. 11:42Starting tests
  9. 14:59Page objects
  10. 15:55Behavior vs implementation spec
  11. 17:09Converting spec into tests
  12. 19:09Debugging
  13. 19:44New introduced
  14. 22:39Item behaviour
  15. 25:04Testing state resistance
  16. 25:44Editing items
  17. 27:08Testing
  18. 32:04ToggleAll
  19. 35:37Counter
  20. 37:48ClearCompleted
  21. 39:55Console
  22. 47:11Sharing code
  23. 49:37Interview
~/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.