SortableJS / ngx-sortablejs

Angular 2+ binding to SortableJS. Previously known as angular-sortablejs
https://sortablejs.github.io/ngx-sortablejs/
MIT License
466 stars 160 forks source link

Protractor e2e testing for sortable lists #136

Open lolochka opened 5 years ago

lolochka commented 5 years ago

Have anybody faced with protractor testing of "angular-sortablejs" lists. For now, have tried:

browser.actions()
  .dragAndDrop(option1, option2)
  .perform();`
browser.actions().
    mouseDown(option1).
    mouseMove(option2).
    mouseUp().
    perform();`

And the simulation of native drag events https://github.com/PloughingAByteField/html-dnd

Nothing works. I would be very grateful for any help.

smnbbrv commented 5 years ago

Hi @lolochka

Even the original sortable library does not have automated tests. That’s why I had really same question. If you find a way to test this somehow it would be very interesting!

jeansymolanza commented 4 years ago

Have anybody faced with protractor testing of "angular-sortablejs" lists. For now, have tried:

browser.actions()
  .dragAndDrop(option1, option2)
  .perform();`
browser.actions().
    mouseDown(option1).
    mouseMove(option2).
    mouseUp().
    perform();`

And the simulation of native drag events https://github.com/PloughingAByteField/html-dnd

Nothing works. I would be very grateful for any help.

Have you managed to find a solution for this? Would be very interested as I am facing a similar issue.

provalinf commented 3 years ago

Have anybody faced with protractor testing of "angular-sortablejs" lists. For now, have tried:

browser.actions()
  .dragAndDrop(option1, option2)
  .perform();`
browser.actions().
    mouseDown(option1).
    mouseMove(option2).
    mouseUp().
    perform();`

And the simulation of native drag events https://github.com/PloughingAByteField/html-dnd Nothing works. I would be very grateful for any help.

Have you managed to find a solution for this? Would be very interested as I am facing a similar issue.

I am also very interested for my non-regressions tests.