aboutsummaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2021-03-12 10:47:21 +0200
committerGitHub <noreply@github.com>2021-03-12 10:47:21 +0200
commit9978eec85cb95df26170006a04d2285cfd7bcc7d (patch)
tree272d5e246e9b234ba1e86de1ff1c73f198889835 /uitest
parent59a731479ab5dd3bb05a197f00e486796c8bfdef (diff)
downloadvaadin-framework-9978eec85cb95df26170006a04d2285cfd7bcc7d.tar.gz
vaadin-framework-9978eec85cb95df26170006a04d2285cfd7bcc7d.zip
Add delay to a flaky test. (#12238)
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldFocusTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldFocusTest.java b/uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldFocusTest.java
index 4e05f66c08..fdcd2fced5 100644
--- a/uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldFocusTest.java
+++ b/uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldFocusTest.java
@@ -23,9 +23,13 @@ public class DateFieldFocusTest extends MultiBrowserTest {
// open DateField popup
dateField.findElement(By.className("v-datefield-button")).click();
waitUntilLoadingIndicatorNotVisible();
+ // and a bit more
+ sleep(100);
// close DateField popup
dateField.findElement(By.className("v-datefield-button")).click();
waitUntilLoadingIndicatorNotVisible();
+ // and a bit more
+ sleep(100);
assertEquals("1. focused", getLogRow(0));
textField.focus();