How can I test multistep forms with Capybara & Minitest?
问题 I have a single page Sinatra app that has a multistep form/wizard interface. If I want to test the form with Capybara, will need to repeat all the steps for each test? I'm hoping to avoid something like this: it "visits the home page" do vist "/" page.should have_content('foo') end it "clicks the first button" do vist "/" page.should have_content('foo') button_click("Next") end it "clicks the second button" do vist "/" page.should have_content('foo') button_click("Next") page.should_have