~/talk

Black Box Testing with RSpec and Capybara

Talkat Rocky Mountain Ruby 2015 · 2015-09-23..09-25· [testing, ruby]
links:none on file
slides:none on file

Using Capybara and RSpec with the page object pattern replaces repeated visit fill_in click lines with single page methods, extracts shared sections, and uses Ruby's forwardable to wrap Capybara elements. A practical tip uses has_no_css to avoid unnecessary wait time. The example suite shows single-line registration, no magic selectors, fewer duplicated strings, faster tests and one-place UI changes so refactoring actually works.

AI-written summary · about

  1. 0:00Intro
  2. 0:42Capybara
  3. 1:33Registration form spec
  4. 1:52Adding another spec
  5. 2:08And more specs!
  6. 3:26Page object pattern
  7. 4:25Revised spec
  8. 4:51Simplify other specs
  9. 5:17Making more page objects
  10. 5:55Page base object
  11. 6:09Other shared methods
  12. 7:09New Registration Page class Registration Pace
  13. 7:51Page sections
  14. 10:29Sharing similar sections
  15. 10:54Form implementation
  16. 11:44Real world example
  17. 13:18Tests are code
  18. 14:08Jilian Rosile Comverge
~/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.