Problem/Motivation
While working on #2757007: Convert all book web tests to BrowserTestBase, I discovered that, in a JavascriptTestBase
test, it's impossible to swap 2 rows by dragging the lower over upper row. The reverse works: you can swap them by dragging the upper over the lower row.
This behaviour doesn't occur when testing manually
In order to unblock #2757007: Convert all book web tests to BrowserTestBase, I opened this dedicated issue for investigation but it can be also a starting point for a full draggable table test.
It's possible that this behaviour is caused by:
- a bug in our
tabledrag.js
implementation - an upstream cause in
\Behat\Mink\Element\NodeElement::dragTo()
OR
I will let our JavaScript team to find the cause. I'm only providing here this starting test.
Proposed resolution
- Find the cause of this bug and fix if it's a Drupal bug or report upstream.
- Expand the test to cover all draggable table aspects like indenting, other actions test, etc.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.