summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2015-12-21 16:24:20 +0200
committerHenri Sara <hesara@vaadin.com>2015-12-21 16:24:20 +0200
commita9142a784eb4ca123ff0b9df634aa5ec9994e712 (patch)
treec36c9b837ac0127443196a641d2c63380f48370f /uitest
parent1d6361b72cc411c5ecd005f6acc8f00f2f38b03c (diff)
downloadvaadin-framework-a9142a784eb4ca123ff0b9df634aa5ec9994e712.tar.gz
vaadin-framework-a9142a784eb4ca123ff0b9df634aa5ec9994e712.zip
Fix GridColumnReorderTest for IE8 (#16838)
Use a different X offset not to hit a resize handle. Change-Id: I6e7d4cb0ae0e9c941cb3dd2ba3e29256d6643fde
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnReorderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnReorderTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnReorderTest.java
index 6eb6d95643..62be202277 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnReorderTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnReorderTest.java
@@ -334,14 +334,14 @@ public class GridColumnReorderTest extends GridBasicFeaturesTest {
GridCellElement draggedHeaderCell = getGridElement()
.getHeaderCell(0, 1);
final int xOffset = 500;
- new Actions(getDriver()).moveToElement(draggedHeaderCell, 10, 10)
+ new Actions(getDriver()).moveToElement(draggedHeaderCell, 20, 10)
.clickAndHold().moveByOffset(xOffset, 0).build().perform();
WebElement floatingDragElement = findElement(By
.className("dragged-column-header"));
int expectedLeft = draggedHeaderCell.getLocation().getX() + xOffset
- + 10 - (floatingDragElement.getSize().getWidth() / 2);
+ + 20 - (floatingDragElement.getSize().getWidth() / 2);
int realLeft = floatingDragElement.getLocation().getX();
assertTrue("Dragged element location wrong, expected " + expectedLeft