~/talk

Cypress: Your Automated Sous Chef

Talkat Developers Summit 2021 · 2021-02-18..02-19· [testing, javascript]
slides:none on file

Cypress installs via npx cypress open and runs inside Electron or real browsers, integrates with Mocha/Chai, and uses a jQuery-like cy. API so tests wait for DOM events instead of fixed sleeps. The session builds working tests against To‑do MVC and a Hacker News PWA, intercepts APIs with fixtures, verifies rendering of 30 items, produces screenshots and video recordings, outputs JUnit XML for CI, and shows how custom commands like cy.todo_add make tests readable and robust.

AI-written summary · about

  1. 0:00Introduction to Cypress
  2. 1:06Types of frontend tests
  3. 3:30End-to-end testing tools
  4. 4:54Cypress vs Selenium
  5. 9:14Setting up Cypress
  6. 11:46Exploring Cypress IDE
  7. 15:03Cypress project structure
  8. 17:34Running tests in CI
  9. 18:17Writing first Cypress test
  10. 20:22Selecting elements in tests
  11. 21:07Adding a to-do item
  12. 23:15Marking to-dos complete
  13. 24:59Creating failing tests
  14. 27:38Debugging test failures
  15. 28:41Test reporting in Cypress
  16. 29:23Page objects and commands
  17. 31:12Building custom commands
  18. 33:20Refactoring tests with commands
  19. 35:29Testing API interactions
  20. 36:14Mocking API responses
  21. 38:00Waiting for API calls
  22. 39:07Hacker News test demo
  23. 40:11Cypress configuration options
  24. 41:37Test reporting formats
  25. 42:18Cross-browser testing
  26. 43:22Cross-domain testing
  27. 44:05Image snapshot testing
  28. 44:48Testing Electron apps
  29. 45:09Best practices for selectors
  30. 46:11Best practices for commands
  31. 46:55Optimizing authentication tests
  32. 47:36Mocking API data
  33. 48:18Summary and 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.