1.0.1 • Published 2 years ago
cypress-hover v1.0.1
cypress-hover 🛸
Enable hover capabilities for Cypress 🛸 with zero dependencies! 💯
Installation
npm install cypress-hover
Usage
cy.get("#popover")
.hover()
.within(() => {
cy.get(".contents").contains("Hello world!");
})
// optionally, we can stop hovering over the element
.clearHover();
Gotchas
This only works with one element at a time, consider using id
s or .first() / .eq(x)
in Cypress.