From 22e052cefefd7dfeb8b376ddc960b44bd448ea11 Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Mon, 26 Apr 2021 13:57:07 +0300 Subject: [PATCH] Test tweak: repeat selection for stability (#12267) (#12276) --- .../components/datefield/DateTimeFieldEventOrderTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() { -- 2.39.5