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

support {home} and {end} in type() #537

Closed
curiosity26 opened this issue Dec 30, 2020 · 0 comments · Fixed by #536
Closed

support {home} and {end} in type() #537

curiosity26 opened this issue Dec 30, 2020 · 0 comments · Fixed by #536

Comments

@curiosity26
Copy link
Contributor

  • @testing-library/user-event version: 12.6.0
  • Testing Framework and version:
    Jest 26.6.3
  • DOM Environment: 16.4.0 (from jest)

Relevant code or config

userEvent.type(getByRole('listbox'), '{home}')
userEvent.type(getByRole('listbox'), '{end}')

What you did:

userEvent.type(getByRole('listbox'), '{home}')
userEvent.type(getByRole('listbox'), '{end}')

What happened:

The input to the keyDown event was { then h then o then m then e then } and similar for {end}

Reproduction repository:

Problem description:
type doesn't support Home and End keys

Suggested solution:
Applied in fix #536

@nickmccurdy nickmccurdy linked a pull request Feb 11, 2021 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants