]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix GridColumnHidingTest: don't use moveToElement() in TB with FF.
authorDenis Anisimov <denis@vaadin.com>
Wed, 5 Oct 2016 11:50:20 +0000 (14:50 +0300)
committerDenis Anisimov <denis@vaadin.com>
Wed, 5 Oct 2016 11:50:43 +0000 (14:50 +0300)
Change-Id: I0d029012627529e524b1d67d076caa224d711358

uitest/src/test/java/com/vaadin/tests/components/grid/GridColumnHidingTest.java

index dca31e52495f31beb7239c952e1b1f9124f18e4b..57ef8fbc424bcdbbedd246bbfb499413967bba06 100644 (file)
@@ -182,8 +182,10 @@ public class GridColumnHidingTest extends MultiBrowserTest {
         GridCellElement headerCell = gridElement.getHeaderCell(0, columnIndex);
         Dimension size = headerCell.getSize();
         new Actions(getDriver())
-                .moveToElement(headerCell, size.getWidth() + posX,
-                        size.getHeight() / 2)
+                .moveByOffset(
+                        headerCell.getLocation().getX() + size.getWidth()
+                                + posX,
+                        headerCell.getLocation().getY() + size.getHeight() / 2)
                 .clickAndHold().moveByOffset(offset, 0).release().perform();
     }
 }