Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not allow more than 1 form to submit on .submit() command #41

Closed
jennifer-shehane opened this issue Jun 8, 2015 · 1 comment
Closed
Labels
type: bug type: unexpected behavior User expected result, but got another

Comments

@jennifer-shehane
Copy link
Member

If I have more than 1 form in the DOM and write:

cy.get("form").submit()

It will issue a form submit to all forms in the DOM. This is contrary to what would actually happen during user interaction.

Recommendation:

  • Throw an error if there is more than 1 subject for .submit() command.
@jennifer-shehane jennifer-shehane added type: bug type: unexpected behavior User expected result, but got another labels Jun 8, 2015
@brian-mann
Copy link
Member

brian-mann commented Jun 9, 2015

Fixed in 0.6.11.

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Dec 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug type: unexpected behavior User expected result, but got another
Projects
None yet
Development

No branches or pull requests

2 participants