From 24aeb4586625310306c6ded6c5d75df56388c1e7 Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Tue, 20 Apr 2021 11:54:22 +0300 Subject: [PATCH] Test tweak: repeat selection for stability (#12267) --- .../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