~/talk

Gaining Confidence with Cypress Tests

Talkat Craft Conference 2021 · 2021-06-02..06-04· [testing, javascript]
slides:none on file

Shows how to use Cypress + TypeScript to write fast browser integration tests that actually wait for requests instead of sleeping, with runnable code and slides on robrich.org and GitHub. Demonstrates npx cypress open, creating TypeScript custom commands (toDoAdd, toDoComplete), using cy.intercept with fixture to stub Hacker News responses, handling hidden buttons with force: true, running in Chrome/Electron, parallel CI runs, occasional demo hiccups but most tests run green and catch regressions like http→https.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45Talk introduction
  3. 3:33Test types and context
  4. 7:02End-to-end tools comparison
  5. 9:07Cypress IDE setup
  6. 11:40Debugging tests
  7. 12:01Cypress project structure
  8. 13:24Basic test example
  9. 15:11Element interactions
  10. 16:57Marking to-dos done
  11. 18:42Deleting to-dos
  12. 19:45Custom commands
  13. 23:10Live API testing
  14. 25:40Best practices
  15. 27:03Login flow optimization
  16. 28:06Cypress benefits
  17. 28:47Q&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.