diff options
author | Anna Koskinen <Ansku@users.noreply.github.com> | 2021-04-20 11:54:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 11:54:22 +0300 |
commit | 24aeb4586625310306c6ded6c5d75df56388c1e7 (patch) | |
tree | e63aecc4b8177daeba979c98a9debacdcbbb2754 /uitest/src | |
parent | ae15672ae60977376d237b6d5ae41c74d296f1b9 (diff) | |
download | vaadin-framework-24aeb4586625310306c6ded6c5d75df56388c1e7.tar.gz vaadin-framework-24aeb4586625310306c6ded6c5d75df56388c1e7.zip |
Test tweak: repeat selection for stability (#12267)
Diffstat (limited to 'uitest/src')
-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>() { |