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

encountered an error post drag and drop is complete #98

Open
T-e-j-k-u-m-a-r opened this issue Mar 24, 2022 · 5 comments
Open

encountered an error post drag and drop is complete #98

T-e-j-k-u-m-a-r opened this issue Mar 24, 2022 · 5 comments

Comments

@T-e-j-k-u-m-a-r
Copy link

Hi team,

Please find the below code snippet where I'm trying to achieve drag and drop and getting an error on Test runner console.

Code Snippet:

it('using npm package', () => {

    cy.visit(`https://testautomationpractice.blogspot.com/`)
    cy.get('div#draggable').drag('div#droppable')

});

Error:

Timed out retrying after 10000ms: cy.trigger() failed because this element:

...

is being covered by another element:

...

Fix this problem, or use {force: true} to disable error checking.

@T-e-j-k-u-m-a-r
Copy link
Author

facing error while performing drag and drop using npm package

@T-e-j-k-u-m-a-r
Copy link
Author

Even tried with difference as per the documentation in the npm repo, But it results in false positive result. Please find below code snippet for the same:

it.only('using npm package - way 2', () => {

    cy.visit(`https://testautomationpractice.blogspot.com/`)
    cy.get('div#draggable').drag('div#droppable', {
        source: { x: 100, y: 100 }, // applies to the element being dragged
        target: { position: 'center' }, // applies to the drop target
        force: true, // applied to both the source and target element
    })

});

approach2

@T-e-j-k-u-m-a-r
Copy link
Author

Please look into the issue and resolve asap.

Thanks in advance,
Tejkumar Kempaiah

@barnie-karbonhq
Copy link

This was raised on March 25th and still no fix :(

@barnie-karbonhq
Copy link

Did you found a work around @T-e-j-k-u-m-a-r ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants