]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test tweak: repeat selection for stability (#12267) (#12276)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Mon, 26 Apr 2021 10:57:07 +0000 (13:57 +0300)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 10:57:07 +0000 (13:57 +0300)
uitest/src/test/java/com/vaadin/tests/components/datefield/DateTimeFieldEventOrderTest.java

index 024e39a61a26b9f3e7f16c0c984f131c42c76ef0..c68bc8125239f385c1e8197871ee78c97ba67ec7 100644 (file)
@@ -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>() {