diff options
author | Henri Sara <hesara@vaadin.com> | 2016-05-06 13:02:06 +0300 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2016-05-06 13:02:06 +0300 |
commit | fdcd026a744b7217129861a918f7bd53deafbb80 (patch) | |
tree | 2bb232f7d046c819b3253cc204c5d0342f6f9d2b | |
parent | 6a091ed8dd5482ad0a258d8cd6bb69b18609f598 (diff) | |
download | vaadin-framework-fdcd026a744b7217129861a918f7bd53deafbb80.tar.gz vaadin-framework-fdcd026a744b7217129861a918f7bd53deafbb80.zip |
Fix CriticalNotificationsTest on Chrome
Without this fix, a mismatch in screenshots causes a non-screenshot
test failure.
Change-Id: Ib211f6f436d9d414642bf40f6a1b55dcf03c7b85
-rw-r--r-- | uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java b/uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java index 6229edc1ee..51fe3dfd06 100644 --- a/uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java +++ b/uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java @@ -72,6 +72,12 @@ public class CriticalNotificationsTest extends MultiBrowserThemeTest { click($(CheckBoxElement.class).caption("Include details").first()); } $(ButtonElement.class).caption(buttonCaption).first().click(); + + // some critical notifications invalidate the session, and if a + // screenshot does not match, waitForVaadin would cause the screenshot + // comparison to crash because of a missing session + testBench().disableWaitForVaadin(); + // Give the notification some time to animate sleep(1000); compareScreen($(NotificationElement.class).first(), |