Current behavior:
when you type a number in an number input and then type enter, the input becomes empty and the console logs an error:
cypress_runner.js:107262 The specified value "12\n" is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?
You can see that the {enter} adds \n to the input value.
Desired behavior:
It should set the value without \n
Steps to reproduce: (app code and test code)
html:
<input type="number" id="input" />
spec code:
cy.get('#input')
.type('2')
.type('{enter}')
Versions
Cypress 3.8.0
edit: Chrome 79 with cypress run
Possibly related to #5854
Current behavior:
when you type a number in an number input and then type enter, the input becomes empty and the console logs an error:
You can see that the
{enter}adds\nto the input value.Desired behavior:
It should set the value without
\nSteps to reproduce: (app code and test code)
html:
spec code:
Versions
Cypress 3.8.0
edit: Chrome 79 with cypress run
Possibly related to #5854