Test drag and drop with Cypress
Question
Hi @artf. I would like to run some test scenarios on GrapesJs using Cypress tool. However i am unable to simulate drag and drop mode using Cypress. Could you please help me?
Thanks.
Answers (3)
I think this can help you: https://stackoverflow.com/questions/55361499/how-to-implement-drag-and-drop-in-cypress-test
I have tried something similar and it has not worked for me.. I think my problem is that grapesJs canvas is rendered as an iframe , table with blocks is rendered outside this iframe and cypress when i click on a block to drag it and then drop it inside the iframe it does not handle the inside content of iframe. Let me know if you have made it work.
I don't reached the tests in my development yet :/ But i pretend to use Cypress to.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2001
Unable to access the application in LAN network
Hi @artf , Could you please help me here. Unable to access this application in LAN network, could you please help me what needs to done to...
Issue #2384
Finer drag and drop resizing and repositioning control
I would like to be able to add extra functionality to the drag and drop of components, so as to allow for easy resizing and repositioning w...
Issue #2472
DragData extend for other components like div etc
Hi @artf How to implement dragData event for custom components(external).I called dragData method on div drag but dataTransfer and content...
Issue #1512
Undo/Redo not working in Countdown and Navigation element
Hi @artf, when i drag countdown and navigation in live demo and click on undo/redo button then nothing happens.can you please provide some...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.