diff options
author | Henri Sara <hesara@vaadin.com> | 2017-08-31 09:08:10 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-05 15:11:58 +0300 |
commit | e2f47e127c9f57031732ec863629ae016957df4b (patch) | |
tree | b887653883de0e0dada34f42d1160fae48a21c72 /uitest | |
parent | 2d129043644946f7341db9f16453b773346d358f (diff) | |
download | vaadin-framework-e2f47e127c9f57031732ec863629ae016957df4b.tar.gz vaadin-framework-e2f47e127c9f57031732ec863629ae016957df4b.zip |
Make BaseThemeTest more stable on IE11
Try to make the test more stable by using a different way of
detecting the presence of a notification. This approach is used e.g.
in GridComponentsTest.
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/components/uitest/ThemeTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/uitest/ThemeTest.java b/uitest/src/test/java/com/vaadin/tests/components/uitest/ThemeTest.java index f6f88baafe..39ee947fb6 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/uitest/ThemeTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/uitest/ThemeTest.java @@ -129,7 +129,8 @@ public abstract class ThemeTest extends MultiBrowserTest { private void testNotification(int id, String identifier) throws IOException { $(ButtonElement.class).id("notifButt" + id).click(); - waitForElementPresent(By.className("v-Notification")); + // For some reason, this seems to be more reliable on IE11 + waitUntil(driver -> isElementPresent(NotificationElement.class), 10); compareScreen(identifier); $(NotificationElement.class).first().close(); } |