title: Capybara::ElementNotFound: Unable to find button "Log in" that is not disabled
body: <p>I'm running an acceptance test that includes logging in via /users/sign_in.</p>
  
  <p><strong>How do I set up the test so I can "click" the submit button within a Rspec Capybara test?</strong></p>
  
  <p>Seems that Devise disables the Login submit button and runs javascript to make things work.</p>
  
  <pre><code>&lt;%= f.submit "Log in" %&gt; 
  </code></pre>
  
  <p>produces:</p>
  
  <pre><code> &lt;input type="submit" name="commit" value="Log In" tabindex="4" data-disable-with="Log In" /&gt;
  </code></pre>
  
  <p>The data-disable-with, which devise needs, seems to be breaking capybara testing. I would just like to click the button as per my acceptance test below.</p>
  
  <pre><code>it "logs in and shows success message" do
    visit '/users/sign_in'
    login_as(user, :scope =&gt; :user)
    within(".login-details") do
      fill_in 'Email', with: user.email
      fill_in 'Password', with: 'fakepassword'
    end
    click_button 'Log in'
    expect(page).to have_content 'Success'
  end
  </code></pre>
  
  <p>Is producing:</p>
  
  <pre><code>Capybara::ElementNotFound:  Unable to find button "Log in" that is not disabled
  </code></pre>
  
  <p>Note: I have multiple pages that logging in can send a user to, this example is the simplest test that reveals this bug. So no my goal is not to 'make sure devise works', incase you were wondering 'why do they need this?'</p>