~/talk

Build UI More Confident Using Component Testing

Talkat Frontmania 2022 · on Wednesday, 2022-10-05· [testing, frontend-architecture]
slides:none on file

Demonstrates using component testing in a real browser (not E2E) with Cypress (also workable in Playwright/Storybook), React Query and XState, mounting components in a memory router and mocking a custom query client to force deterministic responses. Shows an editor that sends CRDT operations and how tests assert operations sent to backend instead of UI markup, uses data-testids, CI + local pre-push runs with retries to reduce flakiness, and reports multiple editor rewrites that keep passing unchanged tests.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:04Starting with a quote
  3. 2:30Who am I and talk overview
  4. 3:11Defining confidence in code
  5. 6:02Confidence journey: Hills and valleys
  6. 8:29Example one: State machines in Minter
  7. 11:17Example two: Minter from zero to essential
  8. 15:34What is component testing?
  9. 17:40Demo one: React Query app
  10. 27:21Demo two: Minter editor tests
  11. 31:38Testing subjectivity and balance
  12. 34:53Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.