From fe4dda34f04c4434f10faef9f7a8d8a2b160c527 Mon Sep 17 00:00:00 2001 From: Sun Zhe <31067185+ZheSun88@users.noreply.github.com> Date: Tue, 9 Apr 2019 16:45:30 +0300 Subject: Add delay to the unstable test (#11538) * Add delay to the unstable test --- .../com/vaadin/tests/components/MenuBarDownloadBrowserOpenerUITest.java | 1 + .../tests/components/window/WindowHeaderButtonKeyboardActionsTest.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/uitest/src/test/java/com/vaadin/tests/components/MenuBarDownloadBrowserOpenerUITest.java b/uitest/src/test/java/com/vaadin/tests/components/MenuBarDownloadBrowserOpenerUITest.java index 86efdbb4d4..2f2dd91ea8 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/MenuBarDownloadBrowserOpenerUITest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/MenuBarDownloadBrowserOpenerUITest.java @@ -30,6 +30,7 @@ public class MenuBarDownloadBrowserOpenerUITest extends MultiBrowserTest { checkAndCloseAlert(); checkAndCloseAlert(); + sleep(500); first.clickItem("TestExtension", "RemoveTrigger"); first.clickItem("TestExtension", "RunMe"); checkAndCloseAlert(); diff --git a/uitest/src/test/java/com/vaadin/tests/components/window/WindowHeaderButtonKeyboardActionsTest.java b/uitest/src/test/java/com/vaadin/tests/components/window/WindowHeaderButtonKeyboardActionsTest.java index 47ac64107d..278d0994c0 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/window/WindowHeaderButtonKeyboardActionsTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/window/WindowHeaderButtonKeyboardActionsTest.java @@ -400,6 +400,6 @@ public class WindowHeaderButtonKeyboardActionsTest extends MultiBrowserTest { protected void pressKeyAndWait(Keys... key) { new Actions(driver).sendKeys(key).build().perform(); - sleep(100); + sleep(1000); } } -- cgit v1.2.3