~/talk

Gaining Confidence with Cypress Tests

Talkat React Advanced 2021 · 2021-10-22..10-23· [testing, developer-experience]
slides:none on file

Shows concrete, working Cypress examples: scaffolded a TypeScript project, runs with npx cypress open, discovers Electron/Chrome/Firefox/Edge and runs headless across three browsers via npm scripts. Demonstrates auto-waiting (no awaits), takes screenshots and video, debugs tests in DevTools, and uses cy.intercept with fixture to stub Hacker News while also validating the real API (assumes 30+ stories). Builds reusable data-cy selectors and custom commands, forces clicks on hidden buttons with force:true, and uses token-backed login to avoid logging in on every test.

AI-written summary · about

  1. 0:00Start
  2. 0:55About Me
  3. 1:48Gaining Confidence with Cypress Test
  4. 2:02Typescript Build
  5. 3:03Browser Testing
  6. 5:27Test Cafe
  7. 6:24Npm Install of Cypress
  8. 10:05Tests in Typescript
  9. 11:49Hello World Test
  10. 16:24Network Interactions
  11. 19:32Best Practices Associated with Cyprus
  12. 20:21Are You Leaking Your Test Content into Production
  13. 21:02Commands
  14. 21:19Avoid Logging In
~/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.