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

Cannot create 2 test using drap #181

Open
mathieusanchez opened this issue Jan 12, 2021 · 1 comment
Open

Cannot create 2 test using drap #181

mathieusanchez opened this issue Jan 12, 2021 · 1 comment

Comments

@mathieusanchez
Copy link

Hello,

I'm trying to use this lib, i have implement it pretty well in my project.
But i get an error when i'm trying to create two test using the drag helper.

I'm using it in Acceptance test and get this error:
Cannot update watchers for 'title' on '<frontend@model:mapped-product::ember532:1>' after it has been destroyed.

I don't know why, but i think it's because the test finish before all the code was execute and get execute on destroyed object.
In my code i never set the title on the mapped-product object.

That is the code who is failling if i put it in two test, if it's only on one test, it's working perfectly.

  let objSelector = `.card-container .card:nth-child(1) .draggable-object`;
  let dropSelector = `.draggable-object-target`;

  drag(objSelector, { drop: dropSelector });

If anyone can help me, i will be very grateful.

@RQMplays
Copy link

Have you tried an "await" before the drag ?
Looks like the rest of your code is executed before the drag function is done.

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