From 52cada891a947b593e019639f3b65c773084a938 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Mon, 12 Sep 2016 13:45:12 +0300 Subject: [PATCH] Fix indices in GridSortingTest Change-Id: I0540452fcabb37b12549ac5c0b2502f9eacc827b --- .../tests/components/grid/basics/GridSortingTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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()); } } } -- 2.39.5