Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cypress-real-events

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-real-events

Real native events for cypress. Dispatched via CDP.

  • 1.7.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
916K
increased by11.72%
Maintainers
1
Weekly downloads
 
Created

What is cypress-real-events?

The cypress-real-events package provides a set of commands to simulate real user interactions in Cypress tests. This includes actions like clicking, typing, and hovering, which are more realistic compared to the default Cypress commands.

What are cypress-real-events's main functionalities?

Real Click

Simulates a real user click on a button element. This is more accurate than the default Cypress click command as it mimics the actual user interaction.

cy.get('button').realClick();

Real Type

Simulates real typing into an input field. This is useful for testing scenarios where the timing and sequence of keystrokes matter.

cy.get('input').realType('Hello World');

Real Hover

Simulates a real user hovering over an element. This can be used to test hover states and tooltips.

cy.get('button').realHover();

Real Press

Simulates pressing a key on the keyboard. This is useful for testing keyboard shortcuts and form submissions.

cy.get('input').realPress('Enter');

Other packages similar to cypress-real-events

FAQs

Package last updated on 13 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc