I am struggling to test drag and drop with Cypress and Angular Material Drag and Drop. So the goal is to move \"Get to work\" from Todo to Done. I have created the following
After a lot of battling, I managed to make the drag and drop work with this:
cy.get('.list .item') .contains(startpos) .trigger('dragstart', { dataTransfer: new DataTransfer }); cy.get('.list .item') .eq(endpos) .trigger('drop') .trigger('dragend');
Pretty easy to use.