]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix CriticalNotificationsTest on Chrome
authorHenri Sara <hesara@vaadin.com>
Fri, 6 May 2016 10:02:06 +0000 (13:02 +0300)
committerHenri Sara <hesara@vaadin.com>
Fri, 6 May 2016 10:02:06 +0000 (13:02 +0300)
Without this fix, a mismatch in screenshots causes a non-screenshot
test failure.

Change-Id: Ib211f6f436d9d414642bf40f6a1b55dcf03c7b85

uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java

index 6229edc1ee329ec564573572be10df182560840a..51fe3dfd06a18312fe3cfc7a37b396e88dbb824e 100644 (file)
@@ -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(),