-
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
How to test styles changes on hover with cypress #7952
Comments
@Hamidrezana How are the hover styles applied, via JavaScript, listening to the |
@jennifer-shehane Tnx for reply. I mean now we can't test pseudo class in css? |
@Hamidrezana No, there isn't a way to do this in Cypress currently. |
@Hamidrezana you can have a look on "cypress-real-events" |
I want to test styles when hover on element but it doesn't work:
This is my test code:
but the
background-color
value is what is before hover.This is cypress error:
expected '<tr>' to have CSS property 'background-color' with the value 'rgb(242, 242, 242)', but the value was 'rgba(0, 0, 0, 0)'
The text was updated successfully, but these errors were encountered: