~/talk

Gaining Confidence with Cypress Tests

Talkat Conf42 JavaScript 2022 · on Thursday, 2022-11-17· [testing, developer-experience]
slides:none on file

Shows concrete Cypress usage: install with npm install cypress and launch the IDE with npx cypress open, run headless across Chrome/Firefox/Edge, and scaffold example specs. Builds end-to-end tests for TodoMVC and a Hacker News PWA, intercepting network calls with fixtures to assert a predictable 30-story response and also validating against the real API. Creates reusable Cypress commands with TypeScript declarations, recommends using data-cy attributes, saving auth tokens once, and running lightweight checks in production.

AI-written summary · about

  1. 0:00Cypress testing intro
  2. 2:44Getting started
  3. 3:50End-to-end tools comparison
  4. 6:58Cypress IDE
  5. 9:31Project structure
  6. 11:19Basic test
  7. 13:07Page elements interaction
  8. 15:15Custom commands
  9. 17:22Hacker News PWA testing
  10. 18:47Mocking API responses
  11. 19:50Durable tests best practices
  12. 21:16Optimizing tests
  13. 22:40Conclusion
~/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.