7.2.1 Tests for user signup

In the days before powerful web frameworks with full testing
capabilities, testing was often painful and error-prone. For example, to
test a signup page manually, we would have to visit the page in a
browser and then submit alternately invalid and valid data, verifying in
each case that the application’s behavior was correct. Moreover, we
would have to remember to repeat the process any time the application
changed. With RSpec and Capybara, we will be able to write expressive
tests to automate tasks that used to have to be done by hand.

We’ve already seen how Capybara supports an intuitive web-navigation
syntax. So far, we’ve mostly used visit to visit particular pages, but
Capybara can do a lot more, including filling in the kind of fields we
see in Figure 7.11 and clicking on the button.