~/talk

Teaching Capybara Testing - An Illustrated Adventure

Talkat RailsConf 2023 · 2023-04-24..04-26· [testing, ruby-on-rails]
slides:none on file

Shows how end-to-end specs actually look and run: config a Selenium Chrome driver with an env var to toggle headless, use binding.irb to interactively discover selectors, and write a registration/login spec plus a user-joins-group flow against a toy RailsConf 2023 app. Emphasizes accessibility first so tests use role→label→placeholder→text queries, demonstrates dealing with time zones and flaky UI, and reports that after a full restyle the critical flows still pass rather than breaking. App demo is illustrative not production ready.

AI-written summary · about

  1. 0:00Capybara testing adventure
  2. 2:10Testing types and end-to-end
  3. 5:15First Capybara end-to-end test
  4. 13:46Testing user flows like registration
  5. 15:10Modeling data for group joining
  6. 18:06Writing expectations and flakiness
  7. 21:22Preventing brittle Capybara tests
  8. 28:23Summary and resources
~/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.