MCPcopy
hub / github.com/dabeng/OrgChart / dropNodeToAnother

Function dropNodeToAnother

test/cypress/e2e/drag-drop.cy.js:17–21  ·  view source on GitHub ↗
(sourceNode, targetNode)

Source from the content-addressed store, hash-verified

15 });
16
17 function dropNodeToAnother (sourceNode, targetNode) {
18 const dataTransfer = new DataTransfer();
19 cy.get(sourceNode).trigger('dragstart', { dataTransfer, force: true });
20 cy.get(targetNode).trigger('drop', { dataTransfer, force: true });
21 }
22
23 it('drag lixin onto hongmiao', () => {
24 dropNodeToAnother(lixin, hongmiao);

Callers 1

drag-drop.cy.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected