~/talk

Streamlining Cypress Test Generation with AI

Talkat CypressConf 2024 · 2024-10-22..10-23· [ai-assisted-development, testing]
links:none on file
slides:none on file

Shows generating Cypress tests with ChatGPT that start from pasted HTML and end as a TypeScript suite with centralized selectors file, a signin fixture, and a custom command signin that fills and submits the form. Tests include six generated scenarios (validation, submission, remember-me, mocked API failures), use CI intercept wait instead of arbitrary timeouts, and mock responses to verify error and success flows. Code needs small tweaks but the generated scaffolding and architecture are production‑ready.

AI-written summary · about

  1. 0:00Introduction to AI and tools
  2. 1:26Fundamentals of AI prompts
  3. 2:58Initiating test generation
  4. 5:03Refining Cypress test scripts
  5. 6:32Optimizing with TypeScript
  6. 7:41Structuring test selectors
  7. 8:37Implementing dynamic fixtures
  8. 9:49Building custom commands
  9. 10:56Advanced network simulation
  10. 12:07Generating the final test suite
  11. 14:06Recap and future outlook
  12. 16:13Q&A session
~/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.