aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorMika Murtojarvi <mika@vaadin.com>2015-09-18 11:37:47 +0300
committerVaadin Code Review <review@vaadin.com>2015-09-21 07:53:29 +0000
commit6a63de6275d356ee09fac162122cc850a65aa964 (patch)
tree0b4bd3d7ef08d5ceb1a7487dba3fd677becc56fb /uitest
parent3ce90eabda07319f199233a09a4ed3689c3b3ac5 (diff)
downloadvaadin-framework-6a63de6275d356ee09fac162122cc850a65aa964.tar.gz
vaadin-framework-6a63de6275d356ee09fac162122cc850a65aa964.zip
Make a Grid editor test work on IE8-9.
Change-Id: If2b6cec71504b7a9e966f49752cbb230ab322ab1
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorUnbufferedTest.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorUnbufferedTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorUnbufferedTest.java
index 984b03ac5b..eaa58254ba 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorUnbufferedTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorUnbufferedTest.java
@@ -28,6 +28,7 @@ import org.openqa.selenium.interactions.Actions;
import com.vaadin.testbench.TestBenchElement;
import com.vaadin.testbench.elements.GridElement.GridCellElement;
+import com.vaadin.testbench.parallel.BrowserUtil;
public class GridEditorUnbufferedTest extends GridEditorTest {
@@ -103,7 +104,7 @@ public class GridEditorUnbufferedTest extends GridEditorTest {
}
@Test
- public void testValidationErrorPreventsMove() {
+ public void testValidationErrorPreventsMove() throws InterruptedException {
// Because of "out of view" issues, we need to move this for easy access
selectMenuPath("Component", "Columns", "Column 7", "Column 7 Width",
"50px");
@@ -122,10 +123,11 @@ public class GridEditorUnbufferedTest extends GridEditorTest {
assertEquals("Editor should not move from row 5", "(5, 0)",
getEditorWidgets().get(0).getAttribute("value"));
- for (int i = 0; i < faultyInt.length(); ++i) {
- getEditorWidgets().get(1).sendKeys(Keys.BACK_SPACE);
+ getEditorWidgets().get(1).sendKeys(Keys.chord(Keys.CONTROL, "a"));
+ if (BrowserUtil.isIE8(getDesiredCapabilities())) {
+ sleep(1500);
}
-
+ getEditorWidgets().get(1).sendKeys("5");
// FIXME: Needs to trigger one extra validation round-trip for now
getGridElement().sendKeys(Keys.ENTER);