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

Support HTML5 Drag and drop #897

Closed
kirovboris opened this issue Oct 19, 2016 · 8 comments
Closed

Support HTML5 Drag and drop #897

kirovboris opened this issue Oct 19, 2016 · 8 comments
Labels
API MODIFICATION LEVEL: non-breaking changes AREA: client STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: API TYPE: enhancement The accepted proposal for future implementation.
Milestone

Comments

@kirovboris
Copy link
Collaborator

Are you requesting a feature or reporting a bug?

feature

Specify your

  • operating system: windows 7
  • testcafe version: 0.9.0
  • node.js version: 6.2.1
@vzaidman
Copy link

these guys are managed to do it for some libraries:
https://github.com/Kuniwak/html-dnd

@inikulin
Copy link
Contributor

inikulin commented Apr 25, 2017

@vzaidman Thank you for sharing this. This feature is moved to the next sprint and more likely will be available in one of the alphas within a couple of weeks.

@AlexanderMoskovkin AlexanderMoskovkin self-assigned this Apr 27, 2017
@AlexanderMoskovkin
Copy link
Contributor

I'm working on this

@vzaidman
Copy link

vzaidman commented May 1, 2017

@AlexanderMoskovkin
By the way. I contributed to the other project. You might want to see this code too:
https://github.com/PowToon/html-dnd

@AlexanderMoskovkin
Copy link
Contributor

@vzaidman Thanks! I'll take it into account

@sagarvora
Copy link

Hi @AlexanderMoskovkin,

Thanks for this PR! drag now works in the latest alpha release.

I encountered a bug in dragToElement.

You can test the following code:

import { Selector } from 'testcafe';

fixture `Example page`
    .page `http://demo.erpnext.com`;

test('Check login', async t => {
    const login_btn = Selector('#login_btn');
    const task_icon = Selector('.case-wrapper[data-link="List/Task"]');
    const item_icon = Selector('.case-wrapper[data-link="List/Item"]');    

    await t
        .click(login_btn)
        .setTestSpeed(0.5)
        .dragToElement(task_icon, item_icon)
        .wait(1000)
});

Upon execution of above code, you will notice that the Task Icon gets clicked after dragging.

@AlexanderMoskovkin
Copy link
Contributor

Hi @sagarvora,

Thanks for your report, I've reproduced it and I've created a separate issue. I've already found a cause of the problem, it will be fixed in the next version that should be released soon.

@lock
Copy link

lock bot commented Mar 29, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 29, 2019
kirovboris pushed a commit to kirovboris/testcafe-phoenix that referenced this issue Dec 18, 2019
* Implement base drag and drop functionality

* Fix some cases

* Start DragAutomation refactoring

* Fix tests

* Small refactoring

* Move automation refactoring

* Add test for default behavior

* Implement native browser behavior

* Minor changes

* Update testcafe-hammerhead. Fix the test.

* Apply remarks. Add dataStore mode test

* Fix tests

* Update tests

* Skip mobile tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API MODIFICATION LEVEL: non-breaking changes AREA: client STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: API TYPE: enhancement The accepted proposal for future implementation.
Projects
None yet
Development

No branches or pull requests

6 participants