Skip to content
Snippets Groups Projects
Commit 834bfc1d authored by Manuel Leduc's avatar Manuel Leduc
Browse files

XWIKI-21029: StaticListClassFieldIT#itemsEditor is flickering

parent da704a4c
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,9 @@ public void moveBefore(String valueToMove, String beforeValue) ...@@ -141,7 +141,9 @@ public void moveBefore(String valueToMove, String beforeValue)
// We move the item from the center, so we need to ensure that we actually move it with an offset of half its // We move the item from the center, so we need to ensure that we actually move it with an offset of half its
// width to be sure it's before the other item element. // width to be sure it's before the other item element.
int offsetX = - (itemToMove.getSize().getWidth() / 2); // Adding a few pixels more (10) to make sure to pass the threshold where the passed element is moved to
// the next position in the list.
int offsetX = -(itemToMove.getSize().getWidth() / 2) - 10;
int offsetY = 2; int offsetY = 2;
getDriver().moveToTopLeftCornerOfTargetWithOffset(itemBefore, offsetX, offsetY, actions).release().perform(); getDriver().moveToTopLeftCornerOfTargetWithOffset(itemBefore, offsetX, offsetY, actions).release().perform();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment