dmtrKovalenko / cypress-real-events

Fire native system events from Cypress.
MIT License
738 stars 67 forks source link

Inconsistent behaviour for realHover #691

Open martijnoele opened 1 month ago

martijnoele commented 1 month ago

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