~/talk

Gaining Confidence with Cypress Tests

slides:none on file

Shows a concrete Cypress workflow: npm install then npx cypress open, the Electron IDE runs tests and records videos, and Cypress runs faster than Selenium because it’s a browser plugin not a remote webdriver. Uses TypeScript with a cypress.json, custom commands (e.g. toDoAdd in commands.ts and commands.d.ts), fixtures and cy.intercept to mock Hacker News responses, and data-cy attributes to make selectors durable; notes forced clicks (force: true) for hidden destroy buttons and Chromium/Firefox support but no Safari yet.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:23What is Cypress
  3. 6:00Testing tools comparison
  4. 10:58Getting started with Cypress
  5. 14:03Cypress IDE demo
  6. 16:35Writing Cypress tests
  7. 21:32Advanced interactions
  8. 23:17Custom commands
  9. 25:23Mocking API responses
  10. 27:29Best practices
  11. 28:55Fixtures and mocking
  12. 30:38When to use Cypress
~/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.