-
Notifications
You must be signed in to change notification settings - Fork 255
Closed
Description
Not sure if this is a bug, or as intended, so feel free to close :)
I I just tried to do this:
await userEvent.type(screen.getByPlaceholderText('Price'), item.price);
Where price is a number. That throws the error TypeError: text.slice is not a function
running with toString() fixes that:
await userEvent.type(screen.getByPlaceholderText('Price'), item.price.toString());
Since the browser would coerce to a string if we were setting a value, should this too? Or should I just always coerce it myself?
smakoshcalebeby
Metadata
Metadata
Assignees
Labels
No labels