Capybara and formaction
===

I have a simple form with a single 'email' field and two submit buttons.

The first button 'Next' triggers the forms default action: '/login'.
The second button 'Reset Password' has a 'formaction' element that redirect the form to a new destination: '/reset_password'.

    <button type="submit" name="login_button">Next</button>
    <button class="secondary_button" type="submit" name="reset_button" formaction="/reset_password">Reset Password</button>

The form works perfectly well, however when testing with Capybara:

    click_button "Reset Password"

it triggers the form's default action and not the correct action. I've confirmed the default action is being triggered with:

    save_and_show_page

It's definitely triggering the correct button but seems to be ignoring the 'formaction'.

Any ideas?

