~/talk

Testing Vue Components with Cypress

Talkat Vueconf.US 2023 · 2023-05-24..05-26· [testing]
slides:none on file

Practical demo of Cypress component testing for Vue shows how to mount components, run seven failing specs, and fix them live. Examples include a paragraph rendering as a div, a clickable div replaced with a real button for accessibility, CSS units changed from vw to rem to meet a font-size assertion, stubbing network responses with intercept to stub Star Wars API, and removing an Emojisplosion call so the loading state appears — all tests rerun and end up green.

AI-written summary · about

  1. 0:00Intro
  2. 0:53I have 7 failing component tests
  3. 5:12What is Cypress?
  4. 9:52Ok, back to fixing components
  5. 21:28Component tests are neat!
~/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.