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 event is of type Event #29853

Open
Pablo200206 opened this issue Jul 15, 2024 · 2 comments
Open

Drag and Drop event is of type Event #29853

Pablo200206 opened this issue Jul 15, 2024 · 2 comments
Labels
stage: needs investigating Someone from Cypress needs to look at this

Comments

@Pablo200206
Copy link

Pablo200206 commented Jul 15, 2024

Current behavior

When running cy.get(dragBox).selectFile(fileReference, { action: 'drag-drop' }) the event obtained is of type Event, this is causing problems on my tests as my file upload checks if it is a drag event or a a normal event in order to perfom actions.

Desired behavior

The event should be typed with DragEvent type, as it is the normal behaviour (https://developer.mozilla.org/es/docs/Web/API/DragEvent)

Test code to reproduce

    cy.get(dragBox).selectFile(fileReference, { action: 'drag-drop' })

Cypress Version

18.0.4

Node version

18

Operating System

Windows

Debug Logs

No response

Other

No response

@jennifer-shehane jennifer-shehane added the stage: needs investigating Someone from Cypress needs to look at this label Jul 15, 2024
@davies147
Copy link

Just adding a "me-too". I can't add much to the report above beyond the assertion that when carrying out a DragDrop manually I see "DragEvent" payloads and using cy.selectFile() I see "Event" payloads.

Cypress version 12 thru 13.6.1

@davies147
Copy link

Is there any merit in exposing an 'eventConstructor' option as per cy.trigger() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs investigating Someone from Cypress needs to look at this
Projects
None yet
Development

No branches or pull requests

3 participants