Skip to content
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

Inconsistent behaviour for realHover #691

Open
martijnoele opened this issue Jun 25, 2024 · 1 comment
Open

Inconsistent behaviour for realHover #691

martijnoele opened this issue Jun 25, 2024 · 1 comment

Comments

@martijnoele
Copy link

martijnoele commented Jun 25, 2024

My Cypress test using realHover is behaving inconsistently. It fails about 2-3 times in 10 test runs. I tried adding an additional cy.wait(..) after .realHover(), but this doesn't change the test results.

Test:

cy.get('.pill').eq(0)
    .should('have.css', 'background-color', 'rgba(255, 255, 255, 0.05)')
    .realHover()
    .should('have.css', 'background-color', 'rgba(255, 255, 255, 0.1)')

Result:
image

Next run:
image

Versions:
Browser: Electron v118
Cypress version: 3.12.0
Cypress-real-events version: 1.13.0

@viniciusbsneto
Copy link

I've been having some flaky tests due to the realHover inconsistent behavior as well. My alternative was to use trigger('mouseover') instead. It seems to have solved the flakyness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants