-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Fixes double account creation when using keyboard controls #15077
Conversation
Builds ready [61bed96]Page Load Metrics (1682 ± 49 ms)
highlights: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be crazy but pressing [ENTER]
doesn't submit the form; we may need to event type check here
This fix is working on my end on Chrome. I was able to see the double accounts being created before the fix, and then a single account being created with this fix. @darkwing what browser were you using? To confirm, was the target element the "Confirm" button after pressing tab to get to the button? I can see this could be easily mistaken since the focus state could be mistaken for the default state |
Just tested on Chrome + OSX. If I click the "Create" button, the account gets created. If click "Create account" and immediately press ENTER, nothing happens. |
Builds ready [52aa16a]
Page Load Metrics (1653 ± 28 ms)
highlights: |
This does not looks related to code changes in PR. Click event is fired only in case of mouse click. |
Echoing what @jpuri was mentioning, this PR tests navigating user flow with a keyboard and not a mouse.
This is existing behavior though would be nice to add form submit on error. After clicking "Create account", the input is in focus. This PR is testing when we hit enter when the "Create" button is in focus, and not the input in focus. You will need to tab twice to focus on the create button from the input, and then click enter to trigger the action |
@darkwing, would you be fine with a separate PR for adding submit on 'Enter' behavior? |
Builds ready [6b31b2d]
Page Load Metrics (2697 ± 133 ms)
highlights: |
Fixes: #15061
Explanation
Defined in issue
Manual Testing Steps
Follow the steps mentioned in the issue, ensure that only a single account is created when using keyboard shortcuts