From 5500a4f32a1649d4f3df17eadbb4235a44b0f251 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Mon, 21 Dec 2015 16:33:44 +0200 Subject: Fix Grid sorting tests (#16838) Increase click X offset to account for wider resize handle. Change-Id: Id638214f4a98d2476f298014c1bae0bbca6dea16 --- .../components/grid/basicfeatures/server/GridMultiSortingTest.java | 4 ++-- .../tests/components/grid/basicfeatures/server/GridSortingTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'uitest/src/com') diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridMultiSortingTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridMultiSortingTest.java index 2f4e7a8212..a3cf5872f0 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridMultiSortingTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridMultiSortingTest.java @@ -43,10 +43,10 @@ public class GridMultiSortingTest extends GridBasicFeaturesTest { "Auto"); GridCellElement cell = getGridElement().getHeaderCell(0, 11); - new Actions(driver).moveToElement(cell, 10, 10).click().perform(); + new Actions(driver).moveToElement(cell, 20, 10).click().perform(); new Actions(driver).keyDown(Keys.SHIFT).perform(); new Actions(driver) - .moveToElement(getGridElement().getHeaderCell(0, 0), 10, 10) + .moveToElement(getGridElement().getHeaderCell(0, 0), 20, 10) .click().perform(); new Actions(driver).keyUp(Keys.SHIFT).perform(); diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSortingTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSortingTest.java index 548e8dbd2f..c23e5d1f11 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSortingTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSortingTest.java @@ -196,7 +196,7 @@ public class GridSortingTest extends GridBasicFeaturesTest { } private void clickHeader(GridCellElement headerCell) { - new Actions(getDriver()).moveToElement(headerCell, 10, 10).click() + new Actions(getDriver()).moveToElement(headerCell, 20, 10).click() .perform(); } -- cgit v1.2.3