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

type('{enter}') doesn't work when only 1 input blocking implicit submission #4495

aisingoro opened this issue Jun 19, 2019 · 6 comments


Copy link

@aisingoro aisingoro commented Jun 19, 2019

Current behavior:

I've already tried:


But it doesn't work. I've also tried:




they're all right.But ENTER isn't.

Copy link

@jennifer-shehane jennifer-shehane commented Jun 21, 2019

Unfortunately we have to close this issue as there is not enough information to reproduce the problem. We have many tests that {enter} works, so we will need to know what is specific to your application that would make it not work here.

Please provide the HTML you are testing against, the error message that you are seeing, and a reproducible example that we can run locally and we will reopen the issue. 🙏

Copy link

@jodelasur jodelasur commented Jun 26, 2019

I'm also having this issue right now. I uploaded a sample system for you to check. See

The issue for me is that the submit is not firing. I'm assuming this is because of the 1st "other situation" listed in

Does not submit a form if there are multiple inputs and no submit button.

However, looking at the spec referenced,, it says (with emphasis added):

If the form has no submit button, then the implicit submission mechanism must do nothing if the form has more than one field that blocks implicit submission,

The form in the sample system has two inputs, one text and one hidden. It seems Cypress doesn't submit the form because there are multiple inputs. But per the spec, text input blocks implicit submission, but hidden doesn't. That means there's just one field that blocks implicit submission (not more than one), so the form should still submit.

I think my understanding of this is correct since browsers I've tested with (Chrome, Firefox) submits the form correctly. Also, when I add another text field to the form, that's the time when the browsers don't submit, conforming to the spec.

Hope this gets fixed.

Copy link

@jennifer-shehane jennifer-shehane commented Jun 26, 2019

oh boy.

Yes, I believe your assessment is correct. Also, yes, the form does an implicit submission manually within your example.

I've simplified the HTML example for our testing purposes as shown below - this form should submit when typing {enter} in the input of type text.

  <input type="text">
  <input type="hidden">

Copy link

@Bigdragon13th Bigdragon13th commented Jun 29, 2019

The spec is indeed very confusing 🤣

Copy link

@cypress-bot cypress-bot bot commented Jul 9, 2019

The code for this is done in cypress-io/cypress#4574, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

Copy link

@cypress-bot cypress-bot bot commented Jul 9, 2019

Released in 3.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
4 participants