1.0.1 • Published 4 years ago
cypress-hover v1.0.1
cypress-hover 🛸
Enable hover capabilities for Cypress 🛸 with zero dependencies! 💯
Installation
npm install cypress-hoverUsage
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 ids or .first() / .eq(x) in Cypress.