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
3.5.0 Input select-on-focus no longer working #5456
Comments
@wKovacs64 thanks, I'm able to reproduce and working on getting a fix in for the next patch version |
Great, thanks @bkucera |
The code for this is done in cypress-io/cypress#5496, but has yet to be released. |
1 similar comment
The code for this is done in cypress-io/cypress#5496, but has yet to be released. |
Released in |
Current behavior:
Cypress 3.5.0 is no longer behaving the same way as executing outside of Cypress with regards to an
input
with anonFocus
handler implemented ase => e.target.select()
(select-on-focus behavior). It does not appear to select the text (theonFocus
handler is called, though). The application code has not changed and works "in real life" but fails in Cypress. This worked in Cypress 3.4.1.Desired behavior:
The behavior should be consistent with running outside of Cypress, as it was in previous versions.
Steps to reproduce: (app code and test code)
App code:
Test code:
Reproduction repository:
https://github.com/wKovacs64/cypress-350-select-on-focus
Versions
Cypress 3.5.0
Windows 10, Linux (Circle CI)
Chrome 78, Electron 73
The text was updated successfully, but these errors were encountered: