ngx-sortablejs icon indicating copy to clipboard operation
ngx-sortablejs copied to clipboard

Protractor e2e testing for sortable lists

Open lolochka opened this issue 7 years ago • 3 comments

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.

lolochka avatar Oct 17 '18 12:10 lolochka

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!

smnbbrv avatar Oct 17 '18 19:10 smnbbrv

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.

jeansymolanza avatar Apr 16 '20 18:04 jeansymolanza

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.

provalinf avatar Jul 02 '21 13:07 provalinf