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

userEvent.type doesn't work with numbers that have exponents #540

Closed
martin-watts opened this issue Jan 7, 2021 · 1 comment
Closed

Comments

@martin-watts
Copy link

martin-watts commented Jan 7, 2021

  • @testing-library/user-event version: 12.6.0

Relevant code or config

I made a codesandbox.io to replicate the issue: https://codesandbox.io/s/usereventtype-on-number-input-cgc13

What you did: Try to use userEvent.type to type a number that contains an exponent.

What happened: You only end up with the exponent in the input, because the value of the field changes to '' as soon as e is 'typed'

Reproduction repository: (See the codesandbox above)

Problem description: userEvent.type doesn't handle numbers with exponents

Suggested solution: Make this a test case for the userEvent.type re-work (#521)

@ph-fritsche
Copy link
Member

Resolved in v13.0.0 🚀

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

No branches or pull requests

2 participants