~/talk

Gaining Confidence with Cypress Tests

Talkat Reliable Web Summit 2021 · 2021-08-26..08-27· [testing, frontend-architecture]
slides:none on file

Cypress with TypeScript runs end-to-end tests inside a real browser (Electron/Chrome/Firefox/Edge; no Safari) and records screenshots and videos, runs headless, and finishes fast. Examples include TodoMVC (uses a to-do add command, uses force:true to click a hidden destroy button) and Hacker News PWA where a mocked API via cy.intercept and fixture validates rendering and a live request confirms 30 stories. Tests factor reusable fixtures, data-cy attributes, and custom commands with TypeScript declarations so the suite actually works and supports safe refactors.

AI-written summary · about

  1. 0:00Start
  2. 0:40Gaining Confidence with Cypress Tests
  3. 1:20About Me
  4. 3:26Browser Testing
  5. 4:39Tools
  6. 5:21Test Utils
  7. 5:47End-to-End Tests
  8. 6:51Selenium
  9. 7:48Cyprus
  10. 8:26Debugging
  11. 9:00Test Cafe
  12. 10:49Npm Install Cypress
  13. 14:59Cypress Json
  14. 26:30Modify a Test To Match Data
  15. 35:07Create Commands for Frequent Tasks
  16. 37:28Avoiding Constants
~/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.