title: Rails: Rspec + Capybara + Remote form?
body: <p>I have a quite big rails application whose main view consists of a complex, deeply nested form that is edited by different users along a predefined process flow (user1 inputs some info, user2 some more etc.).</p>
  
  <p>I wrote a very long test using Rspec + Capybara in order to test the whole process, which worked fine until I switched to using a remote form (by setting remote: true).</p>
  
  <p>At this point, I would need to switch between using a js driver and a regular one in order to test different things within the same view (js when submitting, regular driver for everything else), but I cannot seem to find any example of how to do this. </p>
  
  <p>The main issue is all the testing documentation I found assumes you can run separate tests, each with its own driver, just by setting js: true and doing some other changes, but my issue is I need everything to happen within the same test as the sequence of events is key.</p>
  
  <p>Any suggestion would be highly appreciated.</p>