From: Teemu Suo-Anttila Date: Mon, 12 Sep 2016 10:45:12 +0000 (+0300) Subject: Fix indices in GridSortingTest X-Git-Tag: 8.0.0.alpha2~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52cada891a947b593e019639f3b65c773084a938;p=vaadin-framework.git Fix indices in GridSortingTest Change-Id: I0540452fcabb37b12549ac5c0b2502f9eacc827b --- diff --git a/uitest/src/test/java/com/vaadin/tests/components/grid/basics/GridSortingTest.java b/uitest/src/test/java/com/vaadin/tests/components/grid/basics/GridSortingTest.java index 0ce417c743..facbd0aab0 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/grid/basics/GridSortingTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/grid/basics/GridSortingTest.java @@ -29,7 +29,7 @@ public class GridSortingTest extends GridBasicsTest { @Test public void testSortBySingleColumnByUser() { - getGridElement().getHeaderCell(0, 3).click(); + getGridElement().getHeaderCell(0, 6).click(); int i = 0; for (Integer rowNumber : getTestData().sorted(BIG_RANDOM) .map(DataObject::getRowNumber).limit(5) @@ -37,14 +37,14 @@ public class GridSortingTest extends GridBasicsTest { Assert.assertEquals( "Grid was not sorted as expected, row number mismatch", rowNumber.toString(), - getGridElement().getCell(i++, 0).getText()); + getGridElement().getCell(i++, 3).getText()); } } @Test public void testSortByMultipleColumnsByUser() { - getGridElement().getHeaderCell(0, 4).click(); - getGridElement().getHeaderCell(0, 3).click(15, 15, Keys.SHIFT); + getGridElement().getHeaderCell(0, 7).click(); + getGridElement().getHeaderCell(0, 6).click(15, 15, Keys.SHIFT); int i = 0; for (Integer rowNumber : getTestData() @@ -54,7 +54,7 @@ public class GridSortingTest extends GridBasicsTest { Assert.assertEquals( "Grid was not sorted as expected, row number mismatch", rowNumber.toString(), - getGridElement().getCell(i++, 0).getText()); + getGridElement().getCell(i++, 3).getText()); } } }