~/talk

Reinforcing your blocks: A practical guide to UI component testing

Talkat LibertyJS 2019 · 2019-10-24..10-25· [frontend-architecture, testing]
links:none on file
slides:none on file

Shows how to use Storybook to render components in isolation, capture hard-to-reproduce states (loading, long lists) and publish static docs, and how addons like knobs, a11y color-blind filters, actions and docs expose props and interactions. Demonstrates automated tests with Jest + Testing Library: render, queryByText, fireEvent, and mock functions to assert visibility and that an action is called exactly once (toBeVisible, toHaveBeenCalledTimes(1)). Emphasizes making assertions user-focused and integration tests for more value.

AI-written summary · about

  1. 0:00Start
  2. 0:59Diego Hernandez
  3. 3:41Manual Testing
  4. 20:39Assertion
  5. 25:46Test Them on a Variation
  6. 26:34Mock Function
  7. 29:47Test Integrations between Components
~/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.