You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vpenyazkov With how Cypress simulates clicks, it does apply both :focus and :focus-visible`. If you want a click that is more realistic to the browser behavior, you could try cypress-real-events to click. We should have closer behavior to a real user, so I'll leave this issue open.
Is there something that could prevent :focus-visible to be set by .click()? We observe quite unstable behaviour in tests which compare screenshots on CI -- the outline is not displayed on buttons from time to time.
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: