I am trying to test a feature that is based on drag and drop functionality of events.
The tool for integration testing is cypress extended with a library for drag and drop -> https://github.com/4teamwork/cypress-drag-drop
I have recorded a video example of the issue. https://www.youtube.com/watch?v=Uiz7rfephZQ&ab_channel=RenatoRuk
Cypress does the following execution:
- - mousedown on "click me" dom element
- dragstart on the same element
- dragover with coordinates of "Dad's birthday" DOM event
- drop with coordinates of "Dad's birthday" DOM event
- mouseup
I also tried something like this, but also without success:
describe("Drag and drop", () => {
it("should drag and drop to another event", () => {
cy.visit("https://www.bryntum.com/examples/scheduler/basic/");
cy.get('[data-event-id="_generated_0x5e802f1"]')
.trigger("mousedown", { which: 1 })
.trigger("mousemove", { clientX: 100, clientY: 100 })
.trigger("mouseup");
cy.on("uncaught:exception", (err, runnable) => {
return false;
});
});
});
I see you support drag and drop functionality in Siesta. That's awesome! I would really really appreciate if you can give me a hint on how to implement that functionality with cypress or at least what browser events should I dispatch for moving the timeline event programmatically.
Best,
Renato