1.0.1 • Published 2 years ago

cypress-hover v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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 ids or .first() / .eq(x) in Cypress.

Happy Testing!