aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uitest/src/test/java/com/vaadin/tests/components/grid/basics/GridSortingTest.java14
1 files changed, 11 insertions, 3 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 83044123d2..0ce417c743 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
@@ -1,5 +1,6 @@
package com.vaadin.tests.components.grid.basics;
+import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
@@ -9,6 +10,8 @@ import org.junit.Test;
import org.openqa.selenium.Keys;
import org.openqa.selenium.remote.DesiredCapabilities;
+import com.vaadin.testbench.parallel.Browser;
+
public class GridSortingTest extends GridBasicsTest {
public static final Comparator<DataObject> BIG_RANDOM = Comparator
@@ -18,7 +21,10 @@ public class GridSortingTest extends GridBasicsTest {
@Override
public List<DesiredCapabilities> getBrowsersToTest() {
- return getBrowsersSupportingShiftClick();
+ // Should be browsersSupportingShiftClick but for whatever reason IE11
+ // fails to shift click
+ return Collections
+ .singletonList(Browser.CHROME.getDesiredCapabilities());
}
@Test
@@ -30,7 +36,8 @@ public class GridSortingTest extends GridBasicsTest {
.collect(Collectors.toList())) {
Assert.assertEquals(
"Grid was not sorted as expected, row number mismatch",
- rowNumber.toString(), getGridElement().getCell(i++, 0).getText());
+ rowNumber.toString(),
+ getGridElement().getCell(i++, 0).getText());
}
}
@@ -46,7 +53,8 @@ public class GridSortingTest extends GridBasicsTest {
.collect(Collectors.toList())) {
Assert.assertEquals(
"Grid was not sorted as expected, row number mismatch",
- rowNumber.toString(), getGridElement().getCell(i++, 0).getText());
+ rowNumber.toString(),
+ getGridElement().getCell(i++, 0).getText());
}
}
}