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
Cypress cannot currently simulate native events that would trigger CSS psuedo styles. The element is receiving focus and focus events, but any styling with the :focus psuedo selector will not take effect when run in Cypress.
click()/focus()ing on a tabindex-focusable element should make it the active/focused element, and hence activate the CSS rule containing
:focus
.There exists a few other issues with related behaviour, like #4039, but I haven't been able to find anything else concrete.
Current behavior:
The element does not get focus in:
The element does get focus in:
Desired behavior:
The element should always get focus regardless of GUI/headless mode or whether the GUI window has OS focus or not.
Test code to reproduce
test.js:
index.html:
Versions
Cypress 4.7.0 on Linux
Chromium 80
Electron 80
Firefox 74
The text was updated successfully, but these errors were encountered: