Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drag and drop not working with https://github.com/vkurko/calendar #30326

Closed
gc-bianchi opened this issue Sep 30, 2024 · 1 comment
Closed

Comments

@gc-bianchi
Copy link

gc-bianchi commented Sep 30, 2024

Current behavior

I am trying to automate a test where a user can drag to create events on a calendar, however I have been pretty unsuccessful in doing so. I've tried using cypress's drag and drop, cypress real events library and 4tw drag and drop library but still cannot get this to work. Any help would be greatly appreciated. There's an online version of the same calendar we're using in our application here for testing: https://vkurko.github.io/calendar/

Desired behavior

I'd like to be able to create an event using cypress.

Test code to reproduce

cypress drag and drop

cy.get(".ec-day.ec-sun")
.find(".ec-extra")
.trigger("mousedown", { which: 1, pageX: 50, pageY: 0, force: true }) // Start within bounds
.trigger("mousemove", { which: 1, pageX: 50, pageY: 100, force: true }) // Move within element's height
.trigger("mouseup", { force: true });

cypress 4tw drag and drop

    cy.get(".ec-day.ec-sun")
      .find(".ec-extra")
      .move({ deltaX: 0, deltaY: 300, force: true });

cypress-real-events

    cy.get(".ec-day.ec-sun")
      .find(".ec-extra")
      .realClick()
      .realMouseDown()
      .realMouseMove(0, 0, { position: "center" })
      .realMouseMove(0, 800, { position: "center" })
      .realMouseUp();

Cypress Version

13.13.1

Node version

v14.19.3

Operating System

macOS 14.4.1

Debug Logs

No response

Other

No response

@jennifer-shehane
Copy link
Member

@gc-bianchi I'd recommend checking out our community chat, it can be helpful for debugging or answering questions on how to use Cypress.

@jennifer-shehane jennifer-shehane closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants