diff options
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/components/datefield/DateTimeFieldEventOrderTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/datefield/DateTimeFieldEventOrderTest.java b/uitest/src/test/java/com/vaadin/tests/components/datefield/DateTimeFieldEventOrderTest.java index 024e39a61a..c68bc81252 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/datefield/DateTimeFieldEventOrderTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/datefield/DateTimeFieldEventOrderTest.java @@ -28,7 +28,10 @@ public class DateTimeFieldEventOrderTest extends SingleBrowserTest { By.className("v-datefield-calendarpanel-time")) .findElements(By.tagName("select")); - new Select(timeSelects.get(0)).selectByValue("09"); + Select select = new Select(timeSelects.get(0)); + select.selectByValue("09"); + // selectByValue is flaky, repeat to ensure selection actually happens + select.selectByValue("09"); findElement(By.id("test-button")).click(); waitUntil(new ExpectedCondition<Boolean>() { |