I have a feature to let users copy content when holding ctrl key and performing drag-drop. But holding the ctrl key does not seem to be working. Here is my code:
cy.get('body').trigger('keydown',{keyCode:17, which:17}) cy.get("@mysource").dragTo("@mytarget") //performs move operation without holding ctrl key (working) cy.get('body').trigger('keyup',{keyCode:17, which:17})
This is not working....