-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cypress sets :focus and :focus-visible after .click() #29388
Comments
@vpenyazkov With how Cypress simulates clicks, it does apply both |
@jennifer-shehane thanks for the details. Is there something that could prevent |
I can't think of anythign at the moment other that switching to using the plugin listed in my previous comment. |
Actually, cypress-real-events also adds |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
Current behavior
Cypress sets :focus and :focus-visible after .click().
Here are the styles of the button:
when the button with such styles is clicked in Cypress, the outline is visible and has dotted style with 10px size.
Desired behavior
During clicking the button gets only :focus in real browser (Chrome v124)
Test code to reproduce
Cypress Version
13.6.4
Node version
v18.16.1
Operating System
macOS 14.4.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: