~/talk

Componentizing end-to-end tests

Talkat JSConf US 2019 · 2019-08-12..08-14· [frontend-architecture, testing]
links:none on file
slides:none on file

Claim: component libraries export component helpers that hide DOM selectors so end-to-end tests become easier, faster and more reliable. Concrete tools and patterns: adapter for Cypress testing library adapter, a scroll helper for virtual lists (demo selects across 8,000 items), a small pipe utility and publishing helpers to a local NPM repo with CI. Implementation composes across library layers, CI validates helpers, and two years of use show failures come from app bugs not selector drift.

AI-written summary · about

  1. 0:00Intro
  2. 0:20icebreaker questions
  3. 0:53writing tests is hard
  4. 1:59building complex applications
  5. 3:02selector options
  6. 4:05collocated selectors
  7. 7:11complex app interactions
  8. 7:59React Testing Library
  9. 9:36ComponentHelper Functions
  10. 11:14Portal Content
  11. 13:46Demo
~/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.