Skip to content

Inconsistent behaviour for realHover #691

@martijnoele

Description

@martijnoele

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions