diff options
author | Henri Sara <hesara@vaadin.com> | 2016-05-02 10:16:55 +0300 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2016-05-02 10:16:55 +0300 |
commit | 2fc6991ad0d91fea1d2ab4ab50c4691830f60389 (patch) | |
tree | 6c28e867990a090cbfb99fd27b2572a30c8331e8 /uitest | |
parent | 7787eee10da332201e14ca69c52b5404c3b7f7f8 (diff) | |
download | vaadin-framework-2fc6991ad0d91fea1d2ab4ab50c4691830f60389.tar.gz vaadin-framework-2fc6991ad0d91fea1d2ab4ab50c4691830f60389.zip |
Fix CriticalNotificationsTest on Chrome
Without this fix, a mismatch in screenshots causes a non-screenshot
test failure.
Change-Id: I6fb157a764ef1ec594836cbeceacd898820e7e11
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/application/CriticalNotificationsTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/application/CriticalNotificationsTest.java b/uitest/src/test/java/com/vaadin/tests/application/CriticalNotificationsTest.java index 6229edc1ee..51fe3dfd06 100644 --- a/uitest/src/test/java/com/vaadin/tests/application/CriticalNotificationsTest.java +++ b/uitest/src/test/java/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(), |