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

@4tw/cypress-drag-drop

Package Overview
Dependencies
Maintainers
10
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@4tw/cypress-drag-drop

A cypress child command for drag'n'drop support.

  • 2.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
145K
decreased by-13.03%
Maintainers
10
Weekly downloads
 
Created

What is @4tw/cypress-drag-drop?

@4tw/cypress-drag-drop is a Cypress plugin that allows you to easily simulate drag-and-drop interactions in your end-to-end tests. This can be particularly useful for testing applications with complex UI interactions that involve dragging and dropping elements.

What are @4tw/cypress-drag-drop's main functionalities?

Basic Drag and Drop

This feature allows you to drag an element with the ID 'drag-element' and drop it onto an element with the ID 'drop-target'.

cy.get('#drag-element').drag('#drop-target');

Drag and Drop with Offset

This feature allows you to drag an element with the ID 'drag-element' and drop it onto an element with the ID 'drop-target' with specific offsets for the X and Y coordinates.

cy.get('#drag-element').drag('#drop-target', { offsetX: 10, offsetY: 20 });

Drag and Drop with Force

This feature allows you to force the drag-and-drop action even if the element is not visible or interactable.

cy.get('#drag-element').drag('#drop-target', { force: true });

Other packages similar to @4tw/cypress-drag-drop

Keywords

FAQs

Package last updated on 14 Sep 2023

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