summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2017-08-31 09:08:10 +0300
committerHenri Sara <henri.sara@gmail.com>2017-09-05 15:11:58 +0300
commite2f47e127c9f57031732ec863629ae016957df4b (patch)
treeb887653883de0e0dada34f42d1160fae48a21c72 /uitest
parent2d129043644946f7341db9f16453b773346d358f (diff)
downloadvaadin-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.java3
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();
}